fix(m0): pace STT partials only in the game placement

User decision (2026-11-10): without a game the STT keeps every partial
pass while the LLM answers. gamemode_tune now measures the normal
placement with the STT room and back-to-back STT only, and paces the
2 GB game placement (back to back as the same-run baseline, every 2 s,
finals only). Docs say the slowdown applies in game mode only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-10 21:37:16 +09:00
parent b3c26417d1
commit 3f0ed4343b
7 changed files with 19 additions and 17 deletions

View File

@@ -983,12 +983,13 @@ def test_tune_stage_leaves_the_stt_room_in_the_normal_placement(tmp_path, monkey
for row in continuous:
assert llm.STT_ROOM_MARGIN_MIB <= row["vram_free_mib"] < llm.STT_ROOM_MARGIN_MIB + 2 * 103
assert row["stt_room"]["stt_growth_mib"] == llm.STT_GROWTH_FALLBACK_MIB
# The paces: back to back, fewer partials, finals only; in the normal and the 2 GB game placement.
paces = {(lv.get("stt_pace") or {}).get("partial_every", "continuous") for lv in normal}
assert paces == {"continuous", 2.0, None}
# Without a game the STT keeps every partial while the LLM answers (user decision); only the
# 2 GB game placement is measured back to back, with fewer partials and with finals only.
assert all(lv.get("stt_pace") is None for lv in normal)
game = [lv for lv in llm.TUNED if lv["key"].startswith("game_")]
assert game and all("expert-vram=2" in lv["sets"] for lv in game)
assert all(lv.get("stt_pace") for lv in game)
paces = {(lv.get("stt_pace") or {}).get("partial_every", "continuous") for lv in game}
assert paces == {"continuous", 2.0, None}
assert stt.paces == [lv.get("stt_pace") for lv in llm.TUNED]
assert stt.loaded is None and running["now"] is None