Skip to content

[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

Open

Description

@rugabunda

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.

0.2.20 only boots because of PR #6714

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

Activity

  1. kennethpiu commented on Nov 23, 2026

    @kennethpiu

    `

    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

    ItemValue
    GPURTX 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)
    CPU / RAMi7-14700F, 96 GB
    OSWindows 11 (10.0.26200)
    Strataterminal 0.2.20
    Modelqwen3.8-flash-next-unsloth-ud-iq4_xs (UD-IQ4_XS), context 262144
    Launchstrata launch --preset iq4xs --parallel 1 --tune quick --retune --yes --no-tui
    0.1.66 additionally: --set STRATA_HC_Q8_TC=0 --set STRATA_HC_Q8_BF16TC=0
    Quick tune reported "already fastest" on both engines
    Benchstrata bench run --url http://127.0.0.1:8080 --suite standard-v1 --no-start, machine otherwise idle

    Without the workaround

    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)

    CaseMetric0.1.620.1.66 + workaround
    shortdecode tok/s63.6 (59.8–68.7)63.9 (62.2–73.3)
    shortTTFT s0.660.61
    prompt-4kprompt tok/s1609.81607.9
    prompt-4kdecode tok/s59.6 (54.8–59.9)64.6 (61.2–68.4)
    prompt-4kTTFT s2.582.59
    prompt-16kprompt tok/s2633.32673.2
    prompt-16kdecode tok/s62.8 (62.0–63.5)60.7 (57.8–63.5)
    prompt-16kTTFT s6.276.20
    —expert cache slots (engine log)4,5444,401
    —sanity checks12/1212/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.
    • 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.
    `
  2. ByteBrainMaster commented on Nov 23, 2026

    @ByteBrainMaster

    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
    Launch saved preset: --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 clients
    Engine switch 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.

    Engine state, from the engine log

    Engine expert cache slots VRAM free with everything loaded decode cache hit rate (median of my runs)
    0.1.57 6,625 / 6,502 701 MiB 92.4–93.6% (n=18)
    0.1.65 6,502 (or 5,932 at a 1,280 MiB reserve) 843 MiB 92.9–93.2% (n=28)
    0.1.66 6,625 / 6,502 1,617 MiB 89.7–90.1% (n=18)

    Two observations that may narrow it down:

    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.

  3. iforevans commented on Nov 23, 2026

    @iforevans

    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:

    • 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.
    • The only axis between your run and ours is the TC HC read. Yours has it working ([Engine] fix fused_gr Q8 TC kernels calling __ldg on shared memory (q8_smem_ld16) #6714 restores it); ours has it switched off. That fits a TC read costing decode on 84-SM sm_86 parts rather than a memory-headroom story.

    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.

  4. chrisulbrich commented on Nov 23, 2026

    @chrisulbrich

    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:

    prompt tokens decode t/s
    69 48.3 / 61.2 → 44.3 / 61.1
    29,401 66.5 / 67.5 → 66.6 / 72.5
    117,617 68.4 / 70.6 → 65.4 / 72.7

    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.

  5. gtrak commented on Nov 23, 2026

    @gtrak

    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 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:

    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:

    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).

  6. NNG9y1PQdXl commented on Nov 24, 2026

    @NNG9y1PQdXl

    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

    test t/s accept % draft len
    pp16384 2248 - -
    tg conv 41 73.6 1.97
    tg struct 68 98.5 6.92
    tg prose 56 70.0 1.72
  7. gtrak commented on Nov 24, 2026

    @gtrak

    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.

  8. iforevans commented on Nov 24, 2026

    @iforevans

    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.

  9. iforevans commented on Nov 24, 2026

    @iforevans

    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.

  10. added a commit that references this issue on Nov 24, 2026
  11. iforevans commented on Nov 24, 2026

    @iforevans

    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.)

  12. satwareAG-ironMike commented on Nov 24, 2026

    @satwareAG-ironMike

    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.

  13. plsfullmarkprofessor commented on Nov 24, 2026

    @plsfullmarkprofessor

    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.

    Config short decode 27K decode experts in GPU cache free VRAM at request
    0.1.65 (2 launches) 58.3 51.8 1240 ~550 MiB
    0.1.67 as shipped 40.4 33.4 1023 —
    0.1.67 + STRATA_CACHE_PIN_FRAC=0 STRATA_HC_Q8=0 --adapt-every 4 --adapt-swaps 96 --adapt-decay 0.70 + --expert-cache 1240 51.7 49.4 1301 57 MiB
    same, --expert-cache auto 47.6 44.6 911 ~990 MiB
    0.1.67 + --vision off (no recipe) 49.2 44.9 1045 —

    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.

  14. rugabunda commented on Nov 25, 2026

    @rugabunda
    Author

    @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
    Model Qwen3.8-Flash-Next UD-IQ2_XS (native IQ2_XS pack, MTP)
    Engines 0.1.68 (v0.2.21.1 source) vs 0.1.64 (v0.2.18) reference
    Config --expert-cache 5000 --vram-reserve-mib 768 --pool-workers 8 --spec 6 --kv int8, ctx 262144
    Harness 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:10497 want_static = want_pf || ...; generate.cpp:10503 sets up the
      prefetch only if (want_pf && pool.static_slices()); pool.cpp:1621 prefetch_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

    Ask

    @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.

  15. iforevans commented on Nov 25, 2026

    @iforevans

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions