HaileyStorm commited on
Commit
bf10919
·
verified ·
1 Parent(s): 7f75964

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

Browse files
chess-gpt-eval-contrastive/mamba_module.py CHANGED
@@ -383,5 +383,6 @@ class MambaPlayer:
383
  probe = self.linear_probes[layer_idx][probe_type]
384
  #probe.eval()
385
  prediction = probe(X).item()
386
- print(f"Layer {layer_idx}, {probe_type}: {prediction} vs {target}")
 
387
  self.linear_probe_targets = {i: {bucket: {'q_value': [], 'q_value_delta': [], 'material_balance': []} for bucket in self.move_buckets} for i in self.linear_probes}
 
383
  probe = self.linear_probes[layer_idx][probe_type]
384
  #probe.eval()
385
  prediction = probe(X).item()
386
+ if probe_type == 'material_balance':
387
+ print(f"Layer {layer_idx}, {probe_type}: {int(prediction)} vs {int(target)}")
388
  self.linear_probe_targets = {i: {bucket: {'q_value': [], 'q_value_delta': [], 'material_balance': []} for bucket in self.move_buckets} for i in self.linear_probes}