Skip to content

Commit b30506a

Browse files
committed
Add litellm aliases for glm, qwen
1 parent c8a1033 commit b30506a

93 files changed

Lines changed: 100 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

codeclash/tournaments/pvp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ def _save(self) -> None:
136136
s3_log_sync(self.local_output_dir, logger=self.logger)
137137

138138
def _compress_round_logs(self) -> None:
139-
self.logger.info("Compressing round logs, this might take a while...")
140139
rounds_dir = self.game.log_local / "rounds"
141140
if not rounds_dir.exists():
142141
return
@@ -149,6 +148,7 @@ def _compress_round_logs(self) -> None:
149148
str(self.game.log_local),
150149
"rounds",
151150
]
151+
self.logger.info(f"Compressing round logs, this might take a while... ({' '.join(cmd)})")
152152
result = subprocess.run(cmd, capture_output=True, text=True)
153153
if result.returncode != 0:
154154
raise RuntimeError(f"Command failed with exit code {result.returncode}:\n{result.stderr}")

configs/main/BattleCode__claude-sonnet-4-20250514__glm-4-5__r15__s1000.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ players:
2121
model:
2222
model_name: '@fireworks/accounts/fireworks/models/glm-4-5'
2323
model_class: portkey
24+
litellm_model_name_override: deepinfra/zai-org/GLM-4.5
2425
prompts:
2526
game_description: |-
2627
You are a software developer ({{player_id}}) competing in a coding game called BattleCode.

configs/main/BattleCode__claude-sonnet-4-20250514__qwen3-coder-480b-a35b-instruct__r15__s1000.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ players:
2121
model:
2222
model_name: '@fireworks/accounts/fireworks/models/qwen3-coder-480b-a35b-instruct'
2323
model_class: portkey
24+
litellm_model_name_override: deepinfra/Qwen/Qwen3-Coder-480B-A35B-Instruct
2425
prompts:
2526
game_description: |-
2627
You are a software developer ({{player_id}}) competing in a coding game called BattleCode.

configs/main/BattleCode__claude-sonnet-4-5-20250929__glm-4-5__r15__s1000.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ players:
2121
model:
2222
model_name: '@fireworks/accounts/fireworks/models/glm-4-5'
2323
model_class: portkey
24+
litellm_model_name_override: deepinfra/zai-org/GLM-4.5
2425
prompts:
2526
game_description: |-
2627
You are a software developer ({{player_id}}) competing in a coding game called BattleCode.

configs/main/BattleCode__claude-sonnet-4-5-20250929__qwen3-coder-480b-a35b-instruct__r15__s1000.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ players:
2121
model:
2222
model_name: '@fireworks/accounts/fireworks/models/qwen3-coder-480b-a35b-instruct'
2323
model_class: portkey
24+
litellm_model_name_override: deepinfra/Qwen/Qwen3-Coder-480B-A35B-Instruct
2425
prompts:
2526
game_description: |-
2627
You are a software developer ({{player_id}}) competing in a coding game called BattleCode.

configs/main/BattleCode__gemini-2.5-pro__glm-4-5__r15__s1000.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ players:
2020
model:
2121
model_name: '@fireworks/accounts/fireworks/models/glm-4-5'
2222
model_class: portkey
23+
litellm_model_name_override: deepinfra/zai-org/GLM-4.5
2324
prompts:
2425
game_description: |-
2526
You are a software developer ({{player_id}}) competing in a coding game called BattleCode.

configs/main/BattleCode__gemini-2.5-pro__qwen3-coder-480b-a35b-instruct__r15__s1000.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ players:
2020
model:
2121
model_name: '@fireworks/accounts/fireworks/models/qwen3-coder-480b-a35b-instruct'
2222
model_class: portkey
23+
litellm_model_name_override: deepinfra/Qwen/Qwen3-Coder-480B-A35B-Instruct
2324
prompts:
2425
game_description: |-
2526
You are a software developer ({{player_id}}) competing in a coding game called BattleCode.

configs/main/BattleCode__glm-4-5__gpt-5-mini__r15__s1000.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ players:
1313
model:
1414
model_name: '@fireworks/accounts/fireworks/models/glm-4-5'
1515
model_class: portkey
16+
litellm_model_name_override: deepinfra/zai-org/GLM-4.5
1617
- agent: mini
1718
name: gpt-5-mini
1819
config:

configs/main/BattleCode__glm-4-5__gpt-5__r15__s1000.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ players:
1313
model:
1414
model_name: '@fireworks/accounts/fireworks/models/glm-4-5'
1515
model_class: portkey
16+
litellm_model_name_override: deepinfra/zai-org/GLM-4.5
1617
- agent: mini
1718
name: gpt-5
1819
config:

configs/main/BattleCode__glm-4-5__grok-code-fast-1__r15__s1000.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ players:
2121
model:
2222
model_name: '@fireworks/accounts/fireworks/models/glm-4-5'
2323
model_class: portkey
24+
litellm_model_name_override: deepinfra/zai-org/GLM-4.5
2425
prompts:
2526
game_description: |-
2627
You are a software developer ({{player_id}}) competing in a coding game called BattleCode.

0 commit comments

Comments
 (0)