Update chess-gpt-eval-contrastive/mamba_module.py
Browse files
chess-gpt-eval-contrastive/mamba_module.py
CHANGED
@@ -189,10 +189,10 @@ class MambaPlayer:
|
|
189 |
"lost": len(layer_activations["lost"])
|
190 |
}
|
191 |
|
192 |
-
|
193 |
-
|
194 |
|
195 |
-
|
196 |
|
197 |
def apply_contrastive_activations(self, path):
|
198 |
if os.path.exists(path):
|
|
|
189 |
"lost": len(layer_activations["lost"])
|
190 |
}
|
191 |
|
192 |
+
with open(path, "wb") as f:
|
193 |
+
pickle.dump((activations_sum, activations_count), f)
|
194 |
|
195 |
+
self.activations = {}
|
196 |
|
197 |
def apply_contrastive_activations(self, path):
|
198 |
if os.path.exists(path):
|