HaileyStorm
commited on
Commit
•
48f62a8
1
Parent(s):
2649aea
Update chess-gpt-eval-contrastive/main.py
Browse files
chess-gpt-eval-contrastive/main.py
CHANGED
@@ -676,7 +676,8 @@ book_opening = False
|
|
676 |
random_opening = True
|
677 |
random_opening_moves = 10
|
678 |
activations_path="activations_rdm.pkl"
|
679 |
-
update_activations =
|
|
|
680 |
save_activations_every = 25
|
681 |
contrastive_weight = 0.8
|
682 |
if __name__ == "__main__":
|
@@ -698,7 +699,7 @@ if __name__ == "__main__":
|
|
698 |
#player_one_recording_name = f"xformer_rdm_{rm}"
|
699 |
player_one = MambaPlayer(model_name=player_one_recording_name, move_num_in_gamestate=move_num_in_gamestate)
|
700 |
player_one_recording_name = f'contrastive_weights_rdm/mamba_rdm_wgt_{wgt}' #f'contrastive_rdm/mamba_rdm_{rm}'
|
701 |
-
if
|
702 |
player_one.apply_contrastive_activations(path=activations_path, weight=wgt)
|
703 |
|
704 |
#player_two = StockfishPlayer(skill_level=i, play_time=0.1)
|
|
|
676 |
random_opening = True
|
677 |
random_opening_moves = 10
|
678 |
activations_path="activations_rdm.pkl"
|
679 |
+
update_activations = True
|
680 |
+
apply_activations = False
|
681 |
save_activations_every = 25
|
682 |
contrastive_weight = 0.8
|
683 |
if __name__ == "__main__":
|
|
|
699 |
#player_one_recording_name = f"xformer_rdm_{rm}"
|
700 |
player_one = MambaPlayer(model_name=player_one_recording_name, move_num_in_gamestate=move_num_in_gamestate)
|
701 |
player_one_recording_name = f'contrastive_weights_rdm/mamba_rdm_wgt_{wgt}' #f'contrastive_rdm/mamba_rdm_{rm}'
|
702 |
+
if apply_activations:
|
703 |
player_one.apply_contrastive_activations(path=activations_path, weight=wgt)
|
704 |
|
705 |
#player_two = StockfishPlayer(skill_level=i, play_time=0.1)
|