fix(m0,docs): fail gamemode on unstarted placements and never overrun the game reserve

The gamemode stage was "ok" when only the normal placement started; a
placement that does not start, or a measurement error inside one, now marks
the stage partial. The design no longer raises the expert budget above the
computed one: it shrinks the game reserve to what the smallest placement
leaves, shows that, and pauses the LLM during games when nothing is left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-10 17:43:26 +09:00
parent 8124451402
commit 8dfab3ab6e
3 changed files with 25 additions and 2 deletions

View File

@@ -311,8 +311,12 @@ def measure_levels(r: StageResult, s: Strata, preset: dict, context: int, levels
r["server"] = {"model": c.model, "info": server_info(base)}
c.chat([{"role": "user", "content": "안녕"}], max_tokens=8) # loading is not answer time
row.update(quick_bench(c))
for err in row["errors"]:
r.error(f"level {lv['key']}", err)
except Exception as e:
r.error(f"level {lv['key']}", e)
else:
r.error(f"level {lv['key']}", "the placement did not start")
now = gpu_memory_mib() if ready else None # the sampler can miss a short run
peak = max(x for x in (g.peak, now[0] if now else None) if x is not None) \
if g.peak is not None or now else None