HaileyStorm
commited on
Commit
•
2d1fe54
1
Parent(s):
a138e94
Update chess-gpt-eval/main.py
Browse files- chess-gpt-eval/main.py +7 -1
chess-gpt-eval/main.py
CHANGED
@@ -611,6 +611,12 @@ def play_games(
|
|
611 |
if isinstance(player_two, StockfishPlayer):
|
612 |
player_two.close()
|
613 |
|
|
|
|
|
|
|
|
|
|
|
|
|
614 |
stats = calculate_stats(csv_file_path)
|
615 |
if stats:
|
616 |
print("\nStatistics:")
|
@@ -636,7 +642,7 @@ random_opening_moves = 20
|
|
636 |
if __name__ == "__main__":
|
637 |
for nanogpt_player in player_ones:
|
638 |
for i in [0]: # [3] #range(11):
|
639 |
-
num_games =
|
640 |
# player_one = GPTPlayer(model="gpt-3.5-turbo-instruct")
|
641 |
# player_one = LocalLlamaPlayer(model_name="meta-llama/Llama-2-7b-hf")
|
642 |
# player_one = LocalLoraLlamaPlayer("meta-llama/Llama-2-7b-hf", "/workspace/axolotl/lora2-out")
|
|
|
611 |
if isinstance(player_two, StockfishPlayer):
|
612 |
player_two.close()
|
613 |
|
614 |
+
if RUN_FOR_ANALYSIS:
|
615 |
+
csv_file_path = f"logs/{player_one_recording_name}_vs_{player_two_recording_name}"
|
616 |
+
csv_file_path = csv_file_path.replace(".", "_") # Because I'm using ckpt filenames for nanogpt models
|
617 |
+
csv_file_path += ".csv"
|
618 |
+
else:
|
619 |
+
csv_file_path = recording_file
|
620 |
stats = calculate_stats(csv_file_path)
|
621 |
if stats:
|
622 |
print("\nStatistics:")
|
|
|
642 |
if __name__ == "__main__":
|
643 |
for nanogpt_player in player_ones:
|
644 |
for i in [0]: # [3] #range(11):
|
645 |
+
num_games = 500
|
646 |
# player_one = GPTPlayer(model="gpt-3.5-turbo-instruct")
|
647 |
# player_one = LocalLlamaPlayer(model_name="meta-llama/Llama-2-7b-hf")
|
648 |
# player_one = LocalLoraLlamaPlayer("meta-llama/Llama-2-7b-hf", "/workspace/axolotl/lora2-out")
|