fix(app): the LLM placement always stops a left server and confirms the port closed before reading the card

- strata launch --stop now always runs before the card is read and the start's own port must
  refuse connections; a left server that answers, still loads (503) or stays silent was skipped
  before and its memory counted as other programs'
- a stop that is not confirmed reads and keeps nothing: the model starts with expert-vram=0
- the stop confirms on the port it is given (stop_server_on), not on one remembered from an
  earlier start

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-14 10:06:53 +09:00
parent 1400a3ff97
commit b6bd1be6fb
3 changed files with 55 additions and 27 deletions

View File

@@ -391,9 +391,11 @@ start it first, so nothing answers before the brain can, and stop it last.
short answer, then the card's memory again and the staging from the engine log; kept in
`config/llm-probe.json` under `<context>/<parallel>`, and the real start then replaces that
server. A measurement whose answer or second reading fails (or shows nothing more held) is not
kept: the model starts with `expert-vram=0` and the next start measures again. A server of this
app's port that still answers before the start (left from a run that ended badly) is stopped
first, so it is not counted as other programs' memory. Without a card nothing is set. The game
kept: the model starts with `expert-vram=0` and the next start measures again. Before the card
is read, `strata launch --stop` always runs and the start's port must refuse connections, so a
server left from a run that ended badly (answering, still loading with 503, or silent) is never
counted as other programs' memory; when that stop is not confirmed, nothing is read or kept and
the model starts with `expert-vram=0`. Without a card nothing is set. The game
placement (used by the switching that comes next) takes the reserve when it fits beside more
than 2 GiB of experts, else 2 GiB and the room that leaves, else 0 GiB and its room, else pause. The `llm` log tab gets the placement and what it came from.
- **A server the app does not start**: with `llm.url` (an OpenAI-compatible `/v1` address, in the