The lines from the cherry-picked change, in the wording the coordinator
approved 11-16:
- default: "Several requests at once: off (one at a time). Each extra
request at once would need about N GB of RAM at this context length, more
than this PC has free next to the model (see docs/BATCHING.md)."
- asked: "...; each also needs ~N GB of RAM)" and "recommended for this
card: one at a time. Each extra request at once would need about N GB of
RAM at this context length, more than this PC has free next to the model;
kept as you chose".
Where VRAM rules it out the existing line is unchanged.
tools/test_setup_parallel.py asserts the exact lines; with the setup config
tests 50 passed on p2003.
With KV streaming, each slot pins its whole K/V in RAM (12.38 GiB at
1M int8) and keeps about 1.8 KB of VRAM per context cell beyond 32K.
parallel_slot_gb counted 0.59 GB per slot whatever the context, so
setup recommended 2 slots for IQ3_S at 1M on a 32 GB card. Measured on
an RTX 5090 with 125.6 GiB of RAM: 4 slots ran every request 3-4x
slower, 8 slots stopped the engine at start.
The recommendation now also keeps the expert arena plus every
session's pinned K/V within 75% of the RAM (Windows refused to pin
past 99 of 125.6 GiB), takes the K/V bytes per cell from KV_CELL_BYTES
(k8v4 816), and the note says how much RAM each request would pin when
RAM is what rules it out.
Doc: docs/BATCHING.md, what a slot costs at long contexts
Cherry-picked from PR #6046 (c9a879750). The wording of the setup lines
follows in the next commit. tools/test_setup_parallel.py: 3 fail on
756242554, pass here (p2003; the snapshot step there fails on base and
head alike: no node on that box).
On a card whose experts mostly run on the CPU the slots cost speed per request (RTX 5070, Q2_0: 11-24 %), so setup
now recommends slots only when the expert cache (every card of a split counted) still holds half of the model's
experts beside them (Q2_0: 24 GB and up, or a split); elsewhere it stays at one at a time and says "parallel N
reduces waiting for several users but costs about 10-25% speed per request on this card". --parallel N is
honoured as asked, as before. BATCHING.md: the table with the change against one at a time.
The slots' sessions may take a fifth of the expert cache (~VRAM less 5 GB), up to 4: 2 on 12 GB, 3 on 16 GB, 4
from 24 GB, none below. Without --parallel setup only says it once; with it the config gets "parallel": N and a
count above the recommendation is kept with a note.