mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4281] [Benchmark] Community: Qwen3.8-Flash-Next IQ3_S + DeepSeek-V4.1-Flash IQ2_XXS on one RTX 4000 Ada 20 GB (Windows) #1885
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#1885
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 @pietroMastro92 on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4281
Community benchmark: Qwen3.8-Flash-Next (IQ3_S) and DeepSeek-V4.1-Flash (IST-DAS 2.00bpw) on one RTX 4000 Ada 20 GB, Windows
Community measurement, not the official
strata bench runprotocol (no results.json): the numbers are the engine'sown timings read from its log, which is what I could reproduce reliably on this machine. Strata 0.2.6, engine
0.1.50 (Qwen) / 0.1.51 (dsv41), Windows 11, driver 597 / CUDA 13.0.
Hardware
v0.2.6, engines 0.1.50 / 0.1.51Qwen3.8-Flash-Next, IQ3_S (77,9 GB)
Config:
--pack iq3_s --native ... --ple-gguf ... --expert-cache auto --prefill auto:32768 --spec 4 --mtp ... --max-context 393216 --rope-scaling yarn --rope-scale 1.5 --kv int8 --kv-resident 32768 --vision --control-vector-scaled ... --pcie-frac 0.20 --spec-min-p 0.70 --adapt-every 1 --adapt-swaps 80 --adapt-decay 0.97 --conversation-cache-mib 8192.DeepSeek-V4.1-Flash, IST-DAS IQ2_XXS 2.00 bpw (128,7 GiB) on the same card
Config:
--pack ...2.00bpw --max-context 65536 --eos 1 --dspark auto --mmap-experts auto(the standard settings;tools/dsv41/tune.py --mode thoroughkept them: 11,91 tok/s against the drafter forced on 9,56, 24 physicalthreads 11,43, every logical thread 11,03).
Three findings worth a line in the docs
1. Prefill cannot be measured from the HTTP round-trip. The client's request time includes the generation and,
when the prompt is already cached, the read of a handful of tokens instead of the whole prompt (I measured a
"117,8 tok/s" that was really 237,5: the round-trip was 60% generation). The reliable source is the engine's line
prompt N tokens = X reused + Y read in Z ms (W tok/s)with Y ~ N.2.
--prefill-chunklarger than the card's default costs experts. On this card the automatic chunk leaves1283 experts in VRAM (11,34 GB);
--prefill-chunk 16384leaves 951 (8,49 GB) and gives +4,3% prefill at 3,8Kand +5,5% at 20K, but -6,1% decode (14,68 against 15,63).
--prefill-chunk 20480is worse still (-9,5% decode).For a chat/agent workload the automatic choice wins. (Reported here because the Maya-lineage engine showed a
very different trade-off with a large chunk; on dsv41 it does not reproduce.)
3. An explicit
--expert-cacheabove the automatic value is a silent cliff. With--expert-cache 8000thecache went to 8.652 MiB, the VRAM filled, and decode fell from ~44 to 12,4 tok/s with no error in the log. The
automatic value (3.588 MiB here) is what the engine sized for this card and is the right one.
Also, for the drafter table in
strata_control/drafting.py: I tested DFlash2 on Ada (sm_89) with the packedincoai/Qwen3.8-Flash-Next-DFlash2drafter (SHA-256 checked, 725 MB pack) against the MTP on the same prompts andconfig: 43,75 chat / 46,88 code against the MTP's 44,35 / 45,78 (2 runs each, -1,4% / +2,4%, i.e. within the
engine's own run-to-run noise) and no change with
--draft-cap 8. With the MTP already accepting 86-88% of itsdrafts there is little room; Ada is not in the evidence table and, from this one card, does not belong to the
DFlash2-wins class.
Method notes
Separate test port,
/v1/unload+/v1/loadbefore each measurement, one variable at a time,/metricscheckedafter every start (version,
spec_min_p,expert_cache_mib), 12 warm-up + 8x200 tokens with the median of thelast 6. Run-to-run variance on this machine is ±15% across sessions (the same config read 43,5 tok/s in the
evening and 50,2 with an empty GPU), so only interleaved A/B pairs are conclusive; single "before/after" numbers
should not be read as gains below that.
@pietroMastro92 commented on GitHub (Oct 28, 2026):
Follow-up on 0.2.7 / engine 0.1.52 — same machine, same method
Two measurements from tonight on the same RTX 4000 Ada 20 GB (Windows 11, 255 GiB RAM), separate test port,
/v1/unload+/v1/loadbefore every measurement, prefill read from the engine's own line with a fresh prompt(nonce so the prefix cache never answers it), decode 12 warm-up + 8x200 with the median of the last 6.
The 0.2.7 promise holds on this card: DeepSeek prefill +16% / +21%
Same config (
--pack ...2.00bpw --max-context 65536 --eos 1 --dspark auto --mmap-experts auto), only the enginebinary differs (0.1.51 kept in a backup directory, 0.1.52 in
engine-dsv41/), two alternating rounds:Both rounds agree (3.8K: 271,8 / 266,6; 20K: 594,9 / 593,2). The release note's "the engine no longer re-reads a
batch of experts from the SSD after every prompt" is exactly what this buys on a card where 14.296 of 15.360
experts live on the CPU lane. The 13,99 of my first round was a cold first load, not a regression.
Context is nearly free on this card, up to 1M
--max-contextA 763B-parameter model answering at ~18 tok/s with a 1M-token context on a single 20 GB card is worth a line
in
docs/DEEPSEEK41.md: the page-in cost of the extra K/V is a few hundred expert slots (1.283 -> 1.064, -17%)and the decode does not drop. I have moved the daily DeepSeek config to
--max-context 262144as a workingbalance; the 1M value loads and answers, so the "not tested yet" note is now tested on one card at least.
One negative result for the Qwen side
--ple-io ram(the PLE lookup table locked in RAM) is neutral here: decode 47,67 against 48,1-48,2 and prefill1.265 against 1.262, while it pins about 97 GB of RAM (free RAM 227 GB -> 130 GB). The Qwen's bottleneck is not
the lookup: the MTP already accepts 86-88% of its drafts. Kept off.
Qwen numbers after the 0.1.52 update (unchanged within noise)
decode chat 48,08 · code 48,86 · via proxy 47,79 · prefill 3,8K 1.262 · 20K 1.619 tok/s. Against 0.1.50: 48,18 /
49,74 / 48,10 / 1.255 / 1.576. The "+2,7%" on the 20K prefill is the only movement above the run-to-run noise of
this machine (±15% across sessions, hence the alternating A/B design).
@pietroMastro92 commented on GitHub (Oct 28, 2026):
Official
strata bench runresult on this machine (0.2.7 / engine 0.1.52)I ran the standard protocol against the already-serving daily on the same RTX 4000 Ada 20 GB, Windows 11,
Strata v0.2.7, engine 0.1.52, model Qwen3.8-Flash-Next IQ3_S at context 393216:
Result directory:
bench/results/2026-10-28-standard-rtx-4000-ada-generation-5a12fc0b/(README.md, results.json,outputs.jsonl, config.json — 22 requests, no retries).
Sanity checks: 11 of 12 passed — instruction 4/4, retrieval 4/4, tool calls 3/4. The one miss was
sanity-T1("expected one structured tool call, got 0") at the protocol's temperature 1.0/top_p 0.95.That T1 miss did not reproduce. Replaying its exact request against the same server: 5 of 5 attempts returned
one structured call (
finish_reason: tool_calls,{"id":"A-17"}), at temperature 0 and again withreasoning_effortlow and high. So it reads as sampling luck in the standard protocol rather than a tool-callpath regression in 0.1.52 — worth knowing before someone chases it, and the reason I am not filing it as an issue.
For reference, on this card the protocol's numbers sit above the ad-hoc ones I reported earlier (decode 48,1 /
code 48,9) because the standard cases are capped at 512 tokens and the engine's own timings are used, as the
README explains. The prefill figures agree with the fresh-prompt measurements: 1.452 / 1.606 tok/s against
1.262 / 1.619 for my hand-rolled 3,8K / 20K prompts.
Combined with the DeepSeek result in my previous comment (0.1.52: prefill +15,7% at 3,8K and +20,7% at
20K over 0.1.51, and a working 1M-token context at 1.064 experts in VRAM), 0.2.7 is a clear step forward on
this hardware. Nothing to fix from my side.
@pietroMastro92 commented on GitHub (Oct 29, 2026):
DeepSeek-V4.1-Flash reads pictures on the IST-DAS packs too — datapoint on the 20 GB card
The 0.2.7 notes say pictures are on by default with the engine's own 319 MiB tower. On my earlier install the
pack predated 0.1.52, so it carried no tower at all:
The fix is the one the notes describe, and it is quick:
setup.py --family deepseek41 --model IST-DAS-2.00bpw --context 262144 --vision yes --no-start --yes. It fetchedmmproj-BF16.gguf(972 MB, pinned, SHA checked bysetup), re-packed with
--mmproj("vision tower from mmproj-BF16.gguf: 32 blocks, image token 129264") andwrote the run config with
--vision on, keeping my own--max-contextand--mmap-expertsvalues:Functional checks on the 2.00 bpw pack, RTX 4000 Ada 20 GB, context 262144:
Cost of the tower at this size: prefill unchanged (271,5 tok/s at 3,8K, 594,8 at 20K), decode 14,5 against
16,3 (inside this machine's ±15% noise), and the expert slots in VRAM go 1.166 -> 1.131 of 15.360.
While I was at it I compared the same model on the original
maya-ds4engine (v1.1.25,--prefill-chunk 16384 --dspark-conf 0.50 --mmap-experts off) with the same harness and the samemax_tokens 24budget: that enginereads 492,2 (3,8K) and 947,8 (20K) tok/s and decodes at 21,7 — so the
strata-dsv41port runs the prefill at55-57% of the original on this card, and
--prefill-chunk 16384on the port does not close the gap (+4-6% and-6% decode when I tried it on 0.1.51). If someone wants a lead: the gap is in the port's prompt path, not in the
pack or the hardware. Everything else about the port I have measured (the 0.1.52 prefill gain over 0.1.51, the
context up to 1M, the vision path above) works.
@Niko1221 commented on GitHub (Oct 29, 2026):
Thank you for measuring this and writing it up. We are building a Strata website with a page for community benchmarks, and results like these will be added there when it launches, so we are closing this here. If your numbers change with a new version, you are welcome to post them again.
@pietroMastro92 commented on GitHub (Oct 30, 2026):
0.2.8 / engine 0.1.54 applied on the RTX 4000 Ada 20 GB: decode and 3,8K fine, 20K prompt reading -11,4%
Updated immediately (engines 0.1.54 for both, SHA-256 checked, repo at v0.2.8). Same method as my earlier
comments: fresh prompt with a nonce, prefill read from the engine's own line, decode 12 warm-up + 8x200 with the
median of the last 6, Qwen IQ3_S at context 393216,
--spec-min-p 0.70.The 20K figure is not noise: three fresh nonced prompts gave 1.435,5 / 1.434,4 / 1.423,3 tok/s (median 1.434,4)
against 1.619 for 0.1.52 on the same box, same config, minutes apart. Decode and the 3,8K prompt are unchanged,
so the movement is in the long-prompt path specifically.
The one change in the notes that touches that path is the commit message on main: "SYCL: the prompt attention
batch is budgeted where it is allocated, and stays 32 by default". Is 32 the intended default for CUDA too, and
is there a knob to compare it (e.g. a bigger prompt attention batch) on this card? If it is a known trade-off
for the Arc pairs, ignore me; if not, it looks like a regression worth a look.
Everything else in 0.2.8 that I can test here is good: the vision path is faster, and the tool-call parsing fix
is welcome (I had measured 11/12 sanity checks on the standard protocol before, with T1 being a stochastic miss
rather than a parser problem).
@pietroMastro92 commented on GitHub (Oct 30, 2026):
Follow-up for the prefill comparison: the port is fine at real output budgets, and
DS4_FAT_ROWSgives +16-20% at 20K hereThree findings from tonight on the RTX 4000 Ada 20 GB, all measured with the fresh-prompt / engine-log method and
engines 0.1.54 (dsv41 and Qwen both updated to v0.2.8).
1.
max_tokensdoes not move the port's prefill (the sister engine's 2x does not happen here)I checked because the original
maya-ds4engine turns out to read long prompts 2x slower when the reply budgetis large (a known annoyance on Windows there). The dsv41 port is immune: same nonced 20K prompt, four budgets:
max_tokensThis matters for the comparison that started this thread: at
max_tokens 24the sister stack reads ~948 and theport ~590, but at a real budget (120+) the sister engine drops to ~553 while the port stays at ~590. So the
"1.6-1.8x slower" is a small-budget artefact on their side, not a property of the port. With FAT_ROWS (below) the
port reads 682 at 20K, i.e. above the sister engine's 553 at the same budget.
2.
DS4_FAT_ROWS=1is worth much more than the +2-5% in the 0.2.8 notes, on this cardSame config otherwise, alternating loads, three measurements each:
DS4_FAT_ROWS=1The 20K figure is stable across three fresh prompts (680,6 / 676,1 / 675,2 and later 682,6 / 683,7). The notes
frame FAT_ROWS as "+2% to +5%": on a card that holds 7% of the experts it is three to four times that. Worth
considering as a default (or a "Faster prompts" switch) on small-VRAM NVIDIA cards — it costs nothing in decode
that I can measure and no correctness change on my checks.
3. For the docs:
--prefill-chunk 16384on this class of card is a trapEncouraged by another stack's config I tried the fork's
--prefill-chunk 16384on the port: the chunk's bufferstake VRAM from the expert tier (1.131 -> 803 of 15.360 experts), and the prefill collapses:
--prefill-chunk 16384The engine's own rule picks 4096 here and it is right. If the docs mention the large chunk as a win, it is for
configs where the chunk's VRAM does not come out of the experts.
What I did not find
DS4_ATTN_SLAB=2048(rows),DS4_CPU_SMT=1andDS4_READAHEAD_MB=2048were all inside the noise on this box,so they stay off. The port's config here is now:
--max-context 262144 --eos 1 --vision on --dspark auto --dspark-conf 0.65 --pack ... --mmap-experts autowithenv: {"DS4_FAT_ROWS": "1"}.