mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5212] [Benchmark] RTX 4090 48 GB + Qwen3.8-Flash-Next IQ3_S: 1 to 4 parallel slots, 172.2 to 203.1 tok/s end-to-end, cache hit 99.8% to 98.5% #3101
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#3101
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 @wangminle on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5212
Reproduction status: Measured locally.
What this is
A same-machine scaling run, not the standard benchmark protocol. One RTX 4090 48 GB, one model, one fixed
code-review workload, run with 1, 2, 3 and 4 parallel slots. Each slot ran the same full 18-batch review.
The table reports end-to-end output rate (generated tokens / request duration, including prompt processing and
queueing), not the engine's pure decode rate. One run per configuration; no repeats.
Related threads: #857 (parallel 2 on a 48 GB card, v0.1.39, 100% cache hits) and #3849 (2x 12 GB cards, hit rate
99% -> 86%). This run is on 48 GB with 0.1.56 and batch-MTP.
Hardware and software
kv-resident 32768,pcie-frac 0.35,prefill auto:32768,spec 6.The 1-slot run used DFlash2 with
vram-reserve-mib 1024and nospec-min-p; the 2-4 slot runs usedbatch-MTP with
spec-min-p 0.70andvram-reserve-mib 1536.127.0.0.1:8080, no API keyConfiguration
The Terminal launch for 2, 3 or 4 slots (batch-MTP):
--vram-reserve-mib 1024and no--spec-min-p.STRATA_BATCH_MTP=1,--vram-reserve-mib 1536,--spec-min-p 0.70. DFlash2 is unavailablewith multiple batch slots, so each slot gets an MTP drafter sharing the solo drafter's weights.
At 4 slots the engine reported:
Run parameters (1-4 slots)
All paths are from the measurement machine. Values in
codeare the exact engine arguments;-means not passed.The 1-slot run was DFlash2; 2-4 slots used batch-MTP.
--parallel--batch234--draftdflash2--draft-model.../dflash2/qwen3.8-flash-next-dflash2.q4_0-selq4.pack--draft-fallbacknone--draft-conf0.5--mtp.../mtp/rt--mtp-draft-vocab.../mtp/rt/draft_vocab.binSTRATA_BATCH_MTP111--spec-min-p0.700.700.70--vram-reserve-mib1024153615361536Common engine arguments:
--pack/home/diy/.local/share/strata/Strata-data/packs/iq3_s--native/home/diy/.local/share/strata/Strata-data/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf--ple-gguf/home/diy/.local/share/strata/Strata-data/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf--expert-profile/home/diy/.local/share/strata/components/control/0.1.56/data/expert-profile.bin--expert-cacheauto--max-context204800(--context 200k)--kvint8--ple-ioram--kv-resident32768--pcie-frac0.35--prefillauto:32768--spec6--visionoff--gpu0127.0.0.1:8080no_key=true)Request and runner parameters, same for all four:
POST /v1/chat/completionsmodelstratastreamtruetemperature0max_tokens24576reasoning_effortmaxchat_template_kwargs.enable_thinkingtrue1800 s--kind all --max-chars 60000 --max-tokens 24576 --effort max --split-large --split-chars 55000Engine defaults observed in the log:
--lookup-max-t 12, window sizes 1,2,3,4,5,6,7,8,12Notes:
/metricsreportedexpert_slots=20805, matching the 1-slotreport. The 12:20:33 and 12:46:52 starts were earlier DFlash2 tests.
draftingfield still saysdflash2, but the 2-4 slot startup logs sayDrafting: MTP (DFlash2 isn't available in this mode), so the effective drafting for 2-4 is MTP.Workload and method
multidevices-wakeup-demo-3d: 131 code units, 993,185 characters per stream, 18 batches perstream.
POST /v1/chat/completions, streaming,temperature=0,reasoning_effort=max,enable_thinking=true,max_tokens=24576.bench/multidevices_review.py --kind all --max-chars 60000 --max-tokens 24576 --effort max --split-large --split-chars 55000.date +%s.%N; all streams started together.engine's decode-only rate.
Results
Per-stream rates are each stream's generated tokens divided by its own request duration. The aggregate divides
total generated tokens by the wall time until all streams finish; it is slightly below the sum of per-stream rates
when streams finish at different times. Reviews/hour is streams divided by wall time, so it counts all reviews
completed in that wall time.
Expert-cache hit rate
The 2-slot report's 99.1% line is one 11,221-window batch, not the run-wide value; the run-wide aggregate is 98.9%.
The 1-slot figure comes from the engine's per-request lines because a single DFlash2 request does not produce a
whole-run batch-window summary in the same form as 2-4 slots. The aggregation difference is 0.1-0.3 percentage
points.
Marginal change per added slot
Engine batch window, 3 vs 4 slots
What I take from it
linear: the 2nd, 3rd and 4th slots add +2.4%, +11.2% and +3.6%.
finish one review sooner; four slots produce slightly more reviews per hour (2.16 vs 2.05, +5.5%).
98.5% of routed entries from VRAM at 4 slots; PCIe is 0.2% and CPU 1.3%. Adaptive swaps rise 82.5%
(770,682 -> 1,406,593), so the cache churns more even though the hit rate stays high.
47,717 / 49,140 MiB (97.1%), CPU 18.3% user / 81.3% idle, RAM 106 GiB used / 176 GiB available, and swap 0.
Engine RSS was 99.1 GB. This is a sampled observation, not a continuous trace.
finish=lengthonsrc-009-63d37475086ed401at 642 / 882 generated tokens,with empty parsed output and 0 findings. A and C on the same unit generated 20,059 / 20,120 tokens and 10
findings each. All 72 requests had
err=null; there was no HTTP error, timeout or disconnect. The cause isunconfirmed. This reduced the 4-slot output total by about 19K tokens per affected stream; the table uses
the measured output, not a corrected estimate.
Not tested / limits
one model, one repository, one day.
weighted rates differ from the table.
per-batch-window), by 0.1-0.3 percentage points.
Raw per-request metrics, summaries and wall timestamps exist in the local run folders and can be attached if
useful.
@udqe commented on GitHub (Nov 5, 2026):
Re-read the edited body end to end (the 99.1 -> 98.9 run-wide correction, the per-request vs per-batch-window aggregation note and the limits list all landed before this reply, so it engages the current version). One reproduction pointer for the B/D failure and two discipline notes from how our season handles numbers like these.
The pointer: B/D's signature rhymes with #5218. Over there (open PR, IQ3_S on 0.2.10 - the same build and quantization as this run) the author documents a degeneration mode that burns the token budget and returns nothing parseable (3/3 at temperature 1.0 there - yours runs at 0, so this is a rhyme, not a match), and his wrap-detector catches it 3/3; four existing guards do not. B/D on the same unit producing 642 / 882 tokens,
finish=lengthand a clean parse of zero - while A/C on the same unit produce 20K tokens and 10 findings - is the shape: a stream that generated something that is not review text. The run folders already hold the raw per-request text, so a first cheap discriminator on those exact outputs: are the 642 / 882 tokens (a) a hyphen/wrap run-on like #5218's captures, (b) plausible-looking but repeating code, or (c) genuine review text truncated mid-content? Those three answers point at three different culprits (degeneration, batch-MTP drafter pathology, runner-side truncation) and the raw text distinguishes them without any re-run. And one honest question the table cannot answer:finish=lengthat 642 or 882 tokens withmax_tokens24,576 - what imposed the length there? If the runner's--split-largepath gives sub-requests a smaller effective cap, the failure class changes from "engine degenerated" to "unit split hit a small budget", which is a different bug and a different owner.On the increments as published: the headline survives n=1, the second slot does not. +17.9 % end-to-end and the reviews/hour framing (2.16 vs 2.05) are well beyond the drift we see between sessions of the same config on our boxes - those you can quote. The per-slot increments (+2.4, +11.2, +3.6 %) are single runs each, and our own cross-session drift band would swallow a +2.4 % claim - so if anyone cites "the second slot buys little", the honest version is "the second slot's gain was inside one run's noise; a single repeat at 2 slots would settle it", and 2 slots is the cheapest arm to repeat. Your own limits section says this; the ask is that the tracker reads the table that way.
The hit-rate/churn split is the season's standing lesson, cleanly reproduced here: hit falls 1.3 pp while adaptive swaps rise 82.5 % - the hit rate stays flattering while the cache works 1.8x harder underneath. Your spot sample (SM 99-100 %, PCIe 0.2 % of routing) says the churn tax lands as GPU-side time on a card this big rather than link starvation - which is also why this regime is its own column, not a row comparable to split-pair boxes like ours: at 0.2 % PCIe routing this machine never entered the regime where our thread's arguments live. Filed as its own regime in our season matrix.
Scope: nothing was run for this comment; the B/D paragraph is a discriminator menu, not a cause claim, and every number quoted is from your table or #5218 as published.
(ai-assisted; our drift-band and hit-rate/churn statements are the published methodology from our #3976/#5031 footers)
@e041l4su3qu4u03 commented on GitHub (Nov 5, 2026):
Hi udqe — Fufu here, author of #5218.
Short answer: same family, not the same signature.
Our unguarded captures are 2.7k–29k chars,
finish=length, with a hyphen run-on(longest 348 chars, punctuation 4.0 / 1000). That is the shape the guard fires on.
I have not seen 642 / 882 tokens at a 24,576 cap; if the raw text does not contain the
hyphen/punctuation signature, I would not call it #5218 yet.
Cheap discriminator on the raw B/D text (no re-run):
>= 200chars, or punctuation< 6 / 1000on text>= 2000chars→ #5218 degeneration family
>= 30%, or one 4-gram repeated>= 20x→ repetition / drafter class
finish=lengthand the last character is not sentence punctuation or a closing token→ truncation
finish=length, none of the above→
length_without_signature— a different ownerI have this as a small stdlib script; happy to paste it, or run it directly if you attach
the B/D raw text.
On 642 / 882 tokens with
max_tokens=24,576: that is the first thing I would check.If the runner's
--split-largepath gives sub-requests a smaller effective cap, thefailure class is runner-side, not engine degeneration.
To separate batch-MTP:
If useful, I can share a redacted 100k+ agent transcript that reproduces our case.
The original contains private session data, so it needs sanitizing first.
(ai-assisted; all numbers above are from #5218 as published.)
@wangminle commented on GitHub (Nov 5, 2026):
Thanks udqe and Fufu — the discriminator and the two questions are the right ones. Here is what the run folders already answer, and what they cannot.
The 642 / 882 tokens are reasoning, not content. From
bench/multidevices-review-4stream-2026-11-04/stream-{b,d}/:failures.jsonlfor both sayserr: null, parse: empty, content_tail: "". So none of the three text classes can be tested on these two: there is no answer text at all. The 642 / 882 tokens went into the thinking, and the reply ended before any content arrived.The runner did not lower the cap.
bench/multidevices_review.pysends one flat--max-tokens 24576(default at line 189, passed unchanged at line 254);--split-largeonly splits the body. The "small effective cap from the split path" branch looks closed for this pair.Same unit, different streams. A and C produced about 20K tokens and 10 findings on
src-009; only B and D ended at 642 / 882. The unit is the largest in that workload: 58,510 chars, 1,391 lines, 27,284 prompt tokens.It is not batch-MTP-only. Today, on the same machine, a 1-slot DFlash2 run (no
STRATA_BATCH_MTP) hit the same shape: PRDsrc-001, prompt 18,369, 6,167 generated, all reasoning, content empty,finish=length, no error. A follow-up turn with thinking off recovered the answer (7 findings). So theSTRATA_BATCH_MTP=0 vs 1experiment may not separate this one: the 1-slot DFlash2 arm already shows it. The 642 / 882 scale also does not match #5218's 2.7k-29k-char captures.Candidate cause (unconfirmed static analysis, not measured). The reasoning may enter a single-token loop, and the server's #606 guard (
repeat_stop_tokens = 256identical tokens in a row) ends the reply aslength. That fits: no engine error,finish=length, no content, and a token count far below both the 18,432 thinking budget and the 24,576max_tokens. It would put the failure in the server guard, not the engine or the drafter. We cannot confirm it yet: the runner savedreasoning_charsbut not the reasoning text.Next step. After the current run, we will replay
src-009and the PRD unit with the reasoning tail saved, run Fufu's four-way discriminator on that tail, and post the statistics here. If the tail is 256 identical tokens, the guard is the cause; if it is a hyphen run or code repetition, it is the #5218 / drafter class instead.On udqe's numbers note: agreed. The issue's limits section says the per-slot increments are one run each; we will read the second slot as inside one run's noise, not as a measured "buys little". The hit-rate / churn split is a good frame for this machine: at 0.2% PCIe routing the churn lands as GPU time, not link starvation.
(ai-assisted; every number above is from our own run folders; the repeat-guard paragraph is static analysis and is marked as such.)
@Niko1221 commented on GitHub (Nov 5, 2026):
Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report.
The Strata project