feat(m0): measure the one model's game placements and fix desktop app matching

Add a gamemode stage that restarts Qwen3.6-35B-A3B with a smaller routed
expert VRAM budget (6, 4, 2 GiB, and 2 GiB with half the CPU workers), then
the normal placement again, and records switch time, free VRAM, output speed,
first spoken sentence and 8K-context first token for each. It names the
fastest placement that leaves the game its 8 GB reserve. Strata 0.1.59's
qwen36 engine cannot shrink VRAM while running, so each placement is a restart.

The desktop stage now matches running apps by the process image name Windows
lists (Discord.exe) and closes the calculator it launched by image name when
close-app cannot find a UWP app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-10 17:39:42 +09:00
parent c63a859ced
commit 13de978cf9
8 changed files with 302 additions and 17 deletions

View File

@@ -42,6 +42,8 @@ STAGES = [
("tools_recommended", "도구 호출 다시 재기: 권장 모델", "base", "llm.py", ["model=recommended", "only=tools"], 0),
# M7 PC control: agent-desktop (UI Automation) on calculator, a test page, Discord.
("desktop", "PC 제어 도구(agent-desktop) 확인", "", "desktop.py", [], 0),
# Automatic tuning: the one model in each placement (normal, less VRAM for a game).
("gamemode", "게임 중 자동 조절: 모델 배치별 속도", "base", "llm.py", ["model=fast", "only=levels"], 0),
]
@@ -141,7 +143,7 @@ def main() -> int:
"errors": [{"where": "disk", "error": f"free {free_gb(work):.0f} GB < {need_gb} GB"}]})
continue
stage_opts = list(opts)
if key.startswith(("llm_", "tools_")) and a.llm_url:
if key.startswith(("llm_", "tools_", "gamemode")) and a.llm_url:
stage_opts.append(f"url={a.llm_url}")
try:
run_stage(key, venv, script, stage_opts, work, env)