feat(m0): measure the normal placement with room for the STT and paced STT partials

The gamemode_stt run showed Strata's automatic placement filling the card
next to the STT (15.9 of 16.3 GB, first token 1.6 -> 7.5 s) and the STT's
back-to-back partial passes cutting LLM output to a third. The new
gamemode_tune stage measures both fixes the user chose:

- stt_room: one start without experts (STT loaded) gives the LLM's base
  VRAM; --expert-vram gets what is left after the STT's ten-speaker
  growth (from this PC's stt stage) and a 768 MiB margin.
- stt_pace: a ten-speaker partial pass every 2 s, or none, with finals
  every 0.5 s and finals first; records final wait and STT GPU share.

run_m0_gamemode_tune.bat runs it unattended.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-10 21:35:23 +09:00
parent a2e4f064d2
commit 2a85b6afa5
6 changed files with 342 additions and 39 deletions

View File

@@ -47,6 +47,10 @@ STAGES = [
# The same placements with the STT loaded next to the LLM (on the GPU and on the CPU).
("gamemode_stt", "게임 중 자동 조절: LLM과 음성 인식을 함께 켰을 때", "base", "llm.py",
["model=fast", "only=together"], 0),
# The fixes for what gamemode_stt showed: room for the STT in the normal placement, and fewer
# STT partial passes while the LLM answers (normal and the 2 GB game placement).
("gamemode_tune", "게임 중 자동 조절: STT 자리 남기기와 부분 전사 간격", "base", "llm.py",
["model=fast", "only=tune"], 0),
# With the user's game running. Needs someone at the PC, so only when asked for (--only).
("gamemode_live", "게임을 켠 상태로 재기 (직접 게임을 켜 주셔야 합니다)", "base", "llm.py",
["model=fast", "only=live"], 0),
@@ -54,7 +58,7 @@ STAGES = [
# Stages left out of a full run: they need the user there after the unattended part.
ON_DEMAND = {"gamemode_live"}
# Stages that start the STT worker next to the LLM and need the stt venv's Python.
NEEDS_STT = {"gamemode_stt", "gamemode_live"}
NEEDS_STT = {"gamemode_stt", "gamemode_tune", "gamemode_live"}
def free_gb(path: Path) -> float: