HaileyStorm
commited on
Commit
•
190dbb0
1
Parent(s):
bcf333c
Update chess-gpt-eval-contrastive/mamba_module.py
Browse files
chess-gpt-eval-contrastive/mamba_module.py
CHANGED
@@ -170,11 +170,9 @@ class MambaPlayer:
|
|
170 |
return {"model": self.model_name}
|
171 |
|
172 |
def update_activations(self, result):
|
173 |
-
for layer_idx in self.
|
174 |
-
self.activations_sum[layer_idx][result] += self.
|
175 |
-
self.activations_count[layer_idx][result] +=
|
176 |
-
self.activations_sum[layer_idx]["current"] = 0
|
177 |
-
self.activations_count[layer_idx]["current"] = 0
|
178 |
|
179 |
def save_activations(self, path):
|
180 |
if os.path.exists(path):
|
|
|
170 |
return {"model": self.model_name}
|
171 |
|
172 |
def update_activations(self, result):
|
173 |
+
for layer_idx in self.activations:
|
174 |
+
self.activations_sum[layer_idx][result] += self.activations[layer_idx]["current"]
|
175 |
+
self.activations_count[layer_idx][result] += 1
|
|
|
|
|
176 |
|
177 |
def save_activations(self, path):
|
178 |
if os.path.exists(path):
|