mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4167] [TUI] strata launch defaults to --parallel 4 on 32 GB cards even when experts don't fit in RAM: decode drops 3-5× for single requests #1825
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1825
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gnyekhelyi on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4167
Problem:
strata launchrecommends and defaults to--parallel 4on a 32 GB card. On a machine whose experts don't fit in RAM, this makes single-request decode 3-5× slower.Environment: Strata desktop 0.2.3, Control 0.1.51, engine 0.1.50, Linux, RTX 5090 32 GB, 60 GB RAM, Qwen3.8-Flash-Next UD-IQ4_XS (full details below)
Reproduce:
strata launch, choose UD-IQ4_XS at 256k context, and leave Parallel at "Fit to my graphics card (4)" (the recommended choice). Send single chat requests and read thegenerated in … tok/slines in~/.local/state/strata/launch/<setup>.engine.log. Thenstrata launch --parallel 1with otherwise the same preset and compare.Expected: The recommended default doesn't make single requests slower, or the launch screen says what the extra slots cost.
Actual: Single requests decode at 19-39 tok/s with the default, and at 100-144 tok/s with
--parallel 1.Evidence: the engine log excerpts below
Reproduction status: reproduced locally on my machine. The numbers come from the engine log of normal use (an agent client), not from a controlled A/B: the prompts differ between the two runs, and the parallel-1 run had the longer contexts.
Summary
When Parallel is left at "fit to your card",
fit_parallel()(strata_cli/launch/settings.py) picks the slot count from VRAM size alone (12 GB → 1, 20 → 2, 24 → 3, 32+ → 4). On an RTX 5090 that means--batch 4. The engine then reserves 4 slot sessions (3.79 GiB of VRAM) for the whole run, whether or not requests ever overlap, and that VRAM comes out of the expert cache.On a machine where the experts the GPU can't hold don't fit in the RAM budget, those 3.79 GiB decide whether the remaining experts sit in RAM or are streamed from the SSD. In my case decode for single requests went from 100-144 tok/s (
--parallel 1) down to 19-39 tok/s (default parallel 4). The model and config were the same, and so was the client (an agent tool). The parallel-4 run had the shorter contexts.The launch screen also steers users toward it. The Parallel step marks the VRAM-based choice as recommended:
Nothing there says the extra slots take VRAM from the expert cache, or that a single request gets slower even when nothing else is running. Nothing in the log points to parallel as the cause either: the engine's warnings point to
--resident-budget-giband--prefillinstead.Environment
linux-x86_64-cuda-cuda13, build1aff6d14117b)ud-iq4_xs-256k--batch):--expert-cache auto --prefill auto --spec 4 --max-context 262144 --kv int8 --kv-resident 32768 --resident-budget-gib 33 --vision --vram-reserve-mib 896 --spec-min-p 0.50 --pool-workers 15, PCIe share on auto (probe 51 GB/s → 0.55)Numbers from the engine log
--batch 4)--parallel 1Relevant log lines from the parallel-4 run:
…and from the parallel-1 run:
When requests did overlap in batch mode, each window was CPU-bound and carried fewer than 2 rows:
Requests that ran alone in the same session (no batch summary next to them) still ran at 19-39 tok/s, for example:
After switching only the parallel setting to 1, with the same preset and a longer context:
Side effect: memory pressure
With the RAM copy at 33 GiB plus 3.1 GiB of pinned KV, RAM is tight on this machine. During a parallel-4 run, stock Ubuntu's systemd-oomd killed the whole terminal scope, engine included ("memory pressure for user@1000.service being 61.55% > 50.00% for > 20s"). In a separate run without
--batch, capped withMemoryMax=54G, the first 1.2k-token prompt after startup read ~79 GB from storage through the page cache for 27 GB of expert reads. That run survived only because of the cap. I haven't isolated how much the batch slots add to this. It may be worth a separate warning.Expected behaviour
The default parallel count should take expert fit into account, not just VRAM size. For example:
experts not in the GPU cache>RAM budgetat parallel 1, every slot session moves more experts onto the SSD. Default to 1 here, or at least choose the largest N for which the file tier doesn't grow.--batch 4: the slot sessions take 3.79 GiB ... that the expert cache would otherwise hold. When the file tier is non-zero, a hint like "--parallel 1would keep N GiB more experts off the SSD" next to the--resident-budget-gibadvice would have pointed straight at the cause.Workaround
Set Parallel to 1 in the launch screens, or run
strata launch --parallel 1. For saved setups, set"parallel": 1in~/.config/strata/launch-presets/*.jsonand theoverridesin~/.config/strata/profiles/launch-*.json.@github-actions[bot] commented on GitHub (Oct 25, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 25, 2026):
Thanks, this follows the format now.
@XiaoBinGan commented on GitHub (Oct 27, 2026):
A controlled A/B on the same 32 GB card, which points the same way as your report and removes two of its confounders (different prompts, different contexts):
parallel 4lost toparallel 1at every concurrency we measured, including four concurrent requests.Environment: RTX 5090 32 GB (PCIe Gen 3 ×16), 2 × Xeon Gold 5218, 125.6 GiB RAM, Ubuntu 20.04 host, Docker 19.03 with
--security-opt seccomp=unconfined, official image0.2.2-cuda13, engine 0.1.47, Qwen3.8-Flash-Next Q2_0, 32K context, KV int8, expert cacheauto. The machine has enough RAM for every expert (the arena is 31.64 GiB), so nothing was streamed from the SSD in either arm: the difference is the expert cache and the slot sessions alone.The engine's own sizing line, from the two runs' startup logs:
So the fourth slot cost 1,741 expert slots (2.24 GiB), which is the same trade your report describes, just smaller than the 3.79 GiB because this model's slots are smaller.
Measured with a fixed prompt and
max_tokens 192per request, two rounds per level, streaming over loopback (ttftis the client's clock to the first non-empty delta,decodeis(completion_tokens-1)/(total-TTFT)):The point that surprised me: with
parallel=1the server queues, so at four clients each request still decodes at the single-stream rate (the four finish one after another), and the aggregate is higher thanparallel=4's. Four slots did not buy throughput here; they divided the expert cache and slowed every request, including the single-request case your report is about (204 → 186 tok/s, −9% on this model; your model and context make it 3-5× because of the SSD spill your machine has and this one does not).Both runs also carry the full standard benchmark (
strata bench run) in #4313: theparallel=1arm is the one published there (short 235.4 tok/s / 4K prefill 3520.6 tok/s / 16K 5528.9 tok/s).Why this may still be a default worth changing: on a 32 GB card
fit_parallel()recommends 4, and the cost is a smaller expert cache whether or not two requests ever overlap. For a single-user desktop that is a real loss; for a server it may pay off at higher concurrency than we could measure with one slot's worth of cache. What I cannot say from one machine is where the crossover is — but at 8 concurrent clients it was not there yet.Not run: contexts beyond 32K,
--parallel 2, and the UD-IQ4_XS model you used. The numbers above are this one model and card.@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.