Skip to content

Commit 2a071b1

Browse files
committed
Reorganize configs: main->pvp, ladder out of ablations, models.yaml->mini/model_roster.yaml
1 parent e7889bd commit 2a071b1

205 files changed

Lines changed: 90 additions & 90 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/agents/mini_anthropic_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
`model_class: codeclash.agents.mini_anthropic_model.AnthropicModel` and provide the API key,
1212
base URL, and model name (see the `*_env` config fields, which keep endpoint-specific values in
1313
the environment rather than in committed configs). Requires the optional `anthropic` dependency
14-
(`uv pip install -e '.[llama]'`). See configs/ablations/ladder/robotrumble_llama.yaml.
14+
(`uv pip install -e '.[llama]'`). See configs/ladder/robotrumble_llama.yaml.
1515
"""
1616

1717
import json

codeclash/analysis/code_evolve/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from codeclash.arenas import ARENAS
1919
from codeclash.constants import LOCAL_LOG_DIR
2020

21-
MODELS_PATH = Path("configs/models.yaml")
21+
MODELS_PATH = Path("configs/mini/model_roster.yaml")
2222
TARGET_ROUNDS = [1, 15, 5, 10]
2323

2424

codeclash/cli/ladder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def make(
8585
):
8686
"""Build a ladder: run PvP tournaments across all pairs of players (for ranking).
8787
88-
[dim]• codeclash ladder make configs/ablations/ladder/make_battlesnake.yaml[/dim]
88+
[dim]• codeclash ladder make configs/ladder/make_battlesnake.yaml[/dim]
8989
"""
9090
yaml_content = config_path.read_text()
9191
preprocessed_yaml = resolve_includes(yaml_content, base_dir=CONFIG_DIR)

codeclash/utils/generate_confs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
44
Each configuration file specifies a tournament between two models in a given arena,
55
including the number of rounds and simulations per round. The configurations are saved
6-
as YAML files in the specified output directory (default: configs/main/).
6+
as YAML files in the specified output directory (default: configs/pvp/).
77
88
Also generates a tracking JSON file at configs/tracker.json to keep track of
99
the number of tournaments and rounds played for each pair of models in each arena.
1010
1111
Usage:
1212
13-
python codeclash/utils/generate_confs.py -m configs/models.yaml -r 15 -s 1000
13+
python codeclash/utils/generate_confs.py -m configs/mini/model_roster.yaml -r 15 -s 1000
1414
"""
1515

1616
import argparse
@@ -184,7 +184,7 @@ def main(models, arenas, rounds: int, simulations: int, record_ratio: float, out
184184
"-m",
185185
"--models",
186186
type=str,
187-
default="configs/models.yaml",
187+
default="configs/mini/model_roster.yaml",
188188
help="Path to model configurations.",
189189
)
190190
parser.add_argument(
@@ -218,7 +218,7 @@ def main(models, arenas, rounds: int, simulations: int, record_ratio: float, out
218218
"-o",
219219
"--output",
220220
type=Path,
221-
default=Path("configs/main/"),
221+
default=Path("configs/pvp/"),
222222
help="Output directory for configuration files (default: main/).",
223223
)
224224
args = parser.parse_args()

codeclash/viewer/static/js/picker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ async function fillTextareaWithAWSSubmitCommands() {
503503
// Format output as AWS submit commands
504504
const commands = successfulResults.map(
505505
(result) =>
506-
`aws/run_job.py -- aws/docker_and_sync.sh codeclash run configs/main/${result.config_name}`,
506+
`aws/run_job.py -- aws/docker_and_sync.sh codeclash run configs/pvp/${result.config_name}`,
507507
);
508508
textarea.value = commands.join("\n");
509509

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ For a more static and hill-climb-able version of CodeClash, we introduce CC:Ladd
55
For instance, for RobotRumble, we created a ladder by doing the following steps:
66
1. From the online [leaderboard](https://robotrumble.org/boards/2), we manually crawled all open source, published bots and pushed them as branches to the [CC:RobotRumble](https://github.com/CodeClash-ai/RobotRumble) repository.
77
2. We then created the `robotrumble.yaml` file in this folder.
8-
3. Next, from the repository root, we run `uv run codeclash ladder run configs/ablations/ladder/robotrumble.yaml`, which runs PvP Tournaments against all pairs of branches.
8+
3. Next, from the repository root, we run `uv run codeclash ladder run configs/ladder/robotrumble.yaml`, which runs PvP Tournaments against all pairs of branches.
99
4. From these logs, we then calculate win rate to rank all models.
1010

1111
You can follow these steps to create your own "CC:<arena>" ladder.
@@ -19,7 +19,7 @@ Each arena has a few kinds of config in this folder:
1919
- `make_<arena>.yaml` — the round-robin used to **build** the ladder (`ladder make`), running PvP tournaments across all pairs of human bots to rank them.
2020
- `<arena>.yaml` — the **run** config (`ladder run`): a climber ascends the ranked ladder rung by rung until it loses.
2121
- `<arena>__<model>.yaml` — per-model run configs (e.g. `battlesnake__opus_4_8.yaml`) that swap in a specific model via `model: !include mini/models/llama_<model>.yaml`.
22-
- `rungs/<arena>.yaml` — the ranked opponent list (worst first, strongest last), shared by both `<arena>.yaml` and every `<arena>__<model>.yaml` through `ladder: !include ablations/ladder/rungs/<arena>.yaml`. Edit the ladder in this one file and every config for that arena picks it up.
22+
- `rungs/<arena>.yaml` — the ranked opponent list (worst first, strongest last), shared by both `<arena>.yaml` and every `<arena>__<model>.yaml` through `ladder: !include ladder/rungs/<arena>.yaml`. Edit the ladder in this one file and every config for that arena picks it up.
2323

2424
## Ladder advancement rule (`ladder_rules`)
2525

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# CC:Ladder for BattleSnake — the ranked ladder of human bots (worst opponent first,
22
# strongest last), derived from the round-robin in make_battlesnake.yaml
33
# (Bradley-Terry/Elo over 1225 pairwise tournaments). An LM climber ascends rung by
4-
# rung until it loses. Run: uv run codeclash ladder run configs/ablations/ladder/battlesnake.yaml
4+
# rung until it loses. Run: uv run codeclash ladder run configs/ladder/battlesnake.yaml
55
tournament:
66
rounds: 5
7-
ladder_rules: !include ablations/ladder/ladder_rules.yaml
7+
ladder_rules: !include ladder/ladder_rules.yaml
88
game:
99
name: BattleSnake
1010
sims_per_round: 250
@@ -24,5 +24,5 @@ player:
2424
temperature: 0.2
2525
max_tokens: 4096
2626
push: True
27-
prompts: !include ablations/ladder/ladder_prompt.yaml
28-
ladder: !include ablations/ladder/rungs/battlesnake.yaml
27+
prompts: !include ladder/ladder_prompt.yaml
28+
ladder: !include ladder/rungs/battlesnake.yaml

configs/ablations/ladder/battlesnake__gemini_3_5_flash.yaml renamed to configs/ladder/battlesnake__gemini_3_5_flash.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# BattleSnake ladder climbed by gemini-3-5-flash. Requires LLAMA_API_KEY in .env.
2-
# uv run codeclash ladder run configs/ablations/ladder/battlesnake__gemini_3_5_flash.yaml
2+
# uv run codeclash ladder run configs/ladder/battlesnake__gemini_3_5_flash.yaml
33
tournament:
44
rounds: 5
5-
ladder_rules: !include ablations/ladder/ladder_rules.yaml
5+
ladder_rules: !include ladder/ladder_rules.yaml
66
game:
77
name: BattleSnake
88
sims_per_round: 250
@@ -18,5 +18,5 @@ player:
1818
agent: !include mini/default.yaml
1919
model: !include mini/models/llama_gemini_3_5_flash.yaml
2020
push: True
21-
prompts: !include ablations/ladder/ladder_prompt.yaml
22-
ladder: !include ablations/ladder/rungs/battlesnake.yaml
21+
prompts: !include ladder/ladder_prompt.yaml
22+
ladder: !include ladder/rungs/battlesnake.yaml

configs/ablations/ladder/battlesnake__gpt_5_5.yaml renamed to configs/ladder/battlesnake__gpt_5_5.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# BattleSnake ladder climbed by gpt-5-5. Requires LLAMA_API_KEY in .env.
2-
# uv run codeclash ladder run configs/ablations/ladder/battlesnake__gpt_5_5.yaml
2+
# uv run codeclash ladder run configs/ladder/battlesnake__gpt_5_5.yaml
33
tournament:
44
rounds: 5
5-
ladder_rules: !include ablations/ladder/ladder_rules.yaml
5+
ladder_rules: !include ladder/ladder_rules.yaml
66
game:
77
name: BattleSnake
88
sims_per_round: 250
@@ -18,5 +18,5 @@ player:
1818
agent: !include mini/default.yaml
1919
model: !include mini/models/llama_gpt_5_5.yaml
2020
push: True
21-
prompts: !include ablations/ladder/ladder_prompt.yaml
22-
ladder: !include ablations/ladder/rungs/battlesnake.yaml
21+
prompts: !include ladder/ladder_prompt.yaml
22+
ladder: !include ladder/rungs/battlesnake.yaml

configs/ablations/ladder/battlesnake__opus_4_7.yaml renamed to configs/ladder/battlesnake__opus_4_7.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# BattleSnake ladder climbed by opus-4-7. Requires LLAMA_API_KEY in .env.
2-
# uv run codeclash ladder run configs/ablations/ladder/battlesnake__opus_4_7.yaml
2+
# uv run codeclash ladder run configs/ladder/battlesnake__opus_4_7.yaml
33
tournament:
44
rounds: 5
5-
ladder_rules: !include ablations/ladder/ladder_rules.yaml
5+
ladder_rules: !include ladder/ladder_rules.yaml
66
game:
77
name: BattleSnake
88
sims_per_round: 250
@@ -18,5 +18,5 @@ player:
1818
agent: !include mini/default.yaml
1919
model: !include mini/models/llama_opus_4_7.yaml
2020
push: True
21-
prompts: !include ablations/ladder/ladder_prompt.yaml
22-
ladder: !include ablations/ladder/rungs/battlesnake.yaml
21+
prompts: !include ladder/ladder_prompt.yaml
22+
ladder: !include ladder/rungs/battlesnake.yaml

0 commit comments

Comments
 (0)