File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "RoboCode" : {
3- "r15.s1000 .p2" : {
3+ "r15.s250 .p2" : {
44 "claude-sonnet-4-20250514.claude-sonnet-4-5-20250929" : " 0 (0 rounds)" ,
55 "claude-sonnet-4-20250514.grok-code-fast-1" : " 0 (0 rounds)" ,
66 "claude-sonnet-4-20250514.gemini-2.5-pro" : " 0 (0 rounds)" ,
1919 "gemini-2.5-pro.grok-code-fast-1" : " 0 (0 rounds)" ,
2020 "glm-4-5.grok-code-fast-1" : " 0 (0 rounds)" ,
2121 "gpt-5.grok-code-fast-1" : " 0 (0 rounds)" ,
22- "gpt-5-mini.grok-code-fast-1" : " 0 (0 rounds)" ,
22+ "gpt-5-mini.grok-code-fast-1" : " 1 (16 rounds)" ,
2323 "grok-code-fast-1.qwen3-coder-plus-2025-09-23" : " 0 (0 rounds)" ,
2424 "grok-code-fast-1.o3" : " 0 (0 rounds)" ,
2525 "gemini-2.5-pro.glm-4-5" : " 0 (0 rounds)" ,
Original file line number Diff line number Diff line change 22from pathlib import Path
33
44tracker = json .load (open ("configs/scripts/main_tracker.json" ))
5- arena_logs = [p .parent for p in Path ("logs/completed" ).rglob ("game.log " )]
5+ arena_logs = [p .parent for p in Path ("logs/completed" ).rglob ("metadata.json " )]
66
77# Set all tracker values to 0
88for arena in tracker :
1515 k = arena_log .stem .split ("." , 2 )[- 1 ]
1616 pvp = k .split ("." , 3 )[- 1 ]
1717 setting = k [: - len (pvp ) - 1 ]
18+ if arena == "RoboCode" :
19+ with open (arena_log / "metadata.json" ) as f :
20+ metadata = json .load (f )
21+ pvp = "." .join (
22+ sorted ([p ["config" ]["model" ]["model_name" ].split ("/" )[- 1 ] for p in metadata ["config" ]["players" ]])
23+ )
24+
25+ if arena == "RoboCode" :
26+ print (f"Updating { arena } .{ setting } .{ pvp } " )
27+
1828 if arena in tracker and setting in tracker [arena ] and pvp in tracker [arena ][setting ]:
1929 tracker [arena ][setting ][pvp ][0 ] += 1
2030 rounds_played = len (json .load (open (arena_log / "metadata.json" ))["round_stats" ])
You can’t perform that action at this time.
0 commit comments