feat(app): place the LLM's experts so the speech-to-text worker keeps its room
- with an NVIDIA card the app sets --expert-vram itself by the M0 kit's formula: what the card holds before the start, the model without experts, the STT worker's share (2740 MiB), the engine's margin (768 MiB) and room for programs opened later (game.otherRoomGb, default 1 GB) are left free; Strata's own placement filled the card and left the STT no room - the model without experts is measured once per context and card (a start with expert-vram=0, one short answer, the card's memory and the engine log's staging), kept in config/llm-probe.json; the real start replaces that server - placement.rs also works out the game placement (the reserve, else the 2 GiB minimum and the room a game really gets, else pause) for the switching that comes next - with the game PC's M0 numbers the normal placement comes out at 1.5 GiB, as M0 measured Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -335,7 +335,8 @@ elsewhere it never sees a game). It never looks at the game's screen.
|
||||
|
||||
- `game` (new section): `detect` (게임 감지, on by default), `games` (programs that are games, as
|
||||
file names, ".exe" may be left out) and `notGames` (programs that are never games); each list at
|
||||
most 100 names, no folders. Read when the services start.
|
||||
most 100 names, no folders; `otherRoomGb` (0-8, default 1), the graphics memory the normal
|
||||
placement leaves for programs opened later (above, "LLM"). Read when the services start.
|
||||
- The foreground program is a game, in this order: in `notGames`: no; in `games`: yes
|
||||
(`registered`); a browser (also the bot's Chrome), video player, the desktop, Discord, a
|
||||
launcher's own window or this app: no; under a launcher's game folder (the folder after
|
||||
@@ -377,6 +378,18 @@ start it first, so nothing answers before the brain can, and stop it last.
|
||||
accepts the start (`Host::prepare_start`), never by the start itself, so a stop between accepting
|
||||
and running the start cancels it before Strata runs anything. Not installed: the start fails and says to
|
||||
run the install.
|
||||
- **Placement** (`app/src/placement.rs`, `docs/v2/pc-features.md` "PC마다 값을 계산"): with an
|
||||
NVIDIA card (`nvidia-smi`) the app sets the routed experts' graphics memory itself, `--set
|
||||
expert-vram=<GiB> --set prefill=2048`, as the M0 kit did; Strata's own placement fills the card
|
||||
and leaves the speech-to-text worker no room, and its qwen36 engine takes no reserve. Experts get
|
||||
what is left of the card after what it holds before the start (other programs), the model without
|
||||
experts, the STT worker's share (2740 MiB: its model and ten speakers at once, M0 `stt`), the
|
||||
engine's margin (768 MiB) and the room for programs opened later (`game.otherRoomGb`, default
|
||||
1 GB); the budget first holds the long-prompt staging, rounded down to 0.1 GiB, 0 when nothing is
|
||||
left. What the model holds without experts is measured once per context and card (the first-run
|
||||
self-check: a start with `expert-vram=0`, one short answer, then the card's memory again and the
|
||||
staging from the engine log), kept in `config/llm-probe.json`; the real start then replaces that
|
||||
server. Without a card nothing is set. 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
|
||||
settings file only) the app starts nothing; that server must list a model within 30 seconds.
|
||||
- **Settings**: `llm.context` (default 32768 tokens per request, 4096-262144) and `llm.port`
|
||||
|
||||
Reference in New Issue
Block a user