HaileyStorm
commited on
Commit
•
21f0bbf
1
Parent(s):
1326709
Update chess-gpt-eval-contrastive/main.py
Browse files
chess-gpt-eval-contrastive/main.py
CHANGED
@@ -531,15 +531,15 @@ def play_games(
|
|
531 |
f.write(game_state)
|
532 |
current_move_num = f"{board.fullmove_number if move_num_in_gamestate else ''}."
|
533 |
|
534 |
-
if total_moves == random_move_start:
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
|
544 |
|
545 |
total_moves += 1
|
@@ -679,7 +679,7 @@ player_ones = ["50M/anneal/anneal_complete_round3.pt"]
|
|
679 |
player_two_recording_name = "lc0_sweep" #"stockfish_sweep"
|
680 |
move_num_in_gamestate = False
|
681 |
book_opening = True
|
682 |
-
random_opening =
|
683 |
random_opening_moves = 10
|
684 |
contrastive_activation_save_interval = 10
|
685 |
activations_path="activations.pkl"
|
@@ -698,7 +698,7 @@ if __name__ == "__main__":
|
|
698 |
# player_one = NanoGptPlayer(model_name=player_one_recording_name, move_num_in_gamestate=move_num_in_gamestate)
|
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"
|
702 |
if not update_activations:
|
703 |
player_one.apply_contrastive_activations()
|
704 |
|
|
|
531 |
f.write(game_state)
|
532 |
current_move_num = f"{board.fullmove_number if move_num_in_gamestate else ''}."
|
533 |
|
534 |
+
#if total_moves == random_move_start:
|
535 |
+
# for _ in range(10):
|
536 |
+
# g, b, opening_moves = add_random_moves(game_state, board, random_opening_moves)
|
537 |
+
# if g is not None:
|
538 |
+
# game_state = g
|
539 |
+
# board = b
|
540 |
+
# break
|
541 |
+
# total_moves += random_opening_moves
|
542 |
+
# continue
|
543 |
|
544 |
|
545 |
total_moves += 1
|
|
|
679 |
player_two_recording_name = "lc0_sweep" #"stockfish_sweep"
|
680 |
move_num_in_gamestate = False
|
681 |
book_opening = True
|
682 |
+
random_opening = False
|
683 |
random_opening_moves = 10
|
684 |
contrastive_activation_save_interval = 10
|
685 |
activations_path="activations.pkl"
|
|
|
698 |
# player_one = NanoGptPlayer(model_name=player_one_recording_name, move_num_in_gamestate=move_num_in_gamestate)
|
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"mamba_contrastive"
|
702 |
if not update_activations:
|
703 |
player_one.apply_contrastive_activations()
|
704 |
|