Skip to content

Selfplay fixes - #685

Merged
jsuarez5341 merged 2 commits into
PufferAI:5.0from
l1onh3art88:src-bot-ladder
Sep 11, 2026
Merged

Selfplay fixes#685
jsuarez5341 merged 2 commits into
PufferAI:5.0from
l1onh3art88:src-bot-ladder

Conversation

@l1onh3art88

Copy link
Copy Markdown
Contributor

Selfplay missing metric compatibility issue with constellation on eval bots.

The ladder eval hardcoded 8192 envs. That suits bots that are just code,
but an env whose bot is an external process spawns one child per env, so
thousands is not viable. Add [selfplay] eval_bot_envs to set the count and
eval_bot_threads to raise vec.num_threads for the eval only -- a bot that
blocks on IPC is paced by how many envs step concurrently, not by how many
exist. Both default to the previous behaviour.

Replace the SELFPLAY_LADDER_ENVS define with the config key, which now
carries the value and the rationale.

Also: eval_loop hard-exited when [sweep] metric named a trainer-level
overlay such as selfplay/bot_ladder_perf, because the env log cannot
contain a key the ladder computes from those very evals. Fall back to
env/score; the ladder scores off perf and ignores this value.

Drop a stray double blank line in constellation.c.
@l1onh3art88 l1onh3art88 changed the title Make bot-ladder eval parallelism configurable Selfplay fixes Sep 11, 2026
@jsuarez5341
jsuarez5341 merged commit 62ed087 into PufferAI:5.0 Sep 11, 2026
0 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants