mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2197] [Engine] Turing (sm_75): make the STRATA_SM75_PERF series the default, with expert mode 8 for i-quant packs #875
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#875
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 @rafatxf on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2197
Area
[Engine] (speed, kernels, models, the server and API)
What do you want to do?
Make the Turing (sm_75, RTX 20 / Quadro RTX) kernel series a default on 7.5 cards, the way 0.2.0 did for sm_86 and sm_60. That means
STRATA_SM75_PERF=1, whose kernels give answers equivalent to the ones they replace. Inside it, use the grouped-expert layout that fits each pack:STRATA_SM75_EXP) only for the Q2_0 pack;This is for people running Strata on RTX 20 cards. Today they get the slower generic path unless they find the switch in docs/DETAILS.md.
What do you do today instead?
I set
STRATA_SM75_PERF=1, plusSTRATA_EXP_MODE=8on the IQ3 packs, in the model config'senvby hand. Five other sm_75 owners in this thread do the same.Environment
Strata v0.2.0-beta (
3d1fb480, engine 0.1.45.3), source build withCMAKE_CUDA_ARCHITECTURES=75. Two RTX 2080 Ti 22 GB with NVLink (NV2), layer split, i7-6700, 56 GB DDR4-2133, Ubuntu, CUDA 13.0, driver 595.99.02. Qwen3.8-Flash-Next GSQ-RCO Q2_0 and IQ3_S native packs.Evidence
The re-test on 0.2.0-beta is in the comment below. Earlier in this thread:
STRATA_SM75_PERF=1, with gains between +1.5 % and +23 % depending on pack and depth, and no errors in a 60-minute soak.tools/ab_engine.py, 3 alternating rounds, greedy, matched token counts): the series alone +7.3 % decode, mode 8 on top +12.3 %, both together +21.3 %, 12/12 pairs positive in every comparison; prefill +4.3 %.tools/quant_quality.pyrun shows modes 0, 4 and 8 are value-identical on an IQ3_S pack: 4,995 positions, 100 % top-1, KL 0.=0and=1in thedocs/BATCHING.mdgate config, 9 of 10 runs; the exception was one first request after a restart that did not reproduce (cause open). On a native pack the gate measures a spec window:--speccannot be turned off.STRATA_BF16_TCandSTRATA_PA_V2T, separate numerics opt-ins outside the series (assm75_series.hpplists them).STRATA_SIDE_MIXER=2is not part of this proposal. On a layer split it crashed the engine on long contexts (reproduced in the thread).Reproduction status: Measured locally (my numbers). The other rigs' results are their own reports in this thread.
History: this issue first tracked the sm_75 PRs (#2069-#2072, #2091-#2093, #2145, #2146, #2220-#2222). All of them were ported into 0.1.45 behind
STRATA_SM75_PERF, and #2223 was closed.@rafatxf commented on GitHub (Oct 13, 2026):
Four more, all decode, from a kernel-node profile of the verify windows on the same card (each stands alone on
maina0116b27; the four together build cleanly and passqsa_prompt_attn_parity):reduce12, cell-major probabilities (kernel 1.5-4.1×)STRATA_ATTN_V3=0offattn_qand the shared expert; kernel 1.5-2.4×)STRATA_Q2_WARP=0offSTRATA_FUSE_WAIT/STRATA_QILSTRATA_NO_PCIE_GROUP=1: with--pcie-frac 0the window graph drops the PCIe-share stage that only ever sees zero groupsEngine, 512 new tokens, two runs each, on top of the PRs above: #2220 + #2221 Spanish chat 86.0 → 87.8 t/s, code 103.1 → 106.1, 32K 75.3 → 78.4; #2223 another +2.2-2.4 % (32K-128K, +0.6 % at 390K); #2222 another ~+1-2 %.
With everything (the earlier PRs, the settings above, these four): decode after a 32K prompt 65.5 → ~81 t/s, after 128K 64.5 → 76.8, after 389,560 tokens 62.5 → 75.1 (v0.1.43 as released: 52.8).
🤖 Generated with Claude Code
@Adamyno commented on GitHub (Oct 17, 2026):
v0.1.45 on real sm_75: 2× RTX 2080 Ti,
STRATA_SM75_PERF=0vs1Report from hardware the team does not have: two RTX 2080 Ti 22 GiB (sm_75) of a
three-card rig. The third card stayed on other work; GPUs 0–1 were free.
Hardware: 2× RTX 2080 Ti 22 GiB (sm_75), i9-7980XE (18c/36t, AVX-512),
125 GiB DDR4-3600, Linux (kernel 7.0.0-38), CUDA 13.0, driver 580.178.04,
layer split 15 (CUDA0 layers 0–14, CUDA1 15–47).
Build: v0.1.45 (
477ac13c), source,-DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=75 -DSTRATA_BUILD_TESTS=ON.cuobjdump --list-elf: 62sm_75cubins, nosm_86.ctest: 133/135 passed;ple_parityneeds a Q2_0 table that is not at its fixture path here, andexpert_cache_segmented_testfailed only under-j4and passed when run alone.Model and config: Qwen3.8-Flash-Next UD-Q4_K_XL (pack
ud-q4_k_xl, 4 GGUFshards),
--max-context 262144 --kv int8 --spec 3 --spec-min-p 0.54 --batch 2 --expert-cache auto --trim-stage-weights --vram-reserve-mib 768, andSTRATA_NO_LARGEPAGES=1 STRATA_BF16_TC=1. The expert cache sized to 5355 slots(15.83 GiB) in every arm — identical placement across the A/B.
A/B, same binary, environment only, alternating order
tools/ab_engine.py, fresh server per arm, 3 rounds, medians:32k prompt (two rounds, 24,000-word prompt = 25,298 tokens, medians):
The direction matches the PRs; the size does not. On this config the gain is
+0.7…+3% decode against the +5–6% the author measured on one card, and it does
not grow from 10.5k to 25k tokens (both +1.5% decode). The likely reason: this
config is expert-cache bound — the hit rate was 60–88% with the adaptive tier,
so 12–40% of the routed expert rows were read from the CPU or the peer card over
PCIe each token, and the decode-side kernel gains are diluted. The author's
single-card Q2_0 setup has a different balance.
Identity
A text-level gate is not reliable on this rig as configured, and this is worth
knowing before trusting a 10-prompt gate here:
--adapt-every4), the same arm twice(same binary, same config) differed on 1 of 4 greedy prompts.
--adapt-every 0(static cache), the same arm twice differed on 1 of 3(chat1, first difference at char 217).
--adapt-every 0, PERF=1 twice differed on 3 of 6 prompts(chat1, math1, long4k). So the earlier PERF=0-vs-1 differences in that
configuration are not attributable to the series.
--spec 2, no--mtp), PERF=0 vs PERF=1 produced identicalgreedy text on 4/4 prompts (the same-arm control was 3/4 — chat1 flips run
to run on this rig regardless of the switch).
So: on this machine, a text gate can show a difference that is not the switch,
and cannot prove a bitwise claim. The clean comparison available to us
(no MTP, static cache) is consistent with the series being bitwise; a proper
--window-hashesrun with a fixed cache and a deterministic expert path is thetest that would settle it.
Bottom line
On 2× 2080 Ti with Q4_K_XL,
STRATA_SM75_PERF=1is +1.5% decode at 10.5k andat 25k tokens, +0.7…+3% on short chats, +0.8…+1.5% prefill — a real but small
gain, not the author's +5–6%. It is worth keeping as opt-in on this class of
config until a deep-context number says otherwise; it is not a reason to change
the default on sm_75 by itself.
Soak (2 cards, series on)
Separate run with
STRATA_SM75_PERF=1, 2× 2080 Ti, one engine start, 505back-to-back requests over 60 minutes: 0 errors, 0 restarts, decode median
41.3 tok/s, 10-minute medians 39.6 → 41.8 (expert-cache warm-up, no drift), max
GPU temperatures 43 °C / 49 °C.
@agorevski commented on GitHub (Oct 17, 2026):
RTX 8000 measurements: real gains, but not every switch is a win
Measured 2026-10-17 on physical GPUs 2 and 3, two Quadro RTX 8000 48 GiB cards (sm_75). The same-binary
STRATA_SM75_PERF=0versus1comparison improved decode by 5.85%, 7.44%, and 11.09% at 4K, 32K, and 128K, respectively, using the median of three paired comparisons. Full returned messages matched across all six runs at each size.These are observed gains for this configuration, not a reproduction of the original single-2080-Ti/Q2_0 results or a reason by themselves to change defaults. This machine has an IQ3_S mixed-format model, and the cards reached 87/90 C with unlocked clocks. Thermal/order effects limit the precision, particularly of the large prompt-processing gain.
What was actually compared
Source:
477ac13cbe8e582c20484871ce459d20d82df09d/ v0.1.45. Twelve of the thirteen implementations listed in the issue and its first comment are already incorporated in this source through integration commits, even though the original PRs remain open. I did not cherry-pick their original heads again.The current opt-in umbrella is not exactly the original list: it also includes #2081, #1821, and #1825, and excludes the separate SIMT, v2 prompt-attention, BF16-TC, and fused-expert opt-ins. #2223 was reverted (
83426781);STRATA_NO_PCIE_GROUPis inert in this checkout and was not treated as a benchmarkable change.Hardware/software:
CMAKE_CUDA_ARCHITECTURES=75, CUDA and tests enabled.434ddbbc0e30522e897670681e503b797c12b7c1, not the repository pin3cf03257f219afbe7334045ff7c6a06ac68c627d. Identical binary/dependency in every arm; not an official release-binary comparison.Model:
Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.ggufplus00002-of-00002, nativeiq3_spack. Actual gate/up formats include IQ3_XXS, IQ3_S, and IQ2_S; down formats include IQ4_NL and Q2_0. The separate Q2_0 MTP draft does not make the main model a Q2_0 model.Fixed engine settings (local model/profile paths represented by placeholders):
The server configuration explicitly selected physical
gpu=[2,3],gpu_order=as_given; it was bound to127.0.0.1. Other v0.1.45 settings were unchanged. All inheritedSTRATA_*selectors were removed before applying each arm's switches.End-to-end method and results
One fresh server/engine per arm; one discarded short warm-up request. Three rounds in AB / BA / AB order, A=
STRATA_SM75_PERF=0, B=1. Each server then processed the same frozen 4,096-, 32,768-, and 131,072-token prompts, in that order. Prompts were seeded word archives followed by a long numbered-list instruction; locally tokenized lengths were checked against the API's actual prompt counts.Greedy, thinking disabled, seed 7, 256 output-token cap. Every measured response generated 256 tokens; every
cache_nwas zero. Static expert placement, unchanged profile and capacity; OS page cache left warm, no global cache flush. Model loading/warm-up are excluded from engine PP/TG rates. HTTP wall time was also retained but is not streaming TTFT.Rates below are per-arm medians [minimum, maximum] in tok/s. Deltas are medians of paired B/A changes, not ratios of the displayed medians.
Two preceding 32K A/A restart pairs had at most 0.74% paired PP variation and 0.15% decode variation, and identical text. This is a repeatability check, not a confidence interval for the hotter long-context runs. Baseline A's PP rate drifted over time; the cards' temperatures and unlocked clocks prevent interpreting the exact percentages as thermally controlled estimates.
Startup slot-allocation signatures were identical across arms. Useful startup expert residency was about 83% of all experts; measured request hit rates were 92.6%, 93.3%, and 92.9% at the three lengths, identical between A/B. Within each prompt size, MTP offered/accepted counts also matched across baseline arms. Matching returned text is encouraging but does not prove bitwise logits or general model-quality equivalence.
All baseline runs, retained rather than just the medians
Round 2 executed B before A; rows are aligned by round/arm for readability.
Which components helped this model?
Additional three-pair, alternating 32K leave-one-group-out tests compared A=umbrella with the named group disabled against B=full umbrella. These are conditional restore-group effects, not additive standalone PR gains. All generated 256 tokens with no prompt reuse and identical returned messages.
STRATA_SM75_IL=0STRATA_SM75_EXP=0STRATA_GR_UP75=0 STRATA_GR_DOWN_TG=0STRATA_ATTN_V3=0STRATA_FUSE_WAIT=0 STRATA_QIL=0The grouped-expert choice is therefore not a universal win on this mixed IQ3_S pack. The dense table and decode attention are the clearest positive component results here. The small HC/fusion deltas should not be oversold. These runs used warm-up then 32K, unlike the main sweep's warm-up/4K/32K/128K history; compare within each pair, not absolute rates between suites. No inference profiler was used, so a small effect is not proof of a particular dispatch.
Kernel-level checks on the RTX 8000s
Separate synthetic/real-row harnesses ran concurrently, one on GPU 2 and one on GPU 3, before the sequential two-GPU inference tests. Shared host load and unlocked clocks are additional caveats. Three process-level rounds per timing comparison; CUDA-event measurements, warm-ups and repeated launches. These numbers are kernel results, not whole-engine speedups.
QSA dispatches were confirmed with launch-only profiling; profiled timings were excluded. For reproduction, the key existing harness commands were:
Here
0|1and1|2mean separate invocations, not literal shell syntax. Alternate AB/BA/AB. HC measurements usedfused_gr_bench 300 4 6 8,STRATA_HC_SPLIT=2, and combinations ofSTRATA_GR_UP75=0/1,STRATA_GR_DOWN_TG=0/2.Real mixed-format expert-row tests also found forced mode 4 variable at T=1 and much slower at T=4. That explicit mode bypasses the current automatic down-mode fallback; it must not be presented as the automatic umbrella's engine regression. The leave-one-group-out result above tests the actual automatic policy.
Separate opt-ins: screening only, not quality approval
Each received one 32K A/B screening pair, on top of
SM75_PERF=1. None exceeded the preselected 3% PP or decode threshold for a further three-pair/deep-context sweep. Single pairs are particularly uncertain; these are not established gains.PA_V2T=0 -> 1(#2092 + #2146 together)SELECT_SIMT=0 -> 2(#2071)XN_F16=0 -> 1, BF16_TC=1 in both (#2091)PA_V2T/SIMT changed MTP acceptance too, so their decode deltas are not pure decode-kernel effects. BF16_TC's outputs differed from the ordinary umbrella baseline; XN_F16 identity applies only with BF16_TC already held on. No long-context KL/perplexity/needle tests were run. This does not support making the answer-changing options defaults.
Coverage and limits
Bottom line: the current bitwise umbrella gives a clear, repeatable directional improvement on this two-RTX-8000/IQ3_S setup, with matching text and MTP counts. The dense IL table and int8 decode-attention changes have the strongest isolated engine evidence; grouped expert mode selection deserves format-specific caution. Large synthetic kernel gains do not automatically become large engine gains, and the separate numerically different prompt opt-ins remain unvalidated here.
@Adamyno commented on GitHub (Oct 18, 2026):
Second IQ3_S pack, a second sm_75 pair:
STRATA_SM75_EXP=0is +2.7% decode; the K-quant control does not moveCross-check of @agorevski's leave-one-group-out result (grouped experts −2.62% on his IQ3_S pack), on a different rig and a different IQ3_S pack, plus a K-quant control on the same box.
Hardware: 2× RTX 2080 Ti 22 GB (sm_75, power limits 210 W / 167 W), i9-7980XE (18c/36t), 125.5 GiB DDR4-3600, Linux 7.0.0-38, CUDA 13.0, driver 580.178.04. Two cards only — the third stayed on other work.
Build: v0.1.45 (
477ac13c), source,-DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=75. Same binary in both arms; only the environment differs.Fixed config (both arms):
--layer-split 15, 262,144 ctx,--kv int8 --kv-resident 32768,--spec 3 --spec-min-p 0.54 --mtp mtp/rt --mtp-max-t 3 --batch 2 --vram-reserve-mib 768 --trim-stage-weights,STRATA_SM75_PERF=1in both arms,STRATA_NO_LARGEPAGES=1 STRATA_BF16_TC=1. Sampling pinned greedy (top_k 1,temperature 0) withpresence_penalty 0so the 0.1.45 card set (#2940) does not reach either arm.Method:
tools/ab_engine.pyfrom the repo, fresh server per arm, 5 rounds, order alternates (AB / BA), warm-up request discarded, three chat prompts (256 new tokens) and one 24,250-token prompt (256 new tokens). Figures are medians of the paired per-round deltas, not ratios of displayed medians.IQ3_S (ISTA-DASLab GSQ-RCO, pack
gsq_iq3s), A = default (EXP on), B =STRATA_SM75_EXP=0All 20 pairs: median +2.7%. Prefill is unchanged.
The 24k row is not a kernel-only comparison: in 3 of the 5 pairs the two arms stopped at different answer lengths (157 vs 131 tokens), so that row mixes in a drafting difference. The chat rows mostly do not: 13 of the 15 chat pairs generated the same token count, and in the eight pairs where the accepted/offered draft counts also match (rounds 3–4, read from the engine log) the median is +2.45% (+1.93, +2.08, +2.11, +2.80, +3.44, +3.63, +3.91, and one −5.37).
That −5.37% pair is worth naming rather than smoothing: A and B both generated 205 tokens and both accepted 104 of 153 drafts, so it is not a sampling or drafting difference — it is a timing outlier on my box (A 3,341 ms, B 3,531 ms for identical work). I did not find a cause; every other identical-work pair sits between +1.9% and +3.9%. I am reporting the median with it included.
Control: Q4_K_XL (K-quant pack
ud-q4_k_xl), same box, same binaryTwo rounds. Round 0 gave four pairs with identical token counts and identical accepted/offered drafts:
Median −0.2%. Round 1 drafting differed between the arms in all four pairs (−0.6, −6.6, +4.9, +4.8%) and is excluded — on this pack the run-to-run drafting noise is larger than any effect. So this control says "no gain on a K-quant pack", not "bitwise": four pairs cannot prove inertness, but they are consistent with the code comment that this switch is the i-quant down layout.
What I take from it
STRATA_SM75_EXP, on by default underSTRATA_SM75_PERF=1) costs ~2.6–2.7% decode on an IQ3_S pack on this rig, the same direction and size @agorevski measured on his own IQ3_S pack. Two rigs, two packs, same answer — so this looks like the pack class, not his box.Not measured: three-card split, full-power cards,
--window-hashesidentity, other quant families. Rawresults.jsonlper request, the engine logs and the two configs are retained locally — I can attach them or run more rounds if that is useful.@coolthor commented on GitHub (Oct 18, 2026):
v0.1.45 on a single RTX 2080 Ti 22 GB, IQ3_S:
STRATA_SM75_PERF=1helps, andSTRATA_SM75_EXP=0helps moreAnother sm_75 data point, this time on one card with no layer split. It's also the third rig to see
STRATA_SM75_EXP=0come out ahead on an IQ3_S pack, after @Adamyno and @agorevski.Hardware: 1× RTX 2080 Ti 22 GB (sm_75), 200 W power limit, clocks not locked, peak 74 °C. AMD EPYC 7402 (24c/48t), 123 GiB RAM, PCIe Gen3 x16, Ubuntu 26.04, driver 580.173.02, CUDA 12.4. The box's other two GPUs kept serving their usual workloads during the run.
Build: v0.1.45 (
477ac13c), Release,CMAKE_CUDA_ARCHITECTURES=75, built throughsetup.py.cuobjdump --list-elf: 62 sm_75 cubins. My first build (GCC 15 for C++, GCC 13 as the CUDA host compiler) failed at link time on__cxa_call_terminate. Building everything with GCC 13 (CC=gcc-13 CXX=g++-13 CUDAHOSTCXX=g++-13) worked. I built withoutSTRATA_BUILD_TESTS, so I have no ctest results to report.Model and config: Qwen3.8-Flash-Next-GSQ-RCO IQ3_S, single GPU,
--max-context 262144 --kv int8 --kv-resident 32768 --spec 4 --spec-min-p 0.7 --lookup-chain 5 --ple-io direct --expert-cache auto --prefill auto --vision --vram-reserve-mib 700,parallel: 1. Expert cache: 7589 slots / 14,737 MiB in every arm. The vision encoder ran on the CPU (gpu: false, 24 threads) the entire time. Common env:STRATA_BF16_TC=1 STRATA_ADAPT_OVERLAP=1.Arms (same binary, env only): P0 =
STRATA_SM75_PERF=0· P1 =STRATA_SM75_PERF=1· P1-EXP0 =STRATA_SM75_PERF=1 STRATA_SM75_EXP=0Method: 5 rounds with a fresh server per arm per round, alternating the order each round. I used one warmup request per start and didn't count it. Sampling was greedy (
top_k 1,temperature 0,presence_penalty 0,reasoning_effort none), with no prompt reuse (every request got a unique prefix). Decode numbers are the engine'sdecode_tok_s. Prefill isprompt_readdivided by prompt time in seconds. Each cell is the median of 5 runs, with [min, max].The 65K prompts are beyond
--kv-resident 32768, so those rows include KV streaming.Output parity (with drafts on,
--spec 4):--spec 0, so I can't say whether the 4K difference comes from the kernels or from draft acceptance.Smoke checks: a vision test (reading table values) and a structured tool call passed in all three arms. On a 2048-token thinking puzzle, all three arms reached the right final answer, but P1's written explanation contradicted the puzzle's premise in one step. That's a single request, so I'm noting it rather than reading too much into it.
After this run I switched the card's production service to v0.1.45 with
STRATA_SM75_PERF=1 STRATA_SM75_EXP=0. I can rerun a--spec 0pass, or try any other switch you want checked.@rafatxf commented on GitHub (Oct 19, 2026):
Thanks @Adamyno, @agorevski and @coolthor (and @ioridev in #2069) for the runs. That makes five sm_75 setups, four of them independent of mine. Every PR in this issue was ported into 0.1.45, so I have closed them; #2223 was closed as below the 3 % bar. I'll keep this issue open for the default question.
STRATA_SM75_PERF=1across the rigs (decode, against=0)Every rig saw a gain, and there were no errors in Adamyno's 60-minute soak. The size depends on how much of the decode runs on the GPU. To me that supports making the bitwise umbrella the sm_75 default. The expert layout below is the exception.
The grouped-expert layout: mode 4 only helps the Q2_0 pack
Three of you found that turning off mode 4 (
STRATA_SM75_EXP=0, which goes back to mode 0) helps on IQ3_S. ioridev and I had compared mode 4 against mode 8 instead (STRATA_EXP_MODE=8). Nobody had put 0 and 8 side by side, so I ran all three modes on the three packs I have.Setup: v0.1.45 +
STRATA_SM75_PERF=1, 2x 2080 Ti in a layer split, 32K context,--spec 4 --mtp --adapt-every 0.Method: engine-direct, 512 greedy tokens per prompt. Each figure is the mean decode tok/s over the es, code, 4K and 16K prompts.
SM75_EXP=0)EXP_MODE=8)The IQ3_S row leaves out the 16K prompt. In the mode-8 arm the drafts went differently there: 238/375 accepted against 262/357 in the other two modes. That run took 13.85 s against 12.37 s, so it mixes in a drafting difference. I don't know the cause: ioridev's
native_expert_benchshowed 0 differing outputs between modes 0 and 8.So mode 4 is the right layout only for the Q2_0 pack. On the i-quant packs, mode 8 is the fastest here, and mode 0 is still better than mode 4. On Adamyno's K-quant control the switch is flat.
Suggestion, if you make the umbrella a default:
STRATA_SM75_EXP(mode 4) on the Q2_0 pack only.If a
--spec 0or--window-hashesrun of any of these would help, I can do it.@Adamyno commented on GitHub (Oct 19, 2026):
Mode 4 / 0 / 8 on a second IQ3_S pack: mode 8 wins here too (+4.9% decode over the umbrella default), prefill unchanged
Confirmation of @rafatxf's mode comparison on a different rig and a different IQ3_S pack, in the shape I measured
STRATA_SM75_EXPbefore.Hardware: 2× RTX 2080 Ti 22 GB (sm_75, 210 W / 167 W), i9-7980XE, 125.5 GiB DDR4-3600, Linux 7.0.0-38, CUDA 13.0, driver 580.178.04.
Build/config: v0.1.45 (
477ac13c), one binary, environment only. Qwen3.8-Flash-Next GSQ-RCO IQ3_S (gate/up IQ3_XXS 17 layers, IQ3_S 10, IQ2_S 20, IQ4_XS 1; down IQ4_NL 39, Q2_0 9),--layer-split 15, 262,144 ctx,--kv int8 --kv-resident 32768,--spec 3 --spec-min-p 0.54 --mtp mtp/rt --batch 2, greedy (top_k 1,temperature 0,presence_penalty 0),STRATA_SM75_PERF=1in all three arms. 24,250-token prompt, 256 new tokens, 3 rounds, order alternates (ABC / CBA / ABC).SM75_EXP=0)EXP_MODE=8)Paired deltas against mode 4, only the pairs whose token counts match (drafting differences excluded):
Prefill is flat between the modes (±0.9%, within run noise), so this is a decode-layout effect, as expected.
What it says
On this pack the order is mode 8 > mode 0 > mode 4, which is the same direction @rafatxf measured on his IQ3_XXS and IQ3_S packs (there: +4.4% and +2.7% for mode 8 over mode 4). Two rigs, three packs (his Q2_0/IQ3_XXS/IQ3_S and this IQ3_S) now agree: mode 4 is the Q2_0 layout only, and the i-quant packs want mode 8.
Mode 8 changes the arithmetic (int8 rounding), so this is a speed result, not an identity claim — I have no KL or
--window-hashesrun for it. If a mode 8 identity gate is what would settle the default, I can run one on this pack.@Adamyno commented on GitHub (Oct 19, 2026):
Quality check on the same pack: mode 8, mode 0 and mode 4 are value-identical here (4,995 teacher-forced positions)
Before anyone changes a default: I ran the repo's own yardstick (
tools/quant_quality.py) on the same IQ3_S pack, with the expert arena on the GPU so the layout is actually exercised.Setup: Qwen3.8-Flash-Next GSQ-RCO IQ3_S, one RTX 2080 Ti 22 GB,
data/quant_quality/v1(code, docs, english, multilingual, agent — 999 positions each, 4,995 total), FP16 K/V,--short-read,--prefill 512,--gpu-experts 1500; expert cache, adaptation, PCIe share and prompt cache fixed by the tool. Reference = mode 4 (the umbrella default), one engine per arm, same binary.EXP_MODE=8)SM75_EXP=0)Control that the harness does see the GPU expert path: mode 4 with all experts on the CPU (the tool's default
--expert-cache 1) against mode 4 with 1,500 GPU slots gives 94.81% top-1, mean KL 0.0265, PPL 4.143 vs 4.115. So moving the experts onto the card does move the logprobs; switching the layout does not. (Mode 4 and mode 0 with experts on the CPU are also identical, as expected.)What this means for the default question
On this pack the mode-8 layout changes where the numbers live, not the numbers: the +4.9% decode I measured is not paid for in output quality at the shapes the yardstick covers. If the choice is made on speed alone, mode 8 is the one to take for i-quant packs.
Caveats, so this is not read as more than it is: the yardstick reads one token per window (
--short-read), while the speed runs use spec-3 verify windows of four rows — and Turing's down projection already falls back to the CUDA layout at 4+ token windows (sm75_down_em), so those windows are only partly covered here. A--spec-follow+--window-hashesrun is the test for that shape if you want it. One pack, one card, and no task-level eval (no needle/recall).@coolthor commented on GitHub (Oct 19, 2026):
Mode 0 vs. mode 8 on a single RTX 2080 Ti (IQ3_S): mode 8 wins here too
Following up on @rafatxf's mode comparison, I ran mode 0 against mode 8 on the same single-card setup as my earlier comment (one RTX 2080 Ti 22 GB, no layer split, Qwen3.8-Flash-Next-GSQ-RCO IQ3_S, v0.1.45
477ac13c, int8 KV,--spec 4,--kv-resident 32768, CPU vision encoder attached).Arms (same binary, env only): both use
STRATA_SM75_PERF=1 STRATA_SM75_EXP=0; the mode 8 arm addsSTRATA_EXP_MODE=8. Inexp_mode()(src/kernels/cuda/iq_kernels.cu), an explicitSTRATA_EXP_MODEis read before the GPU default, soSTRATA_SM75_EXP=0doesn't override it.Method: same as before. 5 rounds, a fresh server per arm per round, order alternating each round, greedy sampling. Each result is the median of 5 runs. Decode uses the engine's
decode_tok_s, with [min, max] shown; prefill is prompt tokens read divided by prefill time.Decode is faster at every tested length, with bigger gains at 32K and 64K than at 4K. Prefill is essentially unchanged. That matches what you and @Adamyno saw on IQ3_S.
The vision and structured tool-call smoke tests passed in both arms. I'm now running mode 8 in production on this card.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. 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.
@rafatxf commented on GitHub (Oct 19, 2026):
Re-tested on v0.2.0-beta (
3d1fb480, engine 0.1.45.3), source build for sm_75, nothing patched.Setup:
--kv int8 --kv-resident 32768 --spec 4 --spec-min-p 0.7 --mtp --pcie-frac 0 --adapt-every 0 --resident-experts.STRATA_BF16_TC=1in every arm.Method:
--serve): a fresh engine per prompt, then 512 greedy tokens.Decode, tok/s
STRATA_SM75_PERF=1+ STRATA_EXP_MODE=8STRATA_SM75_PERF=1+ STRATA_EXP_MODE=8STRATA_SM75_PERF=1: Q2_0 4K 3.79 → 3.57 s, 16K 13.98 → 12.98 s. IQ3_S 4K 5.13 → 4.95 s, 16K 15.30 → 14.36 s.SM75_PERFarms accepted the same drafts (Q2_0 es 262/342, code 330/389; IQ3_S es 262/349, code 341/403), as expected for bitwise kernels.The same picture as on 0.1.45:
SM75_PERFgives +19 % on Q2_0 and +4 % on IQ3_S.I have updated the title and the body to the feature-request form (proposal, current workaround, environment, evidence).
/reopen
@rafatxf commented on GitHub (Oct 19, 2026):
/reopen
@github-actions[bot] commented on GitHub (Oct 19, 2026):
Reopened, thank you. A maintainer will pick it up from here.
@xrip commented on GitHub (Oct 19, 2026):
Another sm_75 rig on 0.2.0-beta: 2x CMP 50HX 20 GB (sm_75), layer split, IQ3_XXS. On top of
STRATA_SM75_PERF=1+STRATA_EXP_MODE=8(which this box has run since 0.1.45), three more bitwise switches give +2.8 % decode. Two others are slower here.Setup
f57c0adc) plus my fork's cache patches (none touch the decode kernels).performanceand C-states deeper than C1 were off; no other load.ed59f920), IQ3_XXS, converted to the native pack.--layer-split auto --kv int8 --spec 4 --spec-min-p 0.5 --mtp,--adapt-swaps 0 --pcie-frac 0.17 --pool-workers 19.STRATA_BF16_TC=1 STRATA_ROUTE_TAIL_SKIP=0 STRATA_PREFILL_CPU_SHARE=0.On this box the decode text differs from run to run even with the same binary, and the number of accepted drafts moves with it. So I compare the time per verify window (decode ms / (generated tokens - accepted drafts)) and give tok/s beside it.
Screen (one run per switch; base = the average of a run before and a run after, 34.91 ms/window, the two 0.5 % apart):
STRATA_ATTN_DAILY=1STRATA_SIDE_MIXER=2STRATA_B6_MMVQ_ROWS=1STRATA_ARGMAX_ROWS_SM70=1STRATA_GR_NORM_FAST=1STRATA_QSA_ROWS=1STRATA_GU_SWIGLU=1The three winners together, 3 interleaved rounds:
SIDE_MIXER=2 ATTN_DAILY=1 B6_MMVQ_ROWS=1Exactness on this card
qsa_merge_daily_parity --device 0and--device 1: 1,172 cases, 0 differ, PASS on both.b6_mmvq_bench 300 0 1: every case/width bit-identical ("0 case/width comparisons failed"). It is faster at 2-5 columns in most cells, e.g. the QSA q IQ4_XS projection at 5 columns 0.131 -> 0.086 ms. The engine's sm_75 interleaved table already covers some of those shapes, so the end-to-end gain is smaller.SIDE_MIXER=2runs the same kernels on branches of the window graph. I did not check it separately.Limits: one pack, one depth (172K), swaps off, CMP 50HX cards (not a GeForce 2080 Ti). The screen is one run per switch; only the three-switch set has repeated runs.
QSA_ROWSbeing slower here differs from #3161's 2080 Ti set; that may come from the layer split or the pack.For this thread's default question: on this rig the three switches would be a measured addition to the sm_75 set.
GU_SWIGLU(on in the sm_86 table) should stay off for sm_75.Reproduction status: measured locally; every number here is from my runs on this box.
@EliahHofmann commented on GitHub (Oct 19, 2026):
2× Tesla T10 16 GB (sm_75, 100 W cap, passive) on v0.2.1.3: SM75_PERF +4.5 % decode, the full bitwise set + mode 8 +14 % decode / +11 % prefill on IQ3_S
Another sm_75 data point, this time on a card class the thread hasn't covered yet: passively cooled Tesla T10s (TU102) at a 100 W power limit. Re-tested on 0.2.x as requested, with the same rig and method on 0.1.45 for comparison.
Hardware: 2× Tesla T10 16 GB (TU102, sm_75, VBIOS 90.02.41.00.01), power limit 100 W each (default 150 W), case fans driven from GPU temperature. AMD Ryzen 7 5700G, 62 GB DDR4, ASUS PRIME X570-PRO, PCIe 3.0 x8/x8. Ubuntu 24.04, kernel 7.0.0-38, driver 580.178.04, CUDA 12.9.
Build: v0.2.1.3 (
cbfd5b92, engine 0.1.46.2), source build withCMAKE_CUDA_ARCHITECTURES=75, nothing patched. Same CMake settings as setup.py's local build.Model and config: Qwen3.8-Flash-Next GSQ-RCO IQ3_S native pack (the 0.1.45 pack loads unchanged),
--layer-split 24 --expert-cache auto --prefill auto --spec 4 --mtp rt --spec-min-p 0.70 --max-context 245760 --kv int8 --kv-resident 32768 --pcie-frac 0.00 --prefill-pipe 1536.Method:
tools/ab_engine.py, one binary, the arms differ only by the config'senvblock. Fresh server per arm, 3 rounds with alternating order, greedy, thinking off, 512 new tokens. Three chat prompts plus one 21,102-token prompt (--long-words 20000).Arms
STRATA_SM75_PERF=1STRATA_EXP_MODE=8+STRATA_QSA_ROWS=1 STRATA_ATTN_DAILY=1 STRATA_SCORES_THREAD=1 STRATA_KV_PREFETCH=1 STRATA_CACHE_MESSAGE_BOUNDARY=1(the bit-exact set from #3161) +STRATA_SIDE_MIXER=2 STRATA_B6_MMVQ_ROWS=1 STRATA_SELECT_SIMT=1v0.2.1.3, decode tok/s (median of 3 rounds)
The paired median is the median of the per-round, per-request deltas between two arms in the same round. Identical-length pairs only: all vs default +12.5 % (n=3), perf vs default +7.2 % (n=2).
Which switches carry the gain (0.1.45, same rig and method)
On 0.1.45 I added the switches one group at a time, on top of
STRATA_SM75_PERF=1(auto layer split; perf alone read 869 tok/s prefill):EXP_MODE=8SIDE_MIXER=2 B6_MMVQ_ROWS=1 SELECT_SIMT=1So on the T10s, mode 8 does most of the decode work (+6.5 %, more than the +1.6 … +4.9 % on the 2080 Ti rigs, plausibly because the 100 W cards are more compute-bound per expert row). The set of 5 adds most of the prefill gain.
0.1.45 vs 0.2.1.3, all switches +
--layer-split 24on both: decode −0.9 %, prefill −1.1 % (paired medians, within noise). The speed did not move between the versions, and the switches are still opt-in on 0.2.1.3.Side note for T10 owners (cf. #2007):
--layer-split 24against auto gave +2.3 % decode and +6.1 % prefill here (0.1.45, all switches). Auto picked 20, 22 and 23 on different starts.Caveats
--window-hashesor KL run was done here, so this is a speed result only.What I take from it: on 0.2.1.3 and 2× T10, the bitwise umbrella alone is +4.5 % decode / +5.1 % prefill, and with mode 8 for the i-quant pack plus the bit-exact set it is +14 % / +11 %. That supports the default this issue proposes, including mode 8 for i-quant packs.
Reproduction status: measured locally, every number here is from my runs on this box.
@Adamyno commented on GitHub (Oct 19, 2026):
The three bitwise switches from the CMP 50HX screen, on a 2080 Ti pair: within noise here
Tested the
STRATA_SIDE_MIXER=2+STRATA_ATTN_DAILY=1+STRATA_B6_MMVQ_ROWS=1combination @xrip reported (+2.8% on 2× CMP 50HX) on a second sm_75 rig.Setup: 2× RTX 2080 Ti 22 GB (210/167 W), i9-7980XE, 125.5 GiB DDR4-3600, Linux 7.0.0-38, CUDA 13.0, v0.2.0-beta (
3d1fb480), source build for sm_75. Qwen3.8-Flash-Next GSQ-RCO IQ3_S,--layer-split 15, 262,144 ctx,--kv int8 --kv-resident 32768 --spec 3 --spec-min-p 0.54 --mtp mtp/rt --batch 2, greedy. 24,250-token prompt + three short chats, 256 new tokens, 3 rounds, alternating order, one binary.Both arms already have
STRATA_SM75_PERF=1 STRATA_EXP_MODE=8; the test arm adds the three switches.All 12 pairs: median +1.19%; the 10 pairs whose token counts match: median +0.87% (−1.22 … +7.36). Nine of the twelve pairs are positive, but the size is at the edge of this box's run-to-run spread, and the long prompt — where it would matter most — is +0.5%.
So on this card the three are neutral-to-slightly-positive, not the +2.8% the CMP 50HX sees. That is not an argument against them (they are bitwise and cost nothing measurable), just not a second confirmation of the size; the gain looks card-specific, which is worth knowing before any of them is considered for a default.
@Adamyno commented on GitHub (Oct 19, 2026):
--window-hasheson a 22 GB sm_75 card: the run-to-run difference comes from the expert placement, not the modeTried to close the spec-window identity question for mode 8 with
--spec-follow+--window-hasheson the IQ3_S pack. The result is about the gate itself, not about the modes.Setup: 1× RTX 2080 Ti 22 GB, v0.2.0-beta (
3d1fb480), IQ3_S native pack,--max-context 4096 --prefill 2048 --adapt-every 0, a fixed 400-token prompt and a fixed 64-token continuation (--spec-follow),--spec 3 --spec-min-p 0.54 --mtp mtp/rt. 24 windows per run.--spec 2without--mtp--expert-cache 1(all experts on the CPU)--expert-cache 1So the nondeterminism is not in the mode switch and not in the speculation: it appears whenever the expert arena is mixed GPU/CPU, which is unavoidable for a 125B IQ3_S pack on a 22 GB card. With the placement pinned to the CPU the file is reproducible — but then the GPU grouped-expert kernels run in neither arm, so that comparison says nothing about the layout.
What this means for a default change: on a card where the pack cannot be resident,
--window-hashescannot separate two layouts, because the same arm does not reproduce. If there is an intended way to pin the placement for the gate (a fixed GPU/CPU split, or a fixed--expert-cache Nplus a fixed profile), that would make the spec windows usable on these rigs; I could not find one in the help.The strongest identity evidence I can produce on this box stays the teacher-forced comparison in
tools/quant_quality.py(4,995 positions, one token per window, expert arena pinned at 1,500 slots): mode 8 and mode 0 are identical to mode 4 there (100.00% top-1, mean KL 0.00000), and the CPU-vs-GPU-expert control (94.81% top-1, KL 0.0265) shows the harness does see the GPU expert path. That covers the decode shapes; the 4-row verify windows are the part still open, and this rig cannot answer them with the hash gate as it stands.@Adamyno commented on GitHub (Oct 19, 2026):
Mode 8 on two and three cards, same engine (v0.2.0-beta): +6.4% and +13.1% over mode 4
Same binary, environment only, on the same pack and the same prompt, at two card counts. This is the card-count half of the mode-8 case.
Setup: RTX 2080 Ti 22 GB (210/167/200 W), i9-7980XE, 125.5 GiB DDR4-3600, v0.2.0-beta (
3d1fb480), source build for sm_75. Qwen3.8-Flash-Next GSQ-RCO IQ3_S, 262,144 ctx,--kv int8 --kv-resident 32768 --spec 3 --spec-min-p 0.54 --mtp mtp/rt --batch 2, greedy. 24,250-token prompt + three 256-token chats, 2 rounds, alternating order.STRATA_SM75_PERF=1in both arms; the mode-8 arm addsSTRATA_EXP_MODE=8.Per request, 3 cards: chat0 +13.5%, chat1 +14.0%, chat2 +12.2%, 24K prompt +10.5%. 2 cards: chat0 +4.7%, chat1 +7.0%, chat2 +7.0%, 24K prompt +8.7%.
Prefill is unchanged in both (2 cards 1,344 → 1,348 tok/s, 3 cards 1,965 → 1,966).
The gain grows with the card count, which fits the mechanism: more cards hold more experts, so more of the routed work runs the grouped layout on the GPU and less of it comes from the CPU. That also matches the single-card reports in this thread being the smallest (+2.7% on your IQ3_S, +3–6% on coolthor's).
Not a kernel-only comparison in every row: on 2 cards the 24K pair generated 140 vs 171 tokens, so that row mixes in a drafting difference; the chat rows are all 256 and clean. Two rounds per card count, so treat the sizes as ±2 points rather than exact.
For the default question this is the strongest part of the case: the people who run sm_75 cards in a split (the reason this thread exists) gain the most, and the switch is value-identical in the shapes
quant_qualitycan measure.@rafatxf commented on GitHub (Oct 19, 2026):
The extra switches from @xrip and #3161, one at a time on my rig, on top of a config that already runs the answer-changing prompt opt-ins. On this box only
SIDE_MIXER=2moves decode. That fits @Adamyno's three-switch result above (+0.9 to +1.2 %): the small gain he sees is mostly this one switch.Setup:
STRATA_SM75_PERF=1.STRATA_SELECT_SIMT=2 STRATA_PA_V2T=1 STRATA_PF_FUSED=1 STRATA_PF_FUSED_SM75=1 STRATA_BF16_TC=1, andSTRATA_EXP_MODE=8on IQ3_S.--spec 4 --spec-min-p 0.7 --mtp --adapt-every 0.Method:
Screen, IQ3_S (one run per switch, ms/window against the mean of two base runs):
ATTN_DAILY=1SIDE_MIXER=2B6_MMVQ_ROWS=1QSA_ROWS=1KV_PREFETCH=1Repeats (two interleaved rounds on IQ3_S, one round on Q2_0, ms/window):
SIDE_MIXER=2B6_MMVQ_ROWS=1SIDE_MIXER=2:B6_MMVQ_ROWS=1:--window-hashes: with the expert arena split between GPU and CPU, the same arm does not always reproduce. So I don't attribute it to the switch.ATTN_DAILY,QSA_ROWSandKV_PREFETCH: flat here. I'd guess that is becauseSELECT_SIMT=2,PA_V2Tand the fused prompt experts are already on in this config. On a default config (as in #3161 and EliahHofmann's T10 run) they have more to win.STRATA_CACHE_MESSAGE_BOUNDARYonly applies to a single GPU (!multi_gpuin generate.cpp), so I left it out; on a layer split it should be inert.For the default question: on this rig,
SM75_PERF+ mode 8 for i-quant packs is still where almost all the gain is, and Adamyno's 2- and 3-card runs show the mode-8 part grows with the card count.SIDE_MIXER=2is a small, consistent extra that I'd add to the sm_75 set. The others are neutral here, not harmful.Reproduction status: measured locally; every number here is from my runs on this box.
@yusheng227507 commented on GitHub (Oct 21, 2026):
sm_75 (2x RTX 2080 Ti): the series is not strictly text-neutral on IQ3_XXS, and
STRATA_EXP_MODE=8is +14 % decode and text-neutral hereTwo results for the two open questions in this thread, on a box that differs from the rigs already in it: the host link is PCIe 3.0 x8 (6.5 GB/s host->device), the CPU is an i7-10700K with AVX2 but no AVX-512, and the RAM is 94 GiB DDR4.
Setup. Strata
9de04cd44e927a9a3df6bbc0e94fc1be8b844ba4(v0.2.1.4, main), engine 0.1.46.3 compiled from source for sm_75 (CUDA 12.8), 2x RTX 2080 Ti 22 GB with NVLink NV2 (2 links, 25.78 GB/s each), driver 595.99.02, Ubuntu 24.04.5. Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS and IQ3_S (the SC117 abliterated one), 262144 context, kv int8,--kv-resident 32768,--spec 4 --spec-min-p 0.5,--layer-split 26, 3 slots, MTP on.1. Is the text the same with and without
STRATA_SM75_PERF=1?First, a caveat that will bite anyone repeating this on an i-quant pack: greedy decoding on this pack is not run-to-run deterministic, so a naive comparison tells you nothing. Two independent reasons, both from the docs:
--spec(packs/iq3_xxs is a native (IQ) pack: it needs --native SHARD1, --spec T (T >= 2) and --prefill CHUNK). There is no "no speculation" control to compare against.docs/DETAILS.md, "Reproducible greedy output"). Our CPU is exactly that case.docs/OLDER_GPUS.mdanddocs/BATCHING.mdgive the recipe for an exact comparison, so I used it:STRATA_IQ_MT_MIN=1+STRATA_PREFILL_CPU_SHARE=0+STRATA_ROUTE_TAIL_SKIP=0, plus--pcie-frac 0and--adapt-every 1000000. With that, every arm became perfectly stable (8 prompts x 3 repeats, all identical inside each arm).With the recipe in place, only
STRATA_SM75_PERFdiffers between the arms (arm A: no switches at all; arm B:STRATA_SM75_PERF=1; arm C: B plusSTRATA_BF16_TC=1+STRATA_PA_V2T=1). Eight prompts: fact, arithmetic, Python code, JSON, a three-line list, a long document with a question, a sum, a sort. Greedy,enable_thinking: false,seed 1.SM75_PERFon/off)BF16_TC+PA_V2T)P3_codeandP5_listdifferThe two that differ on IQ3_XXS are near-ties, and both alternatives are equally correct answers:
So on this box the series is not strictly bitwise-neutral for IQ3_XXS: it leaves most answers untouched but is enough to flip a prompt whose top-2 logits are nearly equal. On IQ3_S nothing moved in 8/8. If the goal is "turn it on by default", the honest wording is "the answers are equivalent, and on a near-tie the model may pick the other of two equally good answers", not "byte-identical".
2.
STRATA_EXP_MODEon the i-quant packsSame box, same engine,
STRATA_SM75_PERF=1in every arm, onlySTRATA_EXP_MODEdiffers.tools/strata_bench.py --url, 3 runs per test, medians:That is the same direction as the measurements already in this thread (mode 8 over mode 4), and it is text-neutral here: with the exact-comparison recipe, default vs mode 8 is 8/8 byte-identical on both models (and stable inside each arm).
So mode 8 for the i-quant packs looks right on a second rig, and it is free of a text change on this one.
3. Two more things about this box
STRATA_BATCH_GROUPS_NV_SERIAL=0- no difference, in either direction. The engine log confirms the new default is active here (--batch-groups auto: 1 group of 3 slots). On a card pair with a slow host link this may be the expected result, but it is one more card class where the pipelined default is not worse.Happy to run more of the per-kernel switches one at a time (the
STRATA_SM75_IL/SM75_EXP/GR_UP75/SCORES_HALVE/TOPK_SPLIT/ATTN_V3/QILlist) against the same recipe, or to re-run the two flipped prompts with more repetitions to see how close the near-ties are - say the word.@rafatxf commented on GitHub (Oct 21, 2026):
A correction to my last comment: I'm withdrawing the
STRATA_SIDE_MIXER=2recommendation. On this box it crashes the engine under long agent sessions, and I could reproduce it.Setup: 2x RTX 2080 Ti 22 GB, NVLink, layer split +
--pipeline-windows 2, v0.1.45 engine, IQ3_S, 320K context,STRATA_SM75_PERF=1 STRATA_EXP_MODE=8. The only difference between the arms below isSIDE_MIXER=2.Real use first:
SIDE_MIXER=2(agent sessions)Then a controlled reproduction.
SIDE_MIXER=2The errors:
verify: layer 24 never rang (an illegal memory access was encountered).layer 41 … (an illegal instruction was encountered)at 30K andlayer 46 … (an illegal memory access …)at 72K.Out Of Range Address); the 72K one also had an Xid 31 MMU fault.That is one run per arm, so not a rate. But with the 284 clean real-use requests, it points at the branches
SIDE_MIXER=2adds to the verify graph rather than at the card. My earlier screen used 512-token runs at 32K and below, which is why it never showed up there. It is off in my configs now. On a layer split with long contexts, I'd keep it off.@yusheng227507 thanks, the exact-comparison recipe is very useful.
Reproduction status: reproduced locally; every number here is from my runs on this box.
@yusheng227507 commented on GitHub (Oct 21, 2026):
Which kernel changes the rounding on IQ3_XXS: not one, a set - and no single switch restores the reference
Ran the per-kernel screen you asked for. The short answer: no single sub-switch is responsible, and turning any one of them off does not bring the reference answer back. On this box the flip needs more than one path to move.
Setup. Strata
9de04cd4(v0.2.1.4, main), engine 0.1.46.3 compiled from source for sm_75 (CUDA 12.8), 2x RTX 2080 Ti 22 GB, NVLink NV2, PCIe 3.0 x8 host link, i7-10700K (AVX2, no AVX-512), 94.1 GiB RAM. Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS, 262144 context, kv int8,--kv-resident 32768,--spec 4 --spec-min-p 0.5,--layer-split 26, 3 slots.Every arm carries the exact-comparison recipe from the last comment (
STRATA_IQ_MT_MIN=1+STRATA_PREFILL_CPU_SHARE=0+STRATA_ROUTE_TAIL_SKIP=0, plus--pcie-frac 0 --adapt-every 1000000), and every arm was stable inside itself (2 identical repeats per prompt, all 16 arms), so the recipe does make the run reproducible.Arms.
R_ref= recipe only.ALL= recipe +STRATA_SM75_PERF=1. Then 14 arms =ALLwith exactly one sub-switch off:STRATA_SM75_IL,STRATA_SM75_EXP,STRATA_GR_UP75,STRATA_GR_DOWN_TG,STRATA_SCORES_HALVE,STRATA_TOPK_SPLIT,STRATA_TOPK_SAMPLE,STRATA_ATTN_V3,STRATA_Q2_WARP,STRATA_FUSE_WAIT,STRATA_QIL,STRATA_TC_SM75,STRATA_PA_V1_PREFETCH,STRATA_SCORES_THREAD. Five prompts x 2 repeats, greedy,enable_thinking false,seed 1: the two that flip in the earlier comment (P3_code,P5_list) plus three controls (fact, JSON, sum).What came out
Three of the five prompts are bit-identical to the reference in all 16 arms - the fact, the JSON and the sum answers never move, with or without the series, with or without any single sub-switch. Only the two near-tie prompts move.
P3_code - two answers in the whole matrix:
cleaned = ''.join(c.lower() for c in s if c.isalpha())R_refonlyfiltered = [c.lower() for c in s if c.isalpha()]ALLand all 14 "one switch off" armsSo on this prompt no sub-switch brings the reference back: every one-switch-off arm still gives the
ALLanswer, unchanged.P5_list - three answers:
- 第1至5項為:0, 1, 1, 2, 3/- 符合Fibonacci定義的起始序列R_ref- 1, 1, 2, 3, 5/- 0, 1, 1, 2, 3ALL+ 9 arms (SM75_IL,SM75_EXP,GR_UP75,Q2_WARP,FUSE_WAIT,QIL,TC_SM75,PA_V1_PREFETCH,SCORES_THREADoff)- 第1至5項為:0, 1, 1, 2, 3/- 每項為前兩項之和GR_DOWN_TG,SCORES_HALVE,TOPK_SPLIT,TOPK_SAMPLE,ATTN_V3offHere five sub-switches do move the answer, and they move it to a third text - the same second line as the reference but a different third line. The other nine leave it exactly at the
ALLanswer. So these five are "one step closer to the reference", and none of them arrives.The two Q2_0-only switches (
SM75_EXP,Q2_WARP) changed nothing, as expected on an IQ pack.Reading
The series is not a single kernel, and on IQ3_XXS the answer moves if any of several paths rounds differently - which is what a near-tie does. The master switch also selects Turing-only paths that have no variable of their own:
sm75_default()is whatnative_mmvq.cu:2584,qsa_decode_attn.cu:449,fused_gr.cu:1207and:1232,qsa_select.cu:1689,:1704,:2256,:2489andverify.cpp:310follow, while onlySTRATA_SM75_IL,STRATA_SM75_EXPandSTRATA_TC_SM75have a variable of their own (sm75_switch()). The remaining named switches indocs/DETAILS.mdare read directly in their own files. So "switch X off" does not cover everything the master switch turns on, and a per-switch screen cannot return the reference on a near-tie: it takes more than one path to move.For the default question this suggests: for IQ3_XXS the series gives equivalent answers, not identical ones, and that is a property of the pack's near-ties rather than of one kernel. The same wording change you already made for IQ3_XXS (and which our earlier comment applied to Q2_0 and IQ3_S as well) would then hold for every pack: a near-tie can pick the other of two equally good answers.
Happy to run the same screen on IQ3_S and on Q2_0, or with more prompts, if that would help - the matrix is cheap (about 40 s of engine start per arm, 15 prompts would fit in a minute each).
@rafatxf commented on GitHub (Oct 21, 2026):
@yusheng227507 thanks, that settles the question for IQ3_XXS.
sm75_default()turns on without a variable of their own explain why no one-switch-off arm gets back to the reference.I'll change the wording in the issue body to match:
Yes, please run the same matrix on IQ3_S and Q2_0 with the 15 prompts. Those are the packs where my checks found no change (KL 0, the same drafts); one other box with your recipe would tell whether that holds beyond mine.
Reproduction status: no new measurements in this comment; it refers to the runs above.
@Adamyno commented on GitHub (Oct 22, 2026):
Third box (2 of 3× RTX 2080 Ti 22 GB): on IQ3_S the series is byte-identical to the reference — the differences come only from the switches outside the series
Setup: 2× RTX 2080 Ti 22 GB (sm_75, 210/167 W), i9-7980XE (AVX-512 without VNNI/VBMI → the engine's AVX-2 CPU expert file), 125.5 GiB DDR4-3600, Linux, CUDA 13.0, driver 580.178.04. Engine 0.1.45.3 (
e88ee39d, the 0.2.0-beta-era main), source build,-DCMAKE_CUDA_ARCHITECTURES=75, nothing patched (strata --version: 0.1.45.3). Qwen3.8-Flash-Next GSQ-RCO IQ3_S native pack,--spec 4 --spec-min-p 0.5 --mtp mtp/rt, 262,144 ctx,--kv int8 --kv-resident 32768,--layer-split 15(2 cards),--pcie-frac 0 --adapt-every 1000000.Recipe (both arms):
STRATA_IQ_MT_MIN=1 STRATA_PREFILL_CPU_SHARE=0 STRATA_ROUTE_TAIL_SKIP=0 STRATA_NO_LARGEPAGES=1.Arms (same binary, env only, fresh server per arm, 2 repeats per prompt, greedy
temperature 0 / top_k 1 / seed 1 / enable_thinking false):STRATA_SM75_PERF=1STRATA_BF16_TC=1 STRATA_PA_V2T=1(yusheng227507's arm C)STRATA_EXP_MODE=8Result, 15 prompts × 2 repeats × 4 arms (120 requests, 0 errors):
content: null+finish_reason: lengthat max_tokens 512 on every arm (the reasoning channel takes the whole budget); at max_tokens 2048 every arm finishes (finish=stop) and the answers are byte-identical across all four arms (below)sm75_series.hpplistsSTRATA_BF16_TCandSTRATA_PA_V2Tas separate numerics-changing opt-ins).So on a third box with a different CPU class, your IQ3_S result holds: the series (+ mode 8) does not move a single answer beyond the near-tie wording changes that only the explicitly opted-in numerics switches produce.
P05 rerun at max_tokens 2048 (same arms, same recipe, 2 repeats each, 8/8 requests):
0, 1/1, 2/3— byte-identical in every rowThe model resolves the prompt's own contradiction (five numbers in three lines) by pairing two numbers per line — and even the reasoning channel is byte-identical across all four arms.
Q2_0 on the same box
Same 4 arms + D = recipe +
STRATA_PF_FUSED=1 STRATA_PF_FUSED_SM75=1— the sm_75 fused prefill path, the only format pair the current gate allows on a 7.5 card (Q2_0/Q2_0 layers only).Short-prompt matrix (15 prompts × 2 repeats × 5 arms, 0 errors): identical=11, differs=3, null=1, unstable=0.
STRATA_BF16_TC+STRATA_PA_V2T) differs on 3: P03_code (a docstring variant), P13_reason ("6000 liters" vs "Final number: 6,000 liters"), and P10_translate where C finishes inside the 512 budget while the other arms overflow — its prefill numerics shorten the thinking, so the divergence is the same near-tie class, not a correctness break.0/1/1(the Q2_0 model's own reading of the list), reasoning_len 6069 — byte-identical in all 10 requests across all 5 arms.The fused prefill on a long prompt (22,691 tokens, cold, one round per arm — a direction check):
fa8ca4baafe41fa3(74 chars)fa8ca4baafe41fa3So on the one Turing pair the current gate allows, the fused path is faster and its visible output is byte-identical here; the reasoning trace moves at a near-tie, consistent with the fused kernels' own KL-vs-MMQ rounding (0.0004–0.0016, upstream's measurement). One round per arm — a direction, not a rate.
Reproduction status: measured locally; every number is from these runs.
@rafatxf commented on GitHub (Oct 22, 2026):
@Adamyno thanks, this closes the IQ3_S and Q2_0 side with a third CPU class.
With your runs, the evidence on the series (+ mode 8 on the i-quant packs) now reads:
The near-tie changes in your arm C come from
STRATA_BF16_TCandSTRATA_PA_V2T, the separate numerics opt-ins, not from the series. That matches how they are listed insm75_series.hpp, and it is what the proposal's "equivalent answers" wording is meant to cover. I'll add these lines to the evidence in the issue body.Reproduction status: no new measurements in this comment; it summarizes the runs in this thread.
@Adamyno commented on GitHub (Oct 22, 2026):
Small correction on the two @Adamyno lines before they land in the issue body — the runs were wider than the compressed "N/N measurable" counts suggest:
IQ3_S, our box: 15 prompts measured. 12 of 15 are byte-identical across all four arms (A/B/C/M8); the other 3 differ only in arm C (the two switches outside the series). The series itself — B vs A and M8 vs B — is byte-identical on every measurable prompt, so series-vs-reference is 15/15. One of the 15 overflows thinking at 512; re-run at 2048 it is byte-identical across all four arms too.
Paste-ready:
@Adamyno's (15 prompts; series-vs-reference byte-identical 15/15; 12 of 15 identical across all four arms, the other 3 arm-C-only)Q2_0, our box: 15 prompts × 5 arms (A/B/C/M8 + the fused D). 11 of 15 identical across all five arms; 3 differ only in arm C (P03_code, P13_reason, P10_translate — C's prefill numerics shorten thinking, so it fits the 512 budget while the other arms overflow); P05 is content-null at 512 and byte-identical across all 10 requests at 2048. A = B = M8 = D on every measurable prompt.
Paste-ready:
@Adamyno's (15 prompts × 5 arms; series + fused prefill identical on every measurable prompt; 11 of 15 identical across all arms, 3 arm-C-only, 1 null at 512 → byte-identical at 2048)The verdict doesn't change — the series does not move a single answer; only near-tie wording inside the thinking channel moves, and only under the opted-in numerics switches.
@yusheng227507 commented on GitHub (Oct 22, 2026):
The evidence in one place, and the one gap I can close
@Adamyno's third box and @rafatxf's summary are what I was missing to see the whole picture. Here is the consolidated table from my side, in the same terms, so the three boxes can be compared directly. One item is still open on my side, at the end.
My box: 2x RTX 2080 Ti 22 GB (sm_75), NVLink NV2, PCIe 3.0 x8 host link (6.5 GB/s), i7-10700K (AVX2, no AVX-512), 94.1 GiB RAM, driver 595.99.02, Ubuntu 24.04.5, Strata
9de04cd4(v0.2.1.4), engine 0.1.46.3 compiled from source for sm_75 (CUDA 12.8), 262144 context, kv int8,--kv-resident 32768,--spec 4 --spec-min-p 0.5,--layer-split 26, 3 slots. Recipe in every arm:STRATA_IQ_MT_MIN=1+STRATA_PREFILL_CPU_SHARE=0+STRATA_ROUTE_TAIL_SKIP=0+--pcie-frac 0+--adapt-every 1000000.SM75_PERFon/off)+BF16_TC+PA_V2T)So on this box the series itself moves nothing on IQ3_S, and on IQ3_XXS it moves two near-ties; the numerics opt-ins (arm C) are what change answers. That is the same split @Adamyno found on IQ3_S.
The two IQ3_XXS prompts that moved, for the record, with the exact texts - both are the other of two equally good answers:
I also ran the per-kernel screen (16 arms: reference, all on, and the 14 named sub-switches off one at a time) on IQ3_XXS. No single sub-switch brings the reference answer back on either prompt; five of them (
GR_DOWN_TG,SCORES_HALVE,TOPK_SPLIT,TOPK_SAMPLE,ATTN_V3) each moveP5_listto a third text of their own, and the other nine leave it at the all-on answer. The reason a one-switch screen cannot return the reference is in the code:sm75_default()is whatnative_mmvq.cu:2584,qsa_decode_attn.cu:449,fused_gr.cu:1207and:1232,qsa_select.cu:1689,:1704,:2256,:2489andverify.cpp:310follow, while onlySTRATA_SM75_IL,STRATA_SM75_EXPandSTRATA_TC_SM75have a variable of their own. So a near-tie moves if any of several paths rounds differently.On the speed side,
STRATA_EXP_MODE=8measured +14 % chat decode / +16 % agent decode on IQ3_XXS and +8.7 % / +13.0 % on IQ3_S against the default layout here, with the prompt path unchanged - and byte-identical text on both packs, so it is not a numerics change on this box.The gap
Every A-vs-B comparison above is on engine 0.1.46.3, because that is what I had built when I ran it. The engine people will actually run is now 0.1.47 (0.2.2). The four standard-protocol runs in PR #3535 are on 0.1.47 and put IQ3_XXS at 21/21 requests and 12/12 sanity (tool calls 4/4), but they do not carry the exact-comparison recipe, so they do not answer the text question.
So the open item on my side is narrow: does IQ3_XXS still move those two near-ties on 0.1.47, or is that a 0.1.46.3 artifact? I can re-run the same A/B/C/M8 matrix with the same recipe on 0.1.47 and report it here - say the word, or I will run it and post the numbers.
For the record, what the thread now reads, as far as I can see it:
@rafatxf commented on GitHub (Oct 22, 2026):
@Adamyno thanks for the correction. Your two paste-ready lines replace mine in the issue body: series-vs-reference 15/15 on IQ3_S, and series + fused prefill identical on every measurable Q2_0 prompt.
@yusheng227507 yes, please run the A/B/C/M8 matrix with the recipe on 0.1.47. That is the engine the default would ship in, and IQ3_XXS is the only pack where the series moved anything. If the two near-ties are still there, the body keeps "equivalent" for IQ3_XXS; if they are gone, it can say so. Your consolidated table matches the body, with Adamyno's counts updated as above.
Reproduction status: no new measurements in this comment.
@yusheng227507 commented on GitHub (Oct 22, 2026):
The gap from my previous comment is closed: on engine 0.1.47, nothing moves.
Re-ran the A/B/C/M8 matrix on 0.1.47 (source build, sm_75, same box), same recipe (
STRATA_IQ_MT_MIN=1+STRATA_PREFILL_CPU_SHARE=0+STRATA_ROUTE_TAIL_SKIP=0,--pcie-frac 0 --adapt-every 1000000), fresh server per arm, greedy (temperature 0 / top_k 1 / seed 1),enable_thinking false,max_tokens 2048. 12 prompts × 2 repeats × 4 arms × 2 packs = 192 requests, 0 errors.Byte-identical at every position:
SM75_PERF)BF16_TC+PA_V2T)EXP_MODE=8)Every repeat pair is byte-identical too — 96/96 within-arm comparisons, nothing unstable.
The prompt set covers the two classes that moved on 0.1.46.3 (a palindrome-code and a three-line Fibonacci list), plus translation, word-counting and a second long-doc needle the old set did not have. On the two old flip points, all four arms now resolve to the same one of the two texts they used to flip between (P3 gives the
filteredbuild everywhere; the list gives the per-line numbers everywhere) — so the near-ties did not vanish: with this engine, arms A and B no longer disagree about which candidate to pick, and no other prompt moved.Two caveats: the wordings are close to, but not token-identical with, the 0.1.46.3 run (its raw data was overwritten, so no byte-level cross-engine comparison on the originals is possible), and this is one box, one engine, 12 prompts. It does mean that on the engine people will actually run, the series is text-neutral on a widened set, in line with the equivalent answers wording above.
For completeness, the per-pack speed numbers already in PRs #3535 / #3627 carry over unchanged — none of these settings changed.
@rafatxf commented on GitHub (Oct 22, 2026):
@yusheng227507 thanks, that closes the last open line. On 0.1.47, the engine a default would ship in, IQ3_XXS is now 12/12 byte-identical across A/B/C/M8, like IQ3_S.
I'll update the IQ3_XXS line in the issue body:
That leaves "equivalent answers" as the general claim, with no measured difference from the series on any pack on the current engine.
Reproduction status: no new measurements in this comment.
@yusheng227507 commented on GitHub (Oct 23, 2026):
One more sm_75 datapoint, off the main series: DFlash2 vs MTP on this box (engine 0.1.48 self-built sm_75, IQ3_XXS,
--spec 4 --mtp rt, 2× RTX 2080 Ti, layer split 26/22).Same standard suite on both arms (3 runs each, 33/33 ok), the only difference being the drafter. DFlash2 packed from the pinned revision
a22a1744(760 MB Q8 pack), no fallback lines, the ~1.2 GB drafter fits VRAM fine, and the offer/accept pattern confirms the drafter really was different (offered/req median 98 → 95; offered total 860 → 845):Net: a wash on Turing — chat slightly faster, agent slightly slower, everything else flat, acceptance about equal. Keeping MTP. If you want a row for the suggestion table in
strata_control/drafting.py(currentlyother: not measured), a paste-ready line:@yusheng227507 commented on GitHub (Oct 23, 2026):
Follow-up on the DFlash2 row: the pack size matters, and it moves the wrong way.
Ran the same both-arm suite on the (abliterated) IQ3_S pack — same engine 0.1.48 (self-built sm_75), same box, 33/33 ok each arm:
So on IQ3_S DFlash2 is visibly worse, outside the noise band (consistent across all 3 runs), with a clean mechanism: the drafter proposes deeper windows (offered 97 → 106) that verify rejects more (acceptance -5.8 pp). Unconfirmed hypothesis: the drafter was trained on the base model and mismatches the abliterated IQ3_S distribution; the (non-abliterated) IQ3_XXS pack still matches well enough to tie.
Updated paste-ready line for the suggestion table in
strata_control/drafting.py:@rafatxf commented on GitHub (Oct 23, 2026):
@yusheng227507 before the DFlash2 row goes into the table, a check on what actually ran: in 0.2.3 a served model can't use DFlash2 yet, so I think both of your arms ran MTP.
Why I think so:
strata_control/drafting.pyhasENGINE_SERVES_DFLASH2 = False, and its comment explains why. With"drafting": "dflash2",decide()returns MTP with the note "DFlash2 isn't available in this mode".apply()then only strips--draft/--draft-model, so the engine arguments are the same as the MTP arm. The server prints[strata] drafting: Drafting: MTP (DFlash2 isn't available in this mode)at start, and/metricscarries it asdrafting_note. The engine itself prints no fallback line, because it is never asked.--serve,--batchor a layer split,--draft dflash2logs--draft dflash2 is off: it is for one card and the CLI run (not --serve, --batch or a layer split) in this build; the MTP drafts instead(generate.cpp, around line 5478 at v0.2.3).draftingline in the server log would settle it.Where DFlash2 does run: one card, CLI spec loop.
incoai/Qwen3.8-Flash-Next-DFlash2packed withtools/dflash2_pack.py(760 MB).--resident-budget-gib 29.--spec 4 --spec-min-p 0.7against DFlash2 in three settings.DFlash2 drafter on, the drafting cost was about 2.8-3.1 ms per round, and the window-size distribution changed.DFlash2 accepts more per round, most clearly on code (+45-67 %), but the speed comes out even: −9 % on chat, about flat on code, +7 % on the 4K prompt, flat at 16K. The wider windows it proposes cost the CPU more experts per round. On this 4-core box with a 4-bit pack, the CPU expert pool is what limits decode, so the extra accepted tokens are paid back in verify cost.
So on Turing today it reads as a wash where it can run (one card), and untested where most of us run (served, layer split) until the engine supports it there. A box with more cores, or a pack whose experts mostly fit in VRAM, might come out differently.
Reproduction status: measured locally; every number here is from my runs on this box.
@rafatxf commented on GitHub (Oct 24, 2026):
Thanks @atmJava. A 14-core Xeon is a new CPU class for this thread, and both results fit the proposal. I'll fold them into the body:
STRATA_SM75_PERF: your box joins the byte-identical list (IQ3_XXS on 0.1.47, gate config, the same answer for=0and=1).--specon a native pack: good catch. The gate measures a spec window, not plain decode. I'll say so next to the gate recipe.On the one first-request divergence: I don't have a confirmed cause. As I read
docs/BATCHING.md, the recipe pins what can change within a run: the CPU kernels' grouping, the PCIe share per window, the adaptive tier, and prompt borrowing. It doesn't pin everything that can differ between two cold starts. One candidate I can point to in the code is the prompt chunk. With--prefill auto, the chunk is sized at start from the VRAM room the expert cache leaves (generate.cpp logsprompt chunk auto: N tokens). If your 7.6K-token prompt is longer than the chunk on some start, it is read in a different split, and its KV rounds differently from the first token on.Two cheap checks would tell:
prompt chunk autoand expert-cache slot lines with a normal start's.--prefill N(N larger than the prompt) and repeat the restarts.If neither moves it, a cold-start line in the body ("the first request after a start can differ") is the honest fallback.
Reproduction status: no new measurement in this comment; the code references are from v0.2.3.
@yusheng227507 commented on GitHub (Oct 24, 2026):
rafatxf is right — the two DFlash2 comments above are invalid; please disregard their data.
Verified on my side: engine 0.1.48
src/program/generate.cppgates DFlash2 toit is for one card and the CLI run (not --serve, --batch or a layer split) in this build, and both my arms were--serveruns on a 2-GPU layer split — so the engine took the MTP fallback in both. The serve logs confirm it byte-exactly: the arms' expert-cache footprints are identical to the plain MTP runs (IQ3_XXS 9701 experts / 14.10 GiB of VRAM; IQ3_S 7534 / 13.66 GiB — a loaded DFlash2 pack would have shrunk both), and no drafter line appears in the log. The offered/accept deltas I leaned on (offered/req 98 → 95, 97 → 106) are run-to-run expert-placement variance on an IQ pack, not drafter evidence.So the comparison tables in those comments (84.7 vs 83.2, 73.1 vs 75.2, and the acceptance lines) are MTP-vs-MTP replicates on my box and must not go into the suggestion table. Sorry for the wrong first read — the "really using the drafter" check I did was indirect and I should have looked at the engine's own gate in the source first.
I will rerun DFlash2 the way the engine actually allows it — CLI, one card, no split (the 22 GB card holds the XXS native pack) — and only post a number if that run gives a clean reading.
@yusheng227507 commented on GitHub (Oct 24, 2026):
The clean DFlash2 reading for the suggestion table (CLI, single card, as the engine allowlists):
Engine 0.1.48 self-built sm_75, RTX 2080 Ti 22 GB, one card, no split, IQ3_XXS native pack, greedy (
--temperature 0 --top-k 1), 160 max-new, one run per anchor (the same four upstream prompts), expert cache auto with the shipped env (STRATA_SM75_PERF=1,STRATA_BF16_TC=1,STRATA_PA_V2T=1,STRATA_EXP_MODE=8). The engine confirms the drafter this time:strata generate: DFlash2 drafter on (...pack...), the MTP layer stays as the fallback(992 MiB of draft VRAM, 3.55 ms/round drafting).Tokens per round are about tied (1.86–2.81 across anchors, both arms) — the loss is the drafting cost itself plus the costlier verify on Turing, the same mechanism that loses at wider
--specon this card (what the guard's own "4% to 16% slower" band says). So this joins the ampere row more than the blackwell one: DFlash2 slower on every prompt class here too. Paste-ready for the suggestion table instrata_control/drafting.py:@tonykee commented on GitHub (Oct 31, 2026):
Another RTX 20-series user here (2x 2080 Ti 22 GB, Ryzen 7 3700X, 93 GB), running a Strata-derived engine. Two things from that side:
Yes to making the series the default on 7.5. Your own note on the series has it at +6% (engine v0.1.45) and +4.9% (
STRATA_SM75_PERF=1) decode, +6.9% prefill at 100K, measured on a 2080 Ti - and the kernels are declared bitwise. A switch that has to be found in a header comment is a switch most RTX 20 users never turn on.The fork has drifted from this work. Project Maya (MIT, starts from Strata's engine, credits it) still reports
engine 0.1.27in its serve log and has nosm75_series.hpp; its Turing paths are its own (register prompt-attention kernel, EXL3 wmma for sm_7x, FP32 MLA decode). So the sm_75 work you merged is not reaching that fork, and the fork's own Turing paths are not reaching you - some of it may be worth taking both ways.Turing is not a dead end for the big models either: DeepSeek V4.1-Flash runs at 30-34 tok/s decode on 2x2080Ti in that fork (details and config in #4176). The block there is packs and kernel selection, not compute capability.
If a build/test on this box helps (it is spare, Linux, CUDA 12.8, and I have both checkouts), say the word.
@rafatxf commented on GitHub (Oct 31, 2026):
Thanks @tonykee, a fourth independent sm_75 voice for the default helps, and the Maya pointer is useful.
Since you mention DeepSeek: a data point from the Strata side, same cards, without the Turing tuning you describe. The setup is 2× 2080 Ti 22 GB on NVLink with an i7-6700 (4 cores, AVX2) and only 56 GB of RAM.
strata-dsv41is built from source for sm_75, and the pack is ISTA IQ1_M.--experts 5.--tp 2falls back to a layer split (n_ff 2304 splits no other way), the same block you worked around with the uneven split.--mmap-experts offloses here (−4 to −27 % decode against the store's default): with that little RAM, a static copy of the hottest experts cannot follow the conversation the way the store does. Your 93 GB box is the case where the full copy fits, which matches your +25 %.The uneven TP split and per-member shares look like the piece most worth porting to Strata's DeepSeek engine for two-card Turing boxes. I'm moving this machine to 128 GB of RAM soon and will re-measure the copy-all path then.
Reproduction status: measured locally; every number here is from my runs on this box.
@Adamyno commented on GitHub (Oct 31, 2026):
Engine 0.1.54 on 3× RTX 2080 Ti, IQ3_S: the series alone is +7.3% decode, and +21.3% with expert mode 8 (12/12 pairs positive)
A third box on a newer engine than the one in the body (0.1.47): this is 0.1.54, i.e. the engine 0.2.8 ships. Same conclusion, larger separation, and every pair moves the same way.
Hardware: 3× RTX 2080 Ti 22 GB (sm_75, power limits 210 / 167 / 200 W), i9-7980XE (18c/36t, AVX-512 without VNNI/VBMI), 125 GiB DDR4-3600, Linux 7.0.0-38, CUDA 13.0, driver 580.178.04.
Build/config: engine 0.1.54 (
a0116b27), source,-DCMAKE_CUDA_ARCHITECTURES=75;cuobjdump --list-elfshowssm_75cubins only. Qwen3.8-Flash-Next GSQ-RCO IQ3_S native pack,--layer-split auto→ K=16,32 (3 cards; the engine picked it: 1035 placements, ~100.0% of the routed mass, 24576 of 24576 profiled pairs),--max-context 262144 --kv int8 --kv-resident 32768 --spec 3 --spec-min-p 0.54 --mtp mtp/rt --mtp-max-t 3 --vram-reserve-mib 768 --trim-stage-weights,STRATA_NO_LARGEPAGES=1in every arm.Method: the repo's
tools/ab_engine.py, one binary, environment only, fresh server per arm, 3 rounds with alternating order (ABC / CBA / ABC), greedy (temperature 0,top_k 1,presence_penalty 0), 256 new tokens. Deltas are medians of the paired per-round deltas, not ratios of the displayed medians. All 12 pairs per comparison have matching completion-token counts, so no drafting difference was excluded.STRATA_SM75_PERF=1STRATA_EXP_MODE=8Paired deltas:
Per request, C vs A: chat0 +23.8%, chat1 +23.3%, chat2 +19.4%, long +17.5%. Prefill is +4.3% in the same direction (882.9 → 921.2 tok/s), i.e. it does not pay for the decode gain.
How this reads against the thread: these are larger than the +6.4% / +13.1% (2 cards / 3 cards) I measured on v0.2.0-beta. Two differences: 0.1.54 instead of the 0.2.0-beta-era engine, and the layer split is the engine's own auto pick (K=16,32) rather than a hand-set 16,32 on the same cards. I have not isolated which of the two carries the increase, so treat the +21% as the number for this configuration on this engine, not as a re-measurement of the beta.
On the default question, this is the decode-only half and it points the same way the byte-identical evidence already did: on this pack and engine the series costs nothing in answers and pays 7% on its own, and mode 8 adds another 12% on the i-quant packs — which is what the proposal asks for. A quality run through the same engine (aider polyglot, 225 cases) is the piece I have not done yet; if it is useful for the decision I can run the three arms through it and report pass@1 / pass@2.
Reproduction status: measured locally on the third box.
@rafatxf commented on GitHub (Oct 31, 2026):
Thanks @Adamyno. This is the cleanest measurement in the thread so far: paired deltas, alternating order, matched completion-token counts, and 12/12 pairs on every comparison, on the engine that 0.2.8 ships. I'll add it to the body as the headline number for current engines: the series alone +7.3 %, mode 8 on top +12.3 %, +21.3 % together, 3× 2080 Ti, IQ3_S.
On the quality run: yes, please, if you have the time. The byte-identical checks cover the series kernels, but a task-level pass@1 / pass@2 across the three arms would be the first quality evidence for mode 8 and the near-tie switches together. As far as I can see, that is the one piece still missing for a maintainer decision.
@rafatxf commented on GitHub (Nov 1, 2026):
A prompt-path data point for sm_75, outside the bitwise series:
STRATA_BF16_TC=1+STRATA_PA_V2T=1.Measured on 2x RTX 2080 Ti 22 GB (PCIe 3.0 x8 each), UD-IQ4_XS, Strata 0.2.7 (engine 0.1.52), production arguments (384K context, int8 K/V), 2 alternating rounds:
STRATA_PREFILL_TIMING=1shows where it comes from. On cc 7.5bf16_path()defaults to cuBLAS's BF16 GEMM, which has no tensor-core path on Turing. The hyper-connection read (hc read, the BF16 down / up / inject projections) took 770 ms of a 7.7K-token stage-chunk; withBF16_TC=1(through the FP16 tensor cores) it takes 243 ms. Decode does not change: it does not use these GEMMs.These two do not keep the bits. They round differently and move near-ties, as Adamyno's arm C showed earlier in this thread, so they are not for the series. Still,
BF16_TC=1might deserve to be the default on cc 7.5 under the same "answers equivalent" rule. I have been running both in production since today.Reproduction status: measured locally; every number is from my runs.
@Adamyno commented on GitHub (Nov 1, 2026):
Confirmed on a third sm_75 rig, and larger here: 4K −19%, 16K −21%, 64K −16% on 3× 2080 Ti
Independent check of the
STRATA_BF16_TC=1+STRATA_PA_V2T=1prompt-path number, on a three-card layer split rather than a pair. Same direction as your 2× 2080 Ti result, roughly twice the size, and stable across alternating rounds.Hardware: 3× RTX 2080 Ti 22 GB (sm_75, power limits 210 / 167 / 200 W), i9-7980XE, 125 GiB DDR4-3600, Linux 7.0.0-38, CUDA 13.0, driver 580.178.04.
Build/config: engine 0.1.54 (
a0116b27), source,-DCMAKE_CUDA_ARCHITECTURES=75(cuobjdump: sm_75 only). Qwen3.8-Flash-Next GSQ-RCO IQ3_S,--layer-split auto→ K=16,32 (3 cards),--max-context 262144 --kv int8 --kv-resident 32768 --spec 3 --spec-min-p 0.54 --mtp mtp/rt --mtp-max-t 3 --vram-reserve-mib 768 --trim-stage-weights,STRATA_NO_LARGEPAGES=1in both arms,STRATA_SM75_PERF=0andSTRATA_EXP_MODE=4(the series switches held constant, since this is a prompt-path question, not a series one).Method: one fresh server per arm, 2 rounds with alternating order (A/B then B/A), a unique nonce on every prompt (the engine caches prompt prefixes, so a repeated long prompt reports a nonsense rate), 8 new tokens, wall clock for the prefill. Prompt sizes are the tokenizer's own count (
timings.prompt_n: 3 253–3 259, 12 704–12 706, 50 503–50 508).BF16_TC=1+PA_V2T=1Throughput at 64K: 1 341 / 1 347 → 1 599 / 1 603 tok/s, i.e. +19%; at 16K 1 135 → 1 446 (+27%). Decode was not measured here (these GEMMs are prompt-path only, as you say).
Where the extra size may come from: a three-way layer split puts the hyper-connection reads of 48 layers across three stages, so the 770 → 243 ms per-stage saving you measured on a pair is paid per stage here — which fits the gain being largest at 16K (the chunk size that fills a stage) and smallest at 64K (where more of the wall clock is stage-to-stage transfer). I have not isolated that; it is one engine, one pack, one box.
On the default question: these two keep changing near-ties, as arm C of the quality run in this thread shows, so they do not belong in the bitwise series. But on cc 7.5 the alternative is a cuBLAS BF16 GEMM with no tensor-core path at all — the −16 to −21% is not a rounding difference, it is the fallback being slow. If a maintainer wants one rule for "answers equivalent", these two look like the same case the series makes: worth a default, with the near-tie caveat stated in the same breath. I have run both in production since this measurement.
Reproduction status: measured locally on the third box.
@rafatxf commented on GitHub (Nov 1, 2026):
Thanks, that's a clean confirmation: alternating rounds, nonces, and the tokenizer's counts.
On the size, I'd read it a little differently. The model has 48 layers however they are split, so the BF16 hc work per token is the same on two cards or three; a three-stage split does not multiply it. What differs is everything else: your prompt path is two to four times faster than mine (IQ3_S, 18 cores, more RAM), so the same fixed BF16 cost is a larger share of your wall clock. A
STRATA_PREFILL_TIMING=1run on your box would settle it. If the hc read is near 770 ms per 7.7K tokens of stage-chunk there too, the share explains the gap.Either way, the two rigs agree on what matters. On cc 7.5 the default is a BF16 GEMM with no tensor-core path, and routing it through FP16 tensor cores is a large, repeatable win. If a maintainer wants it, I can open a small PR that makes
BF16_TCthe default on cc 7.5 only.PA_V2Twould stay opt-in, since it is the smaller part of the gain, and the near-tie caveat would be written into the switch's documentation.@Adamyno commented on GitHub (Nov 1, 2026):
STRATA_PREFILL_TIMING=1on the trio: the hc read is 337 ms of a 1,526 ms chunk here — you are right about the share, my per-stage guess was wrongRan it, same two arms, same box as the confirmation above. The breakdown says the mechanism is what you said, not what I guessed: the hc work per token is the same on two cards or three, and on this box it is simply a bigger slice of a faster timeline.
Chunk the engine picked: 4,509 tokens (
--prefill auto). Both arms ran the same two prompts after one shared warm-up; the numbers below are the engine's ownstrata prefill timingline for the first chunk.BF16_TC+PA_V2TRead it as two separate switches:
BF16_TCis the hc read (337 → 96 ms) andPA_V2Tis the attention block (qsa attn 171 → 75 ms; qsa proj 67 → 61). Everything else — the MoE GEMMs, dequant, GDN, the writes — does not move, which is exactly the shape you predicted: if the default BF16 GEMM has no tensor-core path, only the phases that go through it can change.On the share: 337 ms / 1,526 ms = 22.1% here. Your 770 ms per 7.7K-token stage-chunk is ~0.100 ms/token; ours is 337/4,509 = 0.075 ms/token — the same order, i.e. the absolute hc cost is not rig-specific, which is the part your reading needs. The gap in the gain then comes from the denominator: our chunk is 1,526 ms of GPU timeline against your longer per-chunk wall time, so removing 241 ms of hc shows up as −24% of the timeline here and −5…−10% of your end-to-end.
Two things I would put in the PR's wording, since the numbers now support them:
BF16_TCalone is the hc read and is the large half;PA_V2Tis attention. Reporting them as one number hides which switch a future regression came from.sm75_series.hppalready does for the series.Reproduction status: measured locally on the third box; logs kept (
/tmp/pft_default_engine.log,/tmp/pft_bf16tc_engine.log).@Adamyno commented on GitHub (Nov 1, 2026):
Task-level pass@1 / pass@2 on IQ3_S: 50 identical cases, 43 vs 43 on pass@2 (+0.8% tokens). Plus: the harness shuffles unseeded, so
--num-testsgives each run a different subsetHere is what I could get on the quality question tonight, with two honest caveats about the harness and the sample size. The short version: no measurable difference between the series+mode-8 arm and the default arm, on the cases both arms actually ran.
Setup. Engine 0.1.54 (
a0116b27), source, sm_75. Qwen3.8-Flash-Next GSQ-RCO IQ3_S,--layer-split auto→ K=16,32 on 3× 2080 Ti,--max-context 262144 --kv int8 --kv-resident 32768 --spec 3 --spec-min-p 0.54 --mtp mtp/rt --mtp-max-t 3 --adapt-every 1000000(static cache so the arms cannot drift placement), sampling temp 0.7 withseed: 1in the config. aider polyglot,--edit-format whole,--threads 1.STRATA_SM75_PERF=0,STRATA_EXP_MODE=4(today's default)STRATA_SM75_PERF=1,STRATA_EXP_MODE=8(the proposal)The harness bug that cost me the first attempt, and that anyone A/B-ing this benchmark should know:
benchmark.pycallsrandom.shuffle(test_dnames)with no seed, before slicing[:num_tests]. Two runs of the same command therefore see two different random subsets: my first pair shared 11 of 100 cases. I fixed it locally (envBENCH_CASE_LISTpins the exact list,BENCH_SEEDseeds the shuffle) and re-ran the second arm against the first arm's list. Everything below is on the intersection, so it is apples to apples:What this is and is not. With n=50 the 95% interval on a ~86% pass rate is ±8pp, so this rules out a regression bigger than roughly eight points and nothing finer. It is also not the three-arm matrix you asked for: I ran A and C only, not B (
PERF=1, mode 4), so the series and mode 8 are not separated here. And the honest reason the sample is small: a 100-case aider run of IQ3_S at 78 tok/s takes ~14 h wall (two of today's cases burned 162k and 150k tokens each), so the full 3×225 matrix is a multi-day job on one rig.What would settle it properly, in the order I would spend the hours:
temperature 0the arms should produce identical text — 30–50 cases would then be a sharp equality test instead of a noisy rate comparison. This is the cheapest route to a real answer and I would do it before any more sampling.content(the reasoning never reached the answer), which makes the absolute score meaningless. That needs the thinking block handled first — a harness-side fix, not an engine one.If a maintainer wants option 1, say so and I will run A/B/C at
temperature 0on the same pinned list — that is a few hours, not days, and it answers the question you actually need answered (does mode 8 change answers on real tasks).Reproduction status: measured locally; harness patch and result JSONs available.
@rafatxf commented on GitHub (Nov 1, 2026):
Thanks for the breakdown. It settles the mechanism, and it corrects me on one point: on your box
PA_V2Tis not the small half (qsa attn 171 → 75 ms against hc read 337 → 96 ms). SoPA_V2Tshould not be left out of the default for being small; any decision on it should rest on its numerics alone.Agreed on both wording points. If the PR happens, I'd measure each switch alone on both rigs, and state the near-tie caveat per switch, the way
sm75_series.hppdoes for the series.@ozabramov commented on GitHub (Nov 7, 2026):
Tesla T4 (sm_75, 70 W), Q2_0:
STRATA_SM75_PERF=1decode +20 to +27 %, byte-identical, each switch dropped in turnA data point from a Tesla T4, the passively cooled 70 W Turing datacenter card. As far as I can find, the thread has no T4 run
yet. The raw runs are in my fork:
bench/results/2026-11-06-tesla-t4-sm75-table.
Hardware: 1x Tesla T4 16 GB (sm_75, 70 W cap, VBIOS 90.04.96.00.01), PCIe Gen3 x16, passed through (VFIO) to a Debian 13.7 VM on
Proxmox VE 9.2. Host HPE DL380 Gen10, 2x Xeon Platinum 8276L (Cascade Lake: AVX-512 F/BW/VL/DQ/VNNI, no VBMI), 192 GB DDR4-2933.
The VM has 2x26 cores, each vCPU pinned 1:1 to a physical core of its socket, virtual NUMA, and 160 GB. Driver 620.70.06 (open modules),
CUDA 13.1.2, GCC 14.2.
Build:
mainat9f7d977d(0.2.11, engine 0.1.57),./setup.sh --buildfor sm_75. Same binary in every arm; only theenvironment differs.
Model and config: Qwen3.8-Flash-Next GSQ-RCO Q2_0 native pack, setup's own config unchanged (
--spec 4 --spec-min-p 0.5 --mtp --expert-cache auto(6,489 experts on the card),--kv int8 --kv-resident 32768 --ple-io ram --max-context 131072).Method:
tools/ab_engine.py, a fresh server per arm per round, arm order reversed every round, one warm-up, then three shortchats (256 new tokens at most) and one 6,345-token prompt, all greedy. I added a full-answer SHA-256 per request to the log, so
identity is checked on the whole text, every request and round.
=0vs=1STRATA_IQ_MT_MIN=1,--prompt-cache 0 --adapt-swaps 0 --pcie-frac 0=0vs=1=0,=1, and=1plus each of the 14 switches=0=1;STRATA_SM75_IL=0alone costs -16.7 % (the whole series off: -20.4 %); the other 13 are within the T4's +-5 % round-to-round noise, none measurably slowerIn setup's config greedy answers can change between rounds of the same arm (drafting and the adaptive expert tier move), so I
only judged identity in the deterministic lane above.
On this card the series is almost all
STRATA_SM75_IL. I also tried the sm_86 table's switches one at a time on top of=1(
ADAPT_NOWAIT+ADAPT_LAG=2,CPU_IQ_ALL_EXACT1,SIDE_MIXER=2,B6_MMVQ_ROWS,FUSE_DECODE,GU_SWIGLU,QSA_ROWS,ATTN_DAILY,3 rounds each): none was faster here (-2.5 to -6.5 % decode), so I would not carry the sm_86 table over to sm_75.
On the
STRATA_BF16_TC=1question above (not in the series; it rounds differently): on the T4, same config, 6 interleaved pairswith the series on in both arms (this run's engine is my fork's build: the commit above plus the sm_75 table below and an opt-in CPU-kernel switch, the same in both arms), the 6,345-token prompt read went 447 -> 608 tok/s (paired median +34.6 %, 6 of 6 pairs). Decode
paired medians were -2.9 / -1.7 / -2.3 / -4.2 % (1-2 of 6 pairs faster per request, range 0.84-1.11), so inside this card's noise
but not clearly zero. It agrees with the prompt-path gain rafatxf and Adamyno measured on 2080 Tis.
Limits:
stockchat0 47.5 -> 39.9 tok/s between the first and fourth run). Interleaving cancels adrift, not a difference between hosts.
0x4in most samples, clocks down to about 660 MHz, at most 80 °C, no thermal throttling.For whoever decides the default: in my fork I also wrote the table entry the way the sm_86 / sm_60 ones are written
(
nv_defaults.cpp: 7.5 ->STRATA_SM75_PERF=1, off withSTRATA_SM75_PERF=0orSTRATA_DEFAULTS=026, with annv_defaults_testcase), plus
tools/sm75_ablation.pyfor the drop-one arms. I'm not opening a PR unless a maintainer wants one for this issue.Reproduction status: measured locally; every number above is from my runs.