HaileyStorm commited on
Commit
167b5e5
·
verified ·
1 Parent(s): 94c3d48

Update chess-gpt-eval-contrastive/mamba_module.py

Browse files
chess-gpt-eval-contrastive/mamba_module.py CHANGED
@@ -160,6 +160,10 @@ class MambaPlayer:
160
  def get_config(self) -> dict:
161
  return {"model": self.model_name}
162
 
 
 
 
 
163
  def save_activations(self, path):
164
  activations_sum = {}
165
  activations_count = {}
 
160
  def get_config(self) -> dict:
161
  return {"model": self.model_name}
162
 
163
+ def update_activations(self, result):
164
+ for layer_idx in self.activations:
165
+ self.activations[layer_idx][result].append(self.activations[layer_idx]["current"])
166
+
167
  def save_activations(self, path):
168
  activations_sum = {}
169
  activations_count = {}