You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Engine] Qwen3.8-Flash-Next decode ~38-45% slower on RTX 3080 Ti (sm_86) since v0.2.20 / engine 0.1.64 (v0.2.18 was fine) #6799
RTX 3080 TI / 64 GB DDR4 / Windows 11 26H2
3080 TI is unlocked to full precision.
Summary
RTX 3080 Ti 12 GB (sm_86, Windows, CUDA 13.5), Qwen3.8-Flash-Next UD-IQ2_XS. Decode drops ~38-45% starting at v0.2.20 / engine 0.1.66. v0.2.18 (0.1.64) is the best, and v0.2.19 (0.1.65) is minor regression. Prefill speed and TTFT are unchanged, so this is a decode-path regression. 0.2.20 only starts after PR #6714.
Controlled standard-v1 (same model/config, warm, single card)
Engine / app
decode short
decode 4k
decode 16k
sanity
0.1.64 / v0.2.18
75.1
74.8
75.8
12/12
0.1.65 / v0.2.19
72.7
67.2
68.2
11/12
0.1.66 / v0.2.20
52.6
54.5
46.9
12/12
Each version test was done after a fresh reboot.
Prompt tok/s (4k ~1.9k, 16k ~2.4k) and TTFT (~2.1 / 6.8 s) are within noise across all three, so the regression is decode-only.
Without #6714 the engine fails startup: verify: layer 0 never rang (operation not supported on global/shared address space). The PR fixes the crash only; it does not restore the speed.
Notes
0.1.65 is ~5-8% slower, fails the tool-call sanity check (T2: emits 0 tool calls where 1 expected), and only reaches near-0.1.64 speed after manually lowering --vram-reserve-mib from 768 to ~543 (auto overfills VRAM, ~74% hit rate).
Data point: RTX 3080 (sm_86), UD-IQ4_XS — 0.1.66 + Q8 TC workaround vs 0.1.62
TL;DR: On our 3080 with UD-IQ4_XS, 0.1.66 with STRATA_HC_Q8_TC=0 + STRATA_HC_Q8_BF16TC=0 starts cleanly (no more layer 0 never rang) and decode is on par with 0.1.62 on standard-v1. We do not reproduce the 38–45% decode drop reported here for UD-IQ2_XS. The one visible difference is a smaller expert cache on 0.1.66 (4,401 vs 4,544 slots, −3.1%), which may matter more at long context than this short-prompt suite shows.
Setup
Item
Value
GPU
RTX 3080 20 GB (memory-modded board), sm_86, driver 610.88, PCIe x16; model pinned to card 0 (an RTX 3060 12 GB is present but unused by Strata)
0.1.66 crashed on every request with verify: layer 0 never rang (operation not supported on global/shared address space) followed by kv_stream: reset: operation not supported, auto-restarting in a loop (same as #6704 / #6763 / #6814).
Results (median, min–max, n=3)
Case
Metric
0.1.62
0.1.66 + workaround
short
decode tok/s
63.6 (59.8–68.7)
63.9 (62.2–73.3)
short
TTFT s
0.66
0.61
prompt-4k
prompt tok/s
1609.8
1607.9
prompt-4k
decode tok/s
59.6 (54.8–59.9)
64.6 (61.2–68.4)
prompt-4k
TTFT s
2.58
2.59
prompt-16k
prompt tok/s
2633.3
2673.2
prompt-16k
decode tok/s
62.8 (62.0–63.5)
60.7 (57.8–63.5)
prompt-16k
TTFT s
6.27
6.20
—
expert cache slots (engine log)
4,544
4,401
—
sanity checks
12/12
12/12
Notes
With the preset's default "parallel: fit to card", 0.1.62 chose --batch 2 and the expert cache dropped to 3,692 slots; --parallel 1 restored ~4,500. Worth checking whether some slowdown reports are a parallel / VRAM-reserve effect rather than a kernel regression (cf. the --vram-reserve-mib 768→543 observation above).
Decode differences between the two engines are within run-to-run spread on this suite; the suite caps output at 512 tokens with short prompts, so it says little about long-context agentic decode where the smaller expert cache could show.
Data point: RTX 3080 Ti Laptop 16 GB (sm_86), Windows — Swift 1.5 IQ2_XS, 128K context
Adding a mobile-Ampere / 16 GB data point. I am the author of #6632 (same GPU class, different model and pack); this comment is the engine-to-engine comparison that issue lacked, so I am putting it here rather than opening another thread.
Short version: on this laptop 0.1.66 is ~6–12% slower than 0.1.65, in the same direction as the report above but a much smaller magnitude. 0.1.66 also leaves more VRAM free than 0.1.65 and still decodes slower, so a "less free VRAM → WDDM paging" explanation does not fit this machine.
Setup
Item
Value
GPU
RTX 3080 Ti Laptop 16 GB, sm_86, driver 621.24, PCIe 4.0 x8, ~80 W of a 120 W cap
CPU / RAM
i9-12900H (6P+8E) / 47.7 GB
OS
Windows 11 26H2
Strata
terminal 0.2.19 (Control 0.1.65); engines 0.1.57, 0.1.65, 0.1.66 installed side by side
Model
Swift 1.5 IQ2_XS (68.2 GB on disk), native pack, MTP rt, expert profile
strata components use <version> --family qwen, then the same preset relaunched; session is up (engine <v>) checked in the engine log for every run
0.1.66 source
signed feed v0.2.20 (strata-feed.json), SHA-256 verified before install
0.1.66 started cleanly here — no verify: layer 0 never rang, no restart loop, no env workaround (contrast #6704 / #6763 / #6814 / the 3080 IQ4_XS report).
Method (not standard-v1)
Fixed synthetic prompts of 175 and 1093 tokens, temperature 0, max_tokens 256 with a task that always fills the cap (so every sample is 256 generated tokens), stream: false, the engine's own last_timings (predicted_per_second, prompt_per_second). Median of 5 runs per cell; the paired comparison below is 3 runs per cell, taken 4 minutes apart.
Results, median decode tok/s
Engine
short (175 tok)
long (1093 tok)
note
0.1.65
48.5
50.2
first session after load (22:58)
0.1.57
41.4
45.0
23:05
0.1.66
39.7
40.0
22:55
0.1.65
43.4
43.7
23:22, paired
0.1.66
38.4
41.2
23:26, paired
0.1.57
42.0
44.9
23:15
Paired, same hour, same preset: short 43.4 → 38.4 tok/s (−11.5%), long 43.7 → 41.2 tok/s (−5.7%).
Prefill is flat across all three (short-prompt 48–124 tok/s single-stream, long-prompt cold 486–514 tok/s), matching your "decode-only" finding.
0.1.66's decode cache hit rate is ~3 points lower (89.9% vs 93.0%) on identical prompts, i.e. ~40% more routed experts fetched from RAM per token (10.1% vs 7.0% of all routed). On this laptop that alone is a plausible explainer for a 6–12% decode drop — worth checking whether the hash/routing or eviction policy changed in 0.1.66, independently of any kernel work.
Limits
Single machine, single model (Swift 1.5 IQ2_XS, not Qwen), one quantization, one context (128K), one card.
Absolute numbers drift ~10% over an hour of continuous benchmarking on this laptop (thermals / power cap / RAM pressure), so only the paired rows should be read as a ratio; the 0.1.65 "48.5 / 50.2" is the freshest session.
My harness is not standard-v1; it is 256 forced output tokens with two fixed prompts, so it says nothing about long-context agentic decode or quality.
0.1.64 is not installed here, so I cannot say whether the step from 0.1.64 to 0.1.65 is the larger one on this GPU.
Ask
Same as everyone in this thread: please treat the 0.1.64 → 0.1.66 decode path as a regression to triage, or say explicitly that small-VRAM sm_86 is a supported-but-slower configuration and name the settings that are meant to recover it. Two bits I would like a maintainer to answer specifically: whether the 0.1.66 cache hit-rate difference above is expected, and whether --vram-reserve-mib / STRATA_HC_Q8_TC=0 are the intended knobs for 16 GB cards.
I have engine logs and the raw per-run timings for every row above and can attach them if wanted.
We are on 0.1.66 running the scalar HC read — STRATA_HC_Q8_TC=0 + STRATA_HC_Q8_BF16TC=0, the interim workaround from #6814 — not PR #6714. Against our 0.1.65 control we read +6.70 median (pooled 108.95, n=50 vs 102.25, n=100). Opposite sign to your −30%.
Two things follow:
The VRAM leg doesn't cover our case. Our footprint is the same on both engines (~46/47 GiB per card on 0.1.65 and 0.1.66), and on 48 GB cards with the pack fully resident there is no WDDM paging to lose. Same architecture, same direction of travel, no memory pressure in between.
So on our host the scalar read is the faster path, which is also why 0.2.21 matters: #6714 fixes the crash and silently restores the TC read as the sm_80+ default. We are committed to a same-binary TC-on/off A/B (n=50 each) the moment 0.2.21 ships — that should settle whether the read itself is the cost, for both of us.
sm_80 counter-datapoint, same model family, with this PR's TC HC read active (#6714 applied, no env workarounds): NVIDIA CMP 170HX (GA100, sm_80, 64 GB, 74 SMs enabled), Linux, driver 615.71.10. The model is Unsloth-layout UD-Q4_K_XL (Huihui abliterated v2), 262,144 context, MTP, parallel 1.
No decode regression here. Prefill is flat too (2,322 → 2,304 t/s at 29k, 3,125 → 3,113 t/s at 118k). The card holds the trunk, KV and a 43 GiB resident expert budget, with no memory pressure on Linux.
So on sm_80 the restored TC read does not cost decode, which narrows a TC-read explanation to sm_86 if it holds there. Limits: n=1 per cell (two tries per depth), a short custom probe rather than standard-v1, one model, one card.
Windows RTX 4090 datapoint: bisected, and a validated fix
We reproduce this on a desktop 4090 and bisected it. With the right settings the decode gap closes (long-prompt decode matches 0.1.65) while the v0.2.20 prefill gain stays.
Method:terminal/tools/ab_engine.py, paired A/B, arms alternate every round, greedy, 256 forced output tokens, the engine's own timings; medians of the rounds.
Version bracket (long ~3.2K-token prompt, decode tok/s)
engine
long decode
0.1.57
38.0
0.1.64
36.2
0.1.65
37.3
0.1.66
32.8
Prefill on the same prompt: 0.1.65 852 → 0.1.66 1065 tok/s (+25%). Decode-only, matching your report.
Bisect
git bisect over 26350e43 (0.1.65 build) .. 2e87c08d (0.1.66), limited to engine/src, paired-step harness (each commit built with release flags, CUDA 13.0, sm_89):
63b73ba mean 0.993 good
f81e976 1.008 good
e3ef567 0.884 bad
d28c053e 0.887 bad
first bad: d28c053e6 "perf(low-vram): optimize 8 GB & 12 GB consumer GPUs and unlock 4 GB 0-slot mode"
What fires on a 24 GB card
The new low-VRAM rules key on cache fraction, not card size:
The WDDM free-VRAM floor / 384 MiB late allocation shrinks the auto cache: 5,096 slots vs 0.1.65's 5,257; giving the cache its VRAM back (~5,490) is another +3–4%.
Engine 0.1.66 with STRATA_HC_Q8=0, STRATA_CACHE_PIN_FRAC=0, --expert-cache 5000 --adapt-every 4 --adapt-swaps 96 --adapt-decay 0.70, vs 0.1.65 with the same flags:
metric
0.1.66
0.1.65
long decode tok/s
37.0
37.0
chat1
43.6
43.5
chat2
37.0
37.4
chat0
20.4
21.2
long prefill tok/s
1131.8
862.6 (+31%)
Local code fix
Gated low_vram_pin_slots() on total_vram_bytes <= 16 GiB (the largest card the rule was measured on) and updated low_vram_rules_test.cpp (24 GiB → 0 pinned, 8/12/16 GiB unchanged). The 4090 no longer pins. Note the gate alone is not enough (it leaves 2/192 and the shrunken auto cache): the adaptive rate and --expert-cache setting above are what close the last few percent.
Residual
A second bisect over the same range with the knobs above neutralized found no single commit: every intermediate measured 0.98–1.00, and the release commit's engine changes are hy4flash/inkling2 only. So the remaining gap was the same cache/adaptive knobs, not a separate kernel regression.
Not tested: cards ≤ 16 GiB (the pin gate keeps their old behavior), other quantizations, Linux. STRATA_HC_Q8=0 was used in the parity run to match the bisect builds; a direct TC-on vs scalar A/B was within noise (33.1 vs 33.8 tok/s).
RTX 5070 Ti 16 GB (sm_120, Windows 10, CUDA 13.5) / 96 GB DDR4 RAM
Maximilian228--Qwen3.8-Flash-Next-NVFP4-GPTQ-Strata
I have been running BENCH.BAT across Strata and Basalt. After updating Strata engine to 0.1.66 - the decode speed has collapsed:
Results (median, range over the runs):
chat decode tok/s 24.30 (22.80 - 27.00, n=9)
agent decode tok/s 22.10 (20.60 - 24.70, n=15)
Prefill was more or less stable, approx 1600 tok/s on longer prompts.
A quick diagnostics immediatly shown visibly lower vRAM utilization, at 14196 MiB. At the same time, the amount of experts loaded into vRAM has visibly dropped:
expert cache auto: 6.46 GiB free, 1280 MiB reserved (+283 MiB for the draft head, +384 MiB for what is allocated after the cache) -> 1770 slots
For comparison: engine 0.1.65
chat decode tok/s 24.60 (21.60 - 27.40, n=9)
agent decode tok/s 23.00 (21.70 - 25.10, n=15)
vRAM utilization: 14909 MiB
expert cache auto: 6.46 GiB free, 700 MiB reserved (+283 MiB for the draft head, +256 MiB for what is allocated after the cache) -> 2040 slots
...and perf. baseline on 0.1.64:
chat decode tok/s 35.10 (31.40 - 42.10, n=9)
agent decode tok/s 39.20 (32.00 - 51.20, n=15)
vRAM utilization: 15144 MiB
expert cache auto: 6.71 GiB free, 700 MiB reserved (+283 MiB for the draft head, +256 MiB for what is allocated after the cache) -> 2135 slots
Initially I tried to work around it with "--vram-reserve-mib","600" - but it did provide only minor perf. uplift and vmem utilization is still lower than on 0.1.64.
As for the actual perf. comparison with Basalt - it runs NVFP4 model Qwen3.8-FN-NVFP4-DQ8.basalt at
basalt-bench build 1e205ae87c power limit 350 W
Follow-up: the pin gate is now PR #6948 (low_vram_pin_slots() stays off above 16 GiB; unit test updated with the 8/12/16/24 GiB boundary). That removes the pinning part on this card automatically.
For the cache-slot part of the recipe above, two open PRs touch the same WDDM shrink/under-sizing and may make --expert-cache unnecessary: #6943 (fixes #6942, the WDDM cache shrink on long prompts) and #6089 (caps the shrink step at 256 MiB). Neither touches the pinning or the #4870 15-65% adaptive rate, so the --adapt-every 4 --adapt-swaps 96 --adapt-decay 0.70 part still stands until a release changes that default. Worth retesting auto slots once either lands.
Correction to my comment above — @gtrak's bisect overtakes my inference.
I wrote that "the only axis between your run and ours is the TC HC read". That doesn't hold: d28c053e6 explains the regression on the reporter's profile (Windows 11, 12 GB, WDDM) without reference to the HC read at all, and your TC-on vs scalar A/B (33.1 vs 33.8, within noise) plus @chrisulbrich's clean sm_80 run leave the TC read unconvicted on sm_80/sm_89. Our +6.70 arbitrates nothing about it either way.
Why we never saw the regression is worth recording, since it maps the blast radius #6948 is gating. 2x RTX A6000 48 GB, Linux, Qwen3.8-Flash-Next UD-Q5_K_XL (158.3 GB pack, ~46 GiB resident per card, ~60% coverage):
expert cache auto: … 700 MiB reserved on 77 of 77 boots in our engine log — never the 1280 MiB / +384 MiB late allocation that cost @NNG9y1PQdXl 270 slots. Current 0.1.66 boot: 11,425 slots.
No pin / low-vram message anywhere in that log, and ~60% coverage sits well above the 25% trigger, so low_vram_pin_slots() never arms.
Two independent reasons the rules don't fire here (no WDDM floor; coverage above the trigger), which is consistent with #6948's gate being about small cards rather than about Linux vs Windows.
Unchanged, and now the only open question: the TC read's cost on sm_86 is still unmeasured — no arm of it has been run on an 84-SM Ampere card. We'll post the same-binary TC-on/off A/B (n=50 each) when 0.2.21 ships.
A/B done as committed. PR #6714 branch (d7561d1bd), release flags, sm_86 = 2x RTX A6000 (84-SM GA102), Qwen3.8-Flash-Next UD-Q5_K_XL @ 262144 ctx, single variable STRATA_HC_Q8_TC, same binary both arms, n=50 per arm, no other traffic on the host:
arm
pooled median
mean
sd
range
TC on
111.00
111.14
4.26
101.3-123.4
TC off (scalar)
110.00
109.73
4.43
100.7-119.0
+0.9% at ~1.2 sigma — parity. The Tensor-Core HC read costs nothing on sm_86. I'm withdrawing my earlier TC-cost hypothesis: with the low-VRAM rules unable to fire on our host (Linux, no WDDM floor, ~60% cache coverage), the TC arm shows no penalty on 84-SM Ampere either. That leaves @gtrak's bisect (d28c053e6) as the complete explanation of the regression on affected hosts.
Also verified in this run: TC-on boots and completes 50 requests with zero verify: layer 0 never rang — #6714 fixes the sm_86 crash outright, and the fix stays confined to the TC kernel (scalar arm reproduces our standing 0.1.66 numbers, +1.05 tok/s).
So the summary for maintainers: nothing here argues against shipping #6714 and the #6948 gate; the restored TC default carries no decode penalty on sm_86.
0.2.21 shipped — stock confirmation, as promised. Engine 0.1.67 (d46f5f268), same host as my A/B above (2x RTX A6000, sm_86, Linux, Qwen3.8-Flash-Next UD-Q5_K_XL @ 262144 ctx). Both workaround switches (STRATA_HC_Q8_TC=0, STRATA_HC_Q8_BF16TC=0) removed from the live config — TC now runs at the shipping default-on.
Verify window rings clean under real traffic:strata verify: captured the 6-token window (upload no error, sync no error) in 8.5 ms on the first requests after restart; zero verify: layer 0 never rang anywhere in the log. f5da78969 fixes the fault outright on our card, confirmed outside a PR branch.
Standard medium session, n=25 (5 passes x 5 runs, greedy 512-tok, engine's own timings, single process, residuals clean): pooled median 109.20 (mean 109.12, sd 3.18, range 104.3-120.9; session median 109.80).
vs our standing 0.1.66 + TC-off workaround figure 108.95 (n=50): +0.2%. vs the PR-branch TC-on arm 111.00 (n=50): -1.6%. Both inside the +/-3 band — parity, exactly as the A/B predicted.
Conclusion unchanged and now verified on the release: the __ldg-on-shared fix costs nothing, TC default-on carries no decode penalty on 84-SM Ampere, and nothing is pinned on our side anymore. (Standing caveat: the 128-192K journal ring is watched separately from the medium axis, as always.)
Data point + root cause for the prefill half of this regression class, from a Linux 28-SM card: RTX 3060 12 GB, Qwen3.8-Flash-Next native IQ3_XXS pack, 196K context, 1598-slot expert cache, STRATA_KVA=1. This is a different axis from the decode/pinning work above - our decode is fine here; it is the cold prefill that inverted.
Guarded engine-swap A/B/A windows (candidate binary vs the 0.1.56 baseline on an isolated port, every leg slot-basis clean, 1597-1598 slots, zero per-request VRAM warnings):
Stock 0.1.62-0.1.66: cold prefill -16.5% to -19.4% vs 0.1.56 at 16K/40K/64K probe sizes, uniform per size. Decode +2.5% to +4.5% (the consumer-parity decode work is real on this card).
Switch-independent: seven drop-one arms on stock 0.1.66 (HC_UPMIX=0, Q80_ROWS1=0, ADAPT_FETCH=0, PF_SMALL_FUSED=0, PF_FUSED=0 + PREFILL_LAYER_MAJOR=1, PREFILL_CPU_SHARE_NT=16, SM86_PERF=0) and a sub-48-SM 64-row staged-tile source patch all failed to restore prefill. Decode improved in every arm except the all-off bound (decode -8.9%, no-go).
Root cause, read from the source (current tree): the small-card prompt rule (small_card_prompt_path, owner-approved 2026-11-02) still fires on this card - boot lines show default chunk 2304 -> 3840 - but since 0.2.16 the engine builds with -DSTRATA_MMQ=OFF (STRATA_PF_OWN_ONLY=1 in prefill.cpp), which maps the rule's fused-off answer to kPfFusedKernelsOnly: Strata's own fused kernels run in MMQ's buffer layout, and true MMQ cannot be selected anywhere. 0.1.56 built the moe_mmq.cu adapter, so the same rule ran true MMQ - on our card that substrate difference is the whole prefill delta. The rule's target audience (small-cache cards) is exactly the class that lost its winning path.
Measured locally: we restored the 0.2.12-era MMQ prompt path (the moe_mmq.cu adapter compiled against the vendored llama.cpp tree, behind a build flag, default off) on top of 0.1.67. One guarded window: cold prefill back to band parity - 1235 tok/s vs controls 1242/1266, control drift 1.9% (it was -17%) - while decode holds +5.2% (clears the 2% band) and a 10-trial cold-read fact-recall gate reads 10/10. We ship that build on our box now.
Limits, in the same breath: our decode gain is measured on this profile only (resident cache, k8v4, 196K ctx, 16-64K prompts); not tested - other quantizations, Windows, cards >= 48 SMs, HIP. The vendor small-cache measurement named in the rule's header (PRO 5000 / a real 12 GB 5070) is 48+ SM classes; ours is 28. Our earlier window data on this card is in #6118 (three comments, no response so far).
If it helps triage: where the fixes above address decode-under-pinning, this is a prefill-substrate gap that only shows on small-SM sm_86 - a card-class-gated MMQ build option (the adapter sources are small and the interface header has not changed since 0.2.12) would give that class the pre-0.2.16 prefill back without touching any of the decode work. Happy to run arms on request.
Data point: RTX 4070 Ti 12 GB (sm_89), Windows 11 WDDM, UD-Q4_K_XL — still present on 0.1.67; the #6799 recipe recovers most of it, but not all
Adding a 12 GB sm_89 point, since #6948 only gates the pinning above 16 GiB and cards like this one keep the 0.1.66 low-VRAM behavior.
Setup: RTX 4070 Ti 12 GB, i9-12900K, 64 GB DDR5, NVMe; Control 0.1.68 for every run, only the engine package switched with strata components use. Qwen3.8-Flash-Next UD-Q4_K_XL native pack, preset 128K, --kv int8 --kv-resident 32768 --resident-budget-gib 45, DFlash2 --spec 6 --draft-conf 0.8, 1 slot, STRATA_ROUTE_PRIOR=1.5, CPU vision reader on.
Method: same 4 requests per config, greedy, warm: 2× short (99-token prompt → 600 out) and 2× long (27,105-token prompt of C# code → 500 out). Decode = engine's own strata serve: line, mean of the runs.
DFlash2 acceptance is ~82% on every row, so the drafter is not involved. Prefill on 0.1.65 varied 890–1241 tok/s between launches here and 0.1.67 rows fall in 830–1150, so I can't confirm the +31% prefill gain on this card.
Observations
On 0.1.67 the per-expert footprint is larger here (68.12 → 68.75–69.08 GiB total) and the auto reserve is 960 MiB vs 700 MiB on 0.1.65, so the same VRAM holds fewer experts: auto keeps 1023 experts in the cache as shipped and only 911 with STRATA_HC_Q8=0.
Forcing --expert-cache 1240 (0.1.65's count) on 0.1.67 leaves 57 MiB free on a 12 GB WDDM card and the conversation cache can't park; it's the best 0.1.67 decode I got, but too close to the edge to keep.
With the CPU vision reader in RAM the 0.1.67 auto plan also clipped the RAM budget to 43.54 GiB (--resident-budget-gib 45.00 exceeds available RAM ... 43.54 GiB), and decode then pulled experts from the file: files 535198 blobs 1528141.5 MB read over ~20 min of agent work + the bench. --vision off alone recovers 33 → 45 tok/s.
Long opencode agent sessions (15–40K ctx, many requests) on the same box: 0.1.62 ≈ 59, 0.1.65 ≈ 48, 0.1.67 ≈ 35 tok/s.
Net: on 12 GB the recipe closes ~85% of the gap, and the rest looks like the larger expert slots + bigger reserve leaving fewer experts on the card. I'm staying pinned to 0.1.65 for now; happy to test #6943 / #6089 or any build on this card.
@Niko1221 — adding a 12 GiB sm_86 datapoint and a sub-lever that I think explains the <= 13 GiB + >= 8 pool workers slice of this regression. (Credit to @gtrak's bisect to d28c053e6 and @iforevans' TC parity run, which this is consistent with.)
TL;DR
On an RTX 3080 Ti 12 GiB (Windows WDDM, sm_86), the 0.1.66 decode drop is caused by d28c053e6 auto-enabling STRATA_L3_PF, which also turns on the expert-pool static
slices (want_static = want_pf || ...). Static slicing alone reproduces the slowdown, and
the L3 prefetch cannot run without it. STRATA_L3_PF=0 restores 0.1.64-level decode in a
paired A/B. This is a different sub-lever from @gtrak's 24 GiB pinning finding — that card is
13 GiB, so l3_pf_auto_default does not fire there.
Setup
Item
Value
GPU
RTX 3080 Ti 12 GiB, sm_86, Windows 11 WDDM, CUDA 13.5
paired A/B (the terminal/tools/ab_engine.py shape; arms alternate per round), thinking ON, 1024 out, medians
Paired A/B (drift-cancelled, 2 rounds)
Arm
chat0
chat1
chat2
long (6.3k)
0.1.64 (reference)
86.4
85.2
79.0
86.4
0.1.68 stock
74.7
66.7
63.3
68.9
0.1.68 STRATA_L3_PF=0
90.0
80.8
76.0
80.0
0.1.68 STRATA_L3_PF=0 + STRATA_CACHE_PIN_FRAC=0
87.7
78.9
81.5
86.2
A second run reproduced the same shape more sharply: stock 67.6 / 64.2 / 59.8 / 59.1 vs L3_PF=0 91.8 / 86.8 / 84.3 / 86.8.
Fresh-boot standard-v1 with STRATA_L3_PF=0: short 76.3 / 4k 76.5 / 16k 82.0,
sanity 12/12 (21/21 requests, 0 failed; report 87f72005, nonconforming only because the
commit is unknown and --skip-model-hash). The report states the server had answered no request
before the run. That is back in the 0.1.64 fresh band (75.1 / 74.8 / 75.8; stock 0.1.68 was
49.3 / 44.2 / 46.3, e5878e19).
Power (user-observed, not logged): GPU power during thinking/answers went from ~270 W on the
static-slice build to ~350 W with L3_PF=0 — the GPU was being starved before and now reaches
its power limit.
Corroboration (12 GiB, shipped 0.1.67):@plsfullmarkprofessor reports a 4070 Ti 12 GiB on
0.1.67 still far below 0.1.65 (short 40.4 vs 58.3; 27K 33.4 vs 51.8) and that the #6799 recipe
(pin/adapt/expert-cache) recovers ~85% but not all — while noting #6948 only gates pinning above
16 GiB. That is the remaining gap this L3_PF=0 lever closes: l3_pf_auto_default fires on
≤13 GiB independently of pinning, so #6948 does not reach these cards.
Why it fires here (source + isolation)
d28c053e6 gated the auto-default in l3_pf_auto_default on <= 13 GiB, > 50% host
experts, >= 8 pool workers — true for this card at --pool-workers 8.
generate.cpp:10497want_static = want_pf || ...; generate.cpp:10503 sets up the
prefetch only if (want_pf && pool.static_slices()); pool.cpp:1621prefetch_next
returns unless static_slices_. So the prefetch is built on the static slices and cannot
run without them.
Isolation: STRATA_L3_PF=0 STRATA_POOL_STATIC=1 (static slices on, prefetch off) is still
slow (77.0 / 69.8 / 64.2 / 72.2 on the same rig), while STRATA_L3_PF=0 (both off) is fast.
So the static slices are the cost, not the L3 prefetch itself.
Also ruled out on this card: STRATA_ADAPT_FETCH=0 (no help), hit rate/slot count (0.1.68
has more slots and a higher thinking-on hit rate), VRAM pressure, TC read, expert count. --spec 0 is illegal on this IQ pack (needs >= 2).
Fix today (no rebuild)
Set in the run config / preset:
STRATA_L3_PF=0
# optional, small gain on long context:
# STRATA_CACHE_PIN_FRAC=0
L3_PF=0 alone recovers to the 0.1.64 band; adding PIN_FRAC=0 is a wash overall and a
little better on chat2/long.
Limits
One card, one model/pack, Windows WDDM; the fresh-boot standard-v1 is 87f72005 (the
earlier bd07b204 was warm).
L3 prefetch and static slices are not separable by env (prefetch is gated on static_slices_); "static slices are the cost" is inferred from the prefetch-off arm.
Driver version is not isolated — no clean driver correlation in this thread, but treat the
OS/WDDM + rule-firing explanation as unconfirmed until a same-card driver A/B.
@Niko1221 — is the 0.1.66 l3_pf_auto_default meant to arm on <= 13 GiB desktop cards with
8 pool workers? Options to consider:
(a) make STRATA_L3_PF opt-in again for consumer desktops,
(b) stop deriving want_static from want_pf, and keep work-stealing while prefetching,
(c) gate the auto-default by CPU class, the way #6948 gates pinning by VRAM.
Happy to run a build and open a focused [Engine] PR with the tests if that direction is
wanted.
Independent confirmation of the source reading in @rugabunda's analysis, from our tree (0.2.21 / d46f5f268, Linux):
generate.cpp: want_static = want_pf || (STRATA_POOL_STATIC …) — the auto-default forces static slices on; there is no prefetch without them.
Prefetch setup is gated on want_pf && pool.static_slices(), and prefetch_next returns unless static_slices_.
So on a ≤13 GiB + ≥8-worker host the auto-default switches on several mechanisms at once (L3 prefetch, static slices, plus the cache/pinning interactions #6821 documents). That matches what we saw on the TC half of this thread: the per-release decode deltas on small-VRAM cards are compound, and single-arm A/Bs of the whole flag keep attributing the cost to the wrong sub-lever. Between the isolation arms here (static-on/pf-off still slow) and #6821's worker-threshold data, decoupling want_static from want_pf and gating the default per-machine looks like the direction that preserves the #6550 win without re-pricing every card. Our 2x A6000 host fails every gate (fully resident), so we can't test the prefetch itself — but the in-tree reading above is exact.
Activity
kennethpiu commentedon Nov 23, 2026
`
Data point: RTX 3080 (sm_86), UD-IQ4_XS — 0.1.66 + Q8 TC workaround vs 0.1.62
TL;DR: On our 3080 with UD-IQ4_XS, 0.1.66 with
STRATA_HC_Q8_TC=0+STRATA_HC_Q8_BF16TC=0starts cleanly (no morelayer 0 never rang) and decode is on par with 0.1.62 onstandard-v1. We do not reproduce the 38–45% decode drop reported here for UD-IQ2_XS. The one visible difference is a smaller expert cache on 0.1.66 (4,401 vs 4,544 slots, −3.1%), which may matter more at long context than this short-prompt suite shows.Setup
qwen3.8-flash-next-unsloth-ud-iq4_xs(UD-IQ4_XS), context 262144strata launch --preset iq4xs --parallel 1 --tune quick --retune --yes --no-tui0.1.66 additionally:
--set STRATA_HC_Q8_TC=0 --set STRATA_HC_Q8_BF16TC=0Quick tune reported "already fastest" on both engines
strata bench run --url http://127.0.0.1:8080 --suite standard-v1 --no-start, machine otherwise idleWithout the workaround
0.1.66 crashed on every request with
verify: layer 0 never rang (operation not supported on global/shared address space)followed bykv_stream: reset: operation not supported, auto-restarting in a loop (same as #6704 / #6763 / #6814).Results (median, min–max, n=3)
Notes
- With the preset's default "parallel: fit to card", 0.1.62 chose
- Decode differences between the two engines are within run-to-run spread on this suite; the suite caps output at 512 tokens with short prompts, so it says little about long-context agentic decode where the smaller expert cache could show.
- We are staying on 0.1.62 for now (more expert-cache slots, no env workaround needed) until a release with PR [Engine] fix fused_gr Q8 TC kernels calling __ldg on shared memory (q8_smem_ld16) #6714 lands.
`--batch 2and the expert cache dropped to 3,692 slots;--parallel 1restored ~4,500. Worth checking whether some slowdown reports are a parallel / VRAM-reserve effect rather than a kernel regression (cf. the--vram-reserve-mib768→543 observation above).ByteBrainMaster commentedon Nov 23, 2026
Data point: RTX 3080 Ti Laptop 16 GB (sm_86), Windows — Swift 1.5 IQ2_XS, 128K context
Adding a mobile-Ampere / 16 GB data point. I am the author of #6632 (same GPU class, different model and pack); this comment is the engine-to-engine comparison that issue lacked, so I am putting it here rather than opening another thread.
Short version: on this laptop 0.1.66 is ~6–12% slower than 0.1.65, in the same direction as the report above but a much smaller magnitude. 0.1.66 also leaves more VRAM free than 0.1.65 and still decodes slower, so a "less free VRAM → WDDM paging" explanation does not fit this machine.
Setup
rt, expert profile--max-context 131072 --kv int8 --kv-resident 32768 --spec 4 --spec-min-p 0.5 --expert-cache auto --prefill auto --pool-workers 9, parallel 1, vision off, CLAUDE/OpenClaw clientsstrata components use <version> --family qwen, then the same preset relaunched;session is up (engine <v>)checked in the engine log for every runstrata-feed.json), SHA-256 verified before install0.1.66 started cleanly here — no
verify: layer 0 never rang, no restart loop, no env workaround (contrast #6704 / #6763 / #6814 / the 3080 IQ4_XS report).Method (not
standard-v1)Fixed synthetic prompts of 175 and 1093 tokens,
temperature 0,max_tokens 256with a task that always fills the cap (so every sample is 256 generated tokens),stream: false, the engine's ownlast_timings(predicted_per_second,prompt_per_second). Median of 5 runs per cell; the paired comparison below is 3 runs per cell, taken 4 minutes apart.Results, median decode tok/s
Paired, same hour, same preset: short 43.4 → 38.4 tok/s (−11.5%), long 43.7 → 41.2 tok/s (−5.7%).
Prefill is flat across all three (short-prompt 48–124 tok/s single-stream, long-prompt cold 486–514 tok/s), matching your "decode-only" finding.
Engine state, from the engine log
Two observations that may narrow it down:
Limits
standard-v1; it is 256 forced output tokens with two fixed prompts, so it says nothing about long-context agentic decode or quality.Ask
Same as everyone in this thread: please treat the 0.1.64 → 0.1.66 decode path as a regression to triage, or say explicitly that small-VRAM
sm_86is a supported-but-slower configuration and name the settings that are meant to recover it. Two bits I would like a maintainer to answer specifically: whether the 0.1.66 cache hit-rate difference above is expected, and whether--vram-reserve-mib/STRATA_HC_Q8_TC=0are the intended knobs for 16 GB cards.I have engine logs and the raw per-run timings for every row above and can attach them if wanted.
iforevans commentedon Nov 23, 2026
sm_86 counter-datapoint, same model: 2x RTX A6000 (sm_86), Linux, Qwen3.8-Flash-Next UD-Q5_K_XL @ 262144 ctx.
We are on 0.1.66 running the scalar HC read —
STRATA_HC_Q8_TC=0+STRATA_HC_Q8_BF16TC=0, the interim workaround from #6814 — not PR #6714. Against our 0.1.65 control we read +6.70 median (pooled 108.95, n=50 vs 102.25, n=100). Opposite sign to your −30%.Two things follow:
So on our host the scalar read is the faster path, which is also why 0.2.21 matters: #6714 fixes the crash and silently restores the TC read as the sm_80+ default. We are committed to a same-binary TC-on/off A/B (n=50 each) the moment 0.2.21 ships — that should settle whether the read itself is the cost, for both of us.
chrisulbrich commentedon Nov 23, 2026
sm_80 counter-datapoint, same model family, with this PR's TC HC read active (#6714 applied, no env workarounds): NVIDIA CMP 170HX (GA100, sm_80, 64 GB, 74 SMs enabled), Linux, driver 615.71.10. The model is Unsloth-layout
UD-Q4_K_XL(Huihui abliterated v2), 262,144 context, MTP, parallel 1.Decode, single request, 256 tokens out, 0.1.65 (v0.2.19) → 0.1.66 + #6714:
No decode regression here. Prefill is flat too (2,322 → 2,304 t/s at 29k, 3,125 → 3,113 t/s at 118k). The card holds the trunk, KV and a 43 GiB resident expert budget, with no memory pressure on Linux.
So on sm_80 the restored TC read does not cost decode, which narrows a TC-read explanation to sm_86 if it holds there. Limits: n=1 per cell (two tries per depth), a short custom probe rather than
standard-v1, one model, one card.gtrak commentedon Nov 23, 2026
Windows RTX 4090 datapoint: bisected, and a validated fix
We reproduce this on a desktop 4090 and bisected it. With the right settings the decode gap closes (long-prompt decode matches 0.1.65) while the v0.2.20 prefill gain stays.
Setup: RTX 4090 24 GB, Windows 11 WDDM, driver 621.24, CUDA 13.0, engine 0.1.66 (v0.2.20) + PR #6714, Qwen3.8-Flash-Next Unsloth UD-Q4_K_XL native pack,
--max-context 32768 --kv int8 --resident-budget-gib 40 --vram-reserve-mib 700, DFlash2--spec 6 --draft-conf 0.7. Identical config on 0.1.57 / 0.1.64 / 0.1.65.Method:
terminal/tools/ab_engine.py, paired A/B, arms alternate every round, greedy, 256 forced output tokens, the engine's owntimings; medians of the rounds.Version bracket (long ~3.2K-token prompt, decode tok/s)
Prefill on the same prompt: 0.1.65 852 → 0.1.66 1065 tok/s (+25%). Decode-only, matching your report.
Bisect
git bisectover26350e43 (0.1.65 build) .. 2e87c08d (0.1.66), limited toengine/src, paired-step harness (each commit built with release flags, CUDA 13.0, sm_89):63b73bamean 0.993 goodf81e9761.008 goode3ef5670.884 badd28c053e0.887 badd28c053e6"perf(low-vram): optimize 8 GB & 12 GB consumer GPUs and unlock 4 GB 0-slot mode"What fires on a 24 GB card
The new low-VRAM rules key on cache fraction, not card size:
low_vram_pin_slots()pins 25% of slots for any cache < 25% resident. A 24 GB card with a 72 GB MoE is 20.8% resident, so it pinned ~1,270 slots while the [Engine] Adaptive tier defaults cost ~10 % code decode on a 2x RTX 3090 split whose cache holds ~45 % of each card's experts #4870 15–65% coverage rule raised adaptive swaps to 2 / 192 / 0.92. They fight.STRATA_CACHE_PIN_FRAC=0alone: +4.5% decode.Validated remedy (paired, 6 rounds, slots equalized 5361/5362)
Engine 0.1.66 with
STRATA_HC_Q8=0,STRATA_CACHE_PIN_FRAC=0,--expert-cache 5000 --adapt-every 4 --adapt-swaps 96 --adapt-decay 0.70, vs 0.1.65 with the same flags:Local code fix
Gated
low_vram_pin_slots()ontotal_vram_bytes <= 16 GiB(the largest card the rule was measured on) and updatedlow_vram_rules_test.cpp(24 GiB → 0 pinned, 8/12/16 GiB unchanged). The 4090 no longer pins. Note the gate alone is not enough (it leaves 2/192 and the shrunken auto cache): the adaptive rate and--expert-cachesetting above are what close the last few percent.Residual
A second bisect over the same range with the knobs above neutralized found no single commit: every intermediate measured 0.98–1.00, and the release commit's engine changes are hy4flash/inkling2 only. So the remaining gap was the same cache/adaptive knobs, not a separate kernel regression.
Not tested: cards ≤ 16 GiB (the pin gate keeps their old behavior), other quantizations, Linux.
STRATA_HC_Q8=0was used in the parity run to match the bisect builds; a direct TC-on vs scalar A/B was within noise (33.1 vs 33.8 tok/s).NNG9y1PQdXl commentedon Nov 24, 2026
RTX 5070 Ti 16 GB (sm_120, Windows 10, CUDA 13.5) / 96 GB DDR4 RAM
Maximilian228--Qwen3.8-Flash-Next-NVFP4-GPTQ-Strata
I have been running BENCH.BAT across Strata and Basalt. After updating Strata engine to 0.1.66 - the decode speed has collapsed:
Results (median, range over the runs):
chat decode tok/s 24.30 (22.80 - 27.00, n=9)
agent decode tok/s 22.10 (20.60 - 24.70, n=15)
Prefill was more or less stable, approx 1600 tok/s on longer prompts.
A quick diagnostics immediatly shown visibly lower vRAM utilization, at 14196 MiB. At the same time, the amount of experts loaded into vRAM has visibly dropped:
expert cache auto: 6.46 GiB free, 1280 MiB reserved (+283 MiB for the draft head, +384 MiB for what is allocated after the cache) -> 1770 slots
For comparison: engine 0.1.65
chat decode tok/s 24.60 (21.60 - 27.40, n=9)
agent decode tok/s 23.00 (21.70 - 25.10, n=15)
vRAM utilization: 14909 MiB
expert cache auto: 6.46 GiB free, 700 MiB reserved (+283 MiB for the draft head, +256 MiB for what is allocated after the cache) -> 2040 slots
...and perf. baseline on 0.1.64:
chat decode tok/s 35.10 (31.40 - 42.10, n=9)
agent decode tok/s 39.20 (32.00 - 51.20, n=15)
vRAM utilization: 15144 MiB
expert cache auto: 6.71 GiB free, 700 MiB reserved (+283 MiB for the draft head, +256 MiB for what is allocated after the cache) -> 2135 slots
Initially I tried to work around it with "--vram-reserve-mib","600" - but it did provide only minor perf. uplift and vmem utilization is still lower than on 0.1.64.
As for the actual perf. comparison with Basalt - it runs NVFP4 model Qwen3.8-FN-NVFP4-DQ8.basalt at
basalt-bench build 1e205ae87c power limit 350 W
gtrak commentedon Nov 24, 2026
Follow-up: the pin gate is now PR #6948 (
low_vram_pin_slots()stays off above 16 GiB; unit test updated with the 8/12/16/24 GiB boundary). That removes the pinning part on this card automatically.For the cache-slot part of the recipe above, two open PRs touch the same WDDM shrink/under-sizing and may make
--expert-cacheunnecessary: #6943 (fixes #6942, the WDDM cache shrink on long prompts) and #6089 (caps the shrink step at 256 MiB). Neither touches the pinning or the #4870 15-65% adaptive rate, so the--adapt-every 4 --adapt-swaps 96 --adapt-decay 0.70part still stands until a release changes that default. Worth retesting auto slots once either lands.iforevans commentedon Nov 24, 2026
Correction to my comment above — @gtrak's bisect overtakes my inference.
I wrote that "the only axis between your run and ours is the TC HC read". That doesn't hold:
d28c053e6explains the regression on the reporter's profile (Windows 11, 12 GB, WDDM) without reference to the HC read at all, and your TC-on vs scalar A/B (33.1 vs 33.8, within noise) plus @chrisulbrich's clean sm_80 run leave the TC read unconvicted on sm_80/sm_89. Our +6.70 arbitrates nothing about it either way.Why we never saw the regression is worth recording, since it maps the blast radius #6948 is gating. 2x RTX A6000 48 GB, Linux, Qwen3.8-Flash-Next UD-Q5_K_XL (158.3 GB pack, ~46 GiB resident per card, ~60% coverage):
expert cache auto: … 700 MiB reservedon 77 of 77 boots in our engine log — never the 1280 MiB / +384 MiB late allocation that cost @NNG9y1PQdXl 270 slots. Current 0.1.66 boot: 11,425 slots.low_vram_pin_slots()never arms.Two independent reasons the rules don't fire here (no WDDM floor; coverage above the trigger), which is consistent with #6948's gate being about small cards rather than about Linux vs Windows.
Unchanged, and now the only open question: the TC read's cost on sm_86 is still unmeasured — no arm of it has been run on an 84-SM Ampere card. We'll post the same-binary TC-on/off A/B (n=50 each) when 0.2.21 ships.
engine: the Track 6A tiny-cache rules are opt-in (STRATA_TINY_CACHE=1) (
iforevans commentedon Nov 24, 2026
A/B done as committed. PR #6714 branch (
d7561d1bd), release flags, sm_86 = 2x RTX A6000 (84-SM GA102), Qwen3.8-Flash-Next UD-Q5_K_XL @ 262144 ctx, single variableSTRATA_HC_Q8_TC, same binary both arms, n=50 per arm, no other traffic on the host:+0.9% at ~1.2 sigma — parity. The Tensor-Core HC read costs nothing on sm_86. I'm withdrawing my earlier TC-cost hypothesis: with the low-VRAM rules unable to fire on our host (Linux, no WDDM floor, ~60% cache coverage), the TC arm shows no penalty on 84-SM Ampere either. That leaves @gtrak's bisect (
d28c053e6) as the complete explanation of the regression on affected hosts.Also verified in this run: TC-on boots and completes 50 requests with zero
verify: layer 0 never rang— #6714 fixes the sm_86 crash outright, and the fix stays confined to the TC kernel (scalar arm reproduces our standing 0.1.66 numbers, +1.05 tok/s).So the summary for maintainers: nothing here argues against shipping #6714 and the #6948 gate; the restored TC default carries no decode penalty on sm_86.
Merge upstream d46f5f2 (279 commits; Strata 0.2.21, engine 0.1.67) in…
iforevans commentedon Nov 24, 2026
0.2.21 shipped — stock confirmation, as promised. Engine 0.1.67 (
d46f5f268), same host as my A/B above (2x RTX A6000, sm_86, Linux, Qwen3.8-Flash-Next UD-Q5_K_XL @ 262144 ctx). Both workaround switches (STRATA_HC_Q8_TC=0,STRATA_HC_Q8_BF16TC=0) removed from the live config — TC now runs at the shipping default-on.strata verify: captured the 6-token window (upload no error, sync no error) in 8.5 mson the first requests after restart; zeroverify: layer 0 never ranganywhere in the log.f5da78969fixes the fault outright on our card, confirmed outside a PR branch.timings, single process, residuals clean): pooled median 109.20 (mean 109.12, sd 3.18, range 104.3-120.9; session median 109.80).Conclusion unchanged and now verified on the release: the
__ldg-on-shared fix costs nothing, TC default-on carries no decode penalty on 84-SM Ampere, and nothing is pinned on our side anymore. (Standing caveat: the 128-192K journal ring is watched separately from the medium axis, as always.)satwareAG-ironMike commentedon Nov 24, 2026
Data point + root cause for the prefill half of this regression class, from a Linux 28-SM card: RTX 3060 12 GB, Qwen3.8-Flash-Next native IQ3_XXS pack, 196K context, 1598-slot expert cache, STRATA_KVA=1. This is a different axis from the decode/pinning work above - our decode is fine here; it is the cold prefill that inverted.
Guarded engine-swap A/B/A windows (candidate binary vs the 0.1.56 baseline on an isolated port, every leg slot-basis clean, 1597-1598 slots, zero per-request VRAM warnings):
HC_UPMIX=0,Q80_ROWS1=0,ADAPT_FETCH=0,PF_SMALL_FUSED=0,PF_FUSED=0+PREFILL_LAYER_MAJOR=1,PREFILL_CPU_SHARE_NT=16,SM86_PERF=0) and a sub-48-SM 64-row staged-tile source patch all failed to restore prefill. Decode improved in every arm except the all-off bound (decode -8.9%, no-go).Root cause, read from the source (current tree): the small-card prompt rule (
small_card_prompt_path, owner-approved 2026-11-02) still fires on this card - boot lines show default chunk 2304 -> 3840 - but since 0.2.16 the engine builds with-DSTRATA_MMQ=OFF(STRATA_PF_OWN_ONLY=1in prefill.cpp), which maps the rule's fused-off answer tokPfFusedKernelsOnly: Strata's own fused kernels run in MMQ's buffer layout, and true MMQ cannot be selected anywhere. 0.1.56 built themoe_mmq.cuadapter, so the same rule ran true MMQ - on our card that substrate difference is the whole prefill delta. The rule's target audience (small-cache cards) is exactly the class that lost its winning path.Measured locally: we restored the 0.2.12-era MMQ prompt path (the
moe_mmq.cuadapter compiled against the vendored llama.cpp tree, behind a build flag, default off) on top of 0.1.67. One guarded window: cold prefill back to band parity - 1235 tok/s vs controls 1242/1266, control drift 1.9% (it was -17%) - while decode holds +5.2% (clears the 2% band) and a 10-trial cold-read fact-recall gate reads 10/10. We ship that build on our box now.Limits, in the same breath: our decode gain is measured on this profile only (resident cache, k8v4, 196K ctx, 16-64K prompts); not tested - other quantizations, Windows, cards >= 48 SMs, HIP. The vendor small-cache measurement named in the rule's header (PRO 5000 / a real 12 GB 5070) is 48+ SM classes; ours is 28. Our earlier window data on this card is in #6118 (three comments, no response so far).
If it helps triage: where the fixes above address decode-under-pinning, this is a prefill-substrate gap that only shows on small-SM sm_86 - a card-class-gated MMQ build option (the adapter sources are small and the interface header has not changed since 0.2.12) would give that class the pre-0.2.16 prefill back without touching any of the decode work. Happy to run arms on request.
plsfullmarkprofessor commentedon Nov 24, 2026
Data point: RTX 4070 Ti 12 GB (sm_89), Windows 11 WDDM, UD-Q4_K_XL — still present on 0.1.67; the #6799 recipe recovers most of it, but not all
Adding a 12 GB sm_89 point, since #6948 only gates the pinning above 16 GiB and cards like this one keep the 0.1.66 low-VRAM behavior.
Setup: RTX 4070 Ti 12 GB, i9-12900K, 64 GB DDR5, NVMe; Control 0.1.68 for every run, only the engine package switched with
strata components use. Qwen3.8-Flash-Next UD-Q4_K_XL native pack, preset128K,--kv int8 --kv-resident 32768 --resident-budget-gib 45, DFlash2--spec 6 --draft-conf 0.8, 1 slot,STRATA_ROUTE_PRIOR=1.5, CPU vision reader on.Method: same 4 requests per config, greedy, warm: 2× short (99-token prompt → 600 out) and 2× long (27,105-token prompt of C# code → 500 out). Decode = engine's own
strata serve:line, mean of the runs.STRATA_CACHE_PIN_FRAC=0 STRATA_HC_Q8=0 --adapt-every 4 --adapt-swaps 96 --adapt-decay 0.70+--expert-cache 1240--expert-cache auto--vision off(no recipe)DFlash2 acceptance is ~82% on every row, so the drafter is not involved. Prefill on 0.1.65 varied 890–1241 tok/s between launches here and 0.1.67 rows fall in 830–1150, so I can't confirm the +31% prefill gain on this card.
Observations
STRATA_HC_Q8=0.--expert-cache 1240(0.1.65's count) on 0.1.67 leaves 57 MiB free on a 12 GB WDDM card and the conversation cache can't park; it's the best 0.1.67 decode I got, but too close to the edge to keep.--resident-budget-gib 45.00 exceeds available RAM ... 43.54 GiB), and decode then pulled experts from the file:files 535198 blobs 1528141.5 MB readover ~20 min of agent work + the bench.--vision offalone recovers 33 → 45 tok/s.Net: on 12 GB the recipe closes ~85% of the gap, and the rest looks like the larger expert slots + bigger reserve leaving fewer experts on the card. I'm staying pinned to 0.1.65 for now; happy to test #6943 / #6089 or any build on this card.
rugabunda commentedon Nov 25, 2026
@Niko1221 — adding a 12 GiB sm_86 datapoint and a sub-lever that I think explains the
<= 13 GiB + >= 8 pool workersslice of this regression. (Credit to @gtrak's bisect tod28c053e6and @iforevans' TC parity run, which this is consistent with.)TL;DR
On an RTX 3080 Ti 12 GiB (Windows WDDM, sm_86), the 0.1.66 decode drop is caused by
d28c053e6auto-enablingSTRATA_L3_PF, which also turns on the expert-pool staticslices (
want_static = want_pf || ...). Static slicing alone reproduces the slowdown, andthe L3 prefetch cannot run without it.
STRATA_L3_PF=0restores 0.1.64-level decode in apaired A/B. This is a different sub-lever from @gtrak's 24 GiB pinning finding — that card is
Setup
--expert-cache 5000 --vram-reserve-mib 768 --pool-workers 8 --spec 6 --kv int8, ctx 262144terminal/tools/ab_engine.pyshape; arms alternate per round), thinking ON, 1024 out, mediansPaired A/B (drift-cancelled, 2 rounds)
STRATA_L3_PF=0STRATA_L3_PF=0+STRATA_CACHE_PIN_FRAC=0A second run reproduced the same shape more sharply: stock 67.6 / 64.2 / 59.8 / 59.1 vs
L3_PF=091.8 / 86.8 / 84.3 / 86.8.Fresh-boot
standard-v1withSTRATA_L3_PF=0: short 76.3 / 4k 76.5 / 16k 82.0,sanity 12/12 (21/21 requests, 0 failed; report
87f72005, nonconforming only because thecommit is unknown and
--skip-model-hash). The report states the server had answered no requestbefore the run. That is back in the 0.1.64 fresh band (75.1 / 74.8 / 75.8; stock 0.1.68 was
49.3 / 44.2 / 46.3,
e5878e19).Power (user-observed, not logged): GPU power during thinking/answers went from ~270 W on the
static-slice build to ~350 W with
L3_PF=0— the GPU was being starved before and now reachesits power limit.
Corroboration (12 GiB, shipped 0.1.67): @plsfullmarkprofessor reports a 4070 Ti 12 GiB on
0.1.67 still far below 0.1.65 (short 40.4 vs 58.3; 27K 33.4 vs 51.8) and that the #6799 recipe
(pin/adapt/expert-cache) recovers ~85% but not all — while noting #6948 only gates pinning above
16 GiB. That is the remaining gap this
L3_PF=0lever closes:l3_pf_auto_defaultfires on≤13 GiB independently of pinning, so #6948 does not reach these cards.
Why it fires here (source + isolation)
d28c053e6gated the auto-default inl3_pf_auto_defaulton<= 13 GiB,> 50%hostexperts,
>= 8pool workers — true for this card at--pool-workers 8.generate.cpp:10497want_static = want_pf || ...;generate.cpp:10503sets up theprefetch only
if (want_pf && pool.static_slices());pool.cpp:1621prefetch_nextreturns unless
static_slices_. So the prefetch is built on the static slices and cannotrun without them.
STRATA_L3_PF=0 STRATA_POOL_STATIC=1(static slices on, prefetch off) is stillslow (77.0 / 69.8 / 64.2 / 72.2 on the same rig), while
STRATA_L3_PF=0(both off) is fast.So the static slices are the cost, not the L3 prefetch itself.
STRATA_ADAPT_FETCH=0(no help), hit rate/slot count (0.1.68has more slots and a higher thinking-on hit rate), VRAM pressure, TC read, expert count.
--spec 0is illegal on this IQ pack (needs>= 2).Fix today (no rebuild)
Set in the run config / preset:
L3_PF=0alone recovers to the 0.1.64 band; addingPIN_FRAC=0is a wash overall and alittle better on chat2/long.
Limits
standard-v1is87f72005(theearlier
bd07b204was warm).static_slices_); "static slices are the cost" is inferred from the prefetch-off arm.OS/WDDM + rule-firing explanation as unconfirmed until a same-card driver A/B.
> 16 GiBpinning ([Engine] keep low-VRAM tiny-cache pinning off above 16 GiB #6948) or the WDDM shrink ([Engine] fix long-prompt slowdown when the WDDM expert cache shrinks #6943 / [Engine] Cap WDDM expert cache shrink step to 256 MiB to avoid VRAM over-reduction #6089);it complements them. Note [Engine] keep low-VRAM tiny-cache pinning off above 16 GiB #6948 only gates pinning above 16 GiB, so
<= 13 GiBcards keepthis behavior and still need the L3 fix.
Ask
@Niko1221 — is the 0.1.66
l3_pf_auto_defaultmeant to arm on<= 13 GiBdesktop cards with8 pool workers? Options to consider:
(a) make
STRATA_L3_PFopt-in again for consumer desktops,(b) stop deriving
want_staticfromwant_pf, and keep work-stealing while prefetching,(c) gate the auto-default by CPU class, the way #6948 gates pinning by VRAM.
Happy to run a build and open a focused
[Engine]PR with the tests if that direction iswanted.
iforevans commentedon Nov 25, 2026
Independent confirmation of the source reading in @rugabunda's analysis, from our tree (0.2.21 /
d46f5f268, Linux):generate.cpp:want_static = want_pf || (STRATA_POOL_STATIC …)— the auto-default forces static slices on; there is no prefetch without them.want_pf && pool.static_slices(), andprefetch_nextreturns unlessstatic_slices_.So on a ≤13 GiB + ≥8-worker host the auto-default switches on several mechanisms at once (L3 prefetch, static slices, plus the cache/pinning interactions #6821 documents). That matches what we saw on the TC half of this thread: the per-release decode deltas on small-VRAM cards are compound, and single-arm A/Bs of the whole flag keep attributing the cost to the wrong sub-lever. Between the isolation arms here (static-on/pf-off still slow) and #6821's worker-threshold data, decoupling
want_staticfromwant_pfand gating the default per-machine looks like the direction that preserves the #6550 win without re-pricing every card. Our 2x A6000 host fails every gate (fully resident), so we can't test the prefetch itself — but the in-tree reading above is exact.