[GH-ISSUE #4778] [Engine] 0.1.54 decode -7..-14% vs 0.1.52 on sm_89 (RTX 4090 D), four interleaved A/B boots, IQ3_S #2192

Open
opened 2026-11-04 01:57:22 +07:00 by bsakaguchi · 15 comments
Owner

Originally created by @jy02375437-max on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4778

Area

[Engine] — decode performance regression between engine 0.1.52 and 0.1.54 on sm_89 (Qwen line).

Desktop app, Terminal or source?

Official engine packages (Windows CUDA 13 release tarballs), started via serve/server.py with the same run config and env.

Reproduction status

Reproduced: four interleaved boots on 2026-10-30 (0.1.52 ×2, 0.1.54 ×2), same config/env/corpus, per-arm reproduction within ±2%. Follow-up on 2026-10-31: all-xhigh triangle (0.1.52 / 0.1.54 / 0.1.55, single boot per arm) — see the correction comment below for the acceptance-based reading.

Graphics card, memory and system

RTX 4090 D 48 GB (hardware memory-modded, AD102, driver 617.42) · Windows 11 26200 · Ryzen AI Max+ 395 (CPU pool 15 workers) · 127 GB RAM · PCIe probe 5.1 GB/s host→device in every boot.


What happened

Engine 0.1.54 (0.2.8) is 7–14% slower at decode than 0.1.52 (0.2.7) on sm_89, at every context length I measure, while prompt processing is unchanged. Measured with four interleaved boots on the same machine, same run config and same env (only the engine binary differs): A (0.1.52) → B (0.1.54) → A2 → B2 on 2026-10-30.

Suite per boot (tools/strata_bench.py payload family): warm 140K, then decode 6K×7 / 70K×5 / 120K×3 (medians, tok/s, with MTP accept), shortread 30/100/200/500/1500, cachehit 140K.

arm 6K decode 70K decode 120K decode accept (6K reps)
0.1.52 boot 1 197.9 166.7 177.2 79–81%
0.1.52 boot 2 195.6 168.7 177.9 79–80%
0.1.54 boot 1 172.5 155.2 152.8 70–75%
0.1.54 boot 2 171.4 151.9 158.9 70–75%
  • Decode: −13% (6K) / −9% (70K) / −12% (120K); each arm reproduces within ±2% across its two boots, so this is not boot lottery.
  • MTP acceptance drops 79–81% → 70–75% at the same --spec 4 --spec-min-p 0.5.
  • Prompt processing unchanged: warm 140K ~39 s in both; cachehit 140K prompt_ms median 221–229 ms in both arms.
  • Short fresh prompts: TTFT ~255 ms (0.1.52) → ~360 ms (0.1.54).
  • Boot time identical (47 s); expert slots 19,586 → 19,452.

Model: Qwen3.8-Flash-Next, ISTA-DASLab GSQ-RCO IQ3_S (native + PLE second shard), --kv int8 --kv-resident 32768, --spec 4 --spec-min-p 0.5 --mtp rt --mtp-hnorm stream, --prefill auto:32768, --expert-cache auto (19.6k of 24,576 expert slots resident), env STRATA_GR_V3=1 STRATA_PREFILL_CPU_SHARE=auto STRATA_KV_PREFETCH=1 STRATA_ATTN_DAILY=1 STRATA_DEQUANT_WIDE=1.

My reading of where the speed went: 0.2.7's release notes said RTX 40 cards (sm_89) got "measured speed tables for the quantised matrix products" plus the wide/split hyper-connection reads, and the +6–8% decode I measured when 0.1.52 shipped came from those. In the 0.2.8 sources, src/core/nv_defaults.cpp (checked at both the v0.2.7 and v0.2.8 tags) has tables for sm_86, sm_60 and sm_121 but no sm_89 entry any more, and I could not find an env switch that brings the 0.1.52 sm_89 behaviour back on the 0.1.54 binary (STRATA_DEFAULTS=026 is the only master switch and it is the older, slower path). The 0.1.54 numbers here sit at the 0.2.6-era level.

This may be the same family as #4482 (Ada cards, large drop after 0.1.44) — my card is near-full-residency single-GPU, theirs stream experts, but both regress on sm_89 across the same window of versions.

I have stayed on 0.1.52 for production. Happy to test a 0.2.8.1 or any candidate build with the same four-boot protocol.

Strata version, GPU, OS

0.1.52 vs 0.1.54 (engine 0.1.54 build 8c1aea4bca1b) · RTX 4090 D 48 GB (hardware memory-modded, AD102, driver 617.42) · Windows 11 · Ryzen AI Max+ 395 (CPU pool 15 workers) · 127 GB RAM · PCIe probe 5.1 GB/s host→device in every boot

Engine log excerpt (boot differences are nil; both engines log the same plan)

0.1.52: strata generate: PCIe probe: 5.1 GB/s host->device (best of 5.1 5.1 5.1 5.1) -> pcie_frac 0.14
0.1.52: strata generate: expert cache 19599 slots, 37.33 GiB of VRAM
0.1.54: strata generate: PCIe probe: 5.1 GB/s host->device (best of 5.1 5.1 5.1 5.1) -> pcie_frac 0.14
0.1.54: strata generate: expert cache 19586 slots, 37.31 GiB of VRAM

Validation

  • Exact commands: python ab_run.py suite a152b1|a152b2|b154b1|b154b2 (fixed payloads, same nonce corpus, fresh 140K warm per boot), engines started via the same run config with only exe/vision.exe/log path pointed at engine-0.1.54\.
  • Revisions: engine 0.1.52 (official Windows CUDA 13 package, BUILD a42cc3d7df70) vs engine 0.1.54 (official Windows CUDA 13 package, sha256 bacff012… verified, BUILD 8c1aea4bca1b).
  • Environment: Windows 11 26200, CUDA 13 runtime shipped in the packages, driver 617.42, single GPU, no other GPU load during runs.
  • Passed: prompt/cachehit parity within noise; per-arm two-boot reproduction within ±2%.
  • Failed: decode at all three lengths on 0.1.54; MTP acceptance; short-read TTFT.
  • Not run: quality suite on 0.1.54 (rejected on speed before gating); spec-6 variants on 0.1.54.
Originally created by @jy02375437-max on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4778 ### Area [Engine] — decode performance regression between engine 0.1.52 and 0.1.54 on sm_89 (Qwen line). ### Desktop app, Terminal or source? Official engine packages (Windows CUDA 13 release tarballs), started via `serve/server.py` with the same run config and env. ### Reproduction status Reproduced: four interleaved boots on 2026-10-30 (0.1.52 ×2, 0.1.54 ×2), same config/env/corpus, per-arm reproduction within ±2%. Follow-up on 2026-10-31: all-xhigh triangle (0.1.52 / 0.1.54 / 0.1.55, single boot per arm) — see the correction comment below for the acceptance-based reading. ### Graphics card, memory and system RTX 4090 D 48 GB (hardware memory-modded, AD102, driver 617.42) · Windows 11 26200 · Ryzen AI Max+ 395 (CPU pool 15 workers) · 127 GB RAM · PCIe probe 5.1 GB/s host→device in every boot. --- ### What happened Engine 0.1.54 (0.2.8) is **7–14% slower at decode than 0.1.52 (0.2.7) on sm_89**, at every context length I measure, while prompt processing is unchanged. Measured with four interleaved boots on the same machine, same run config and same env (only the engine binary differs): A (0.1.52) → B (0.1.54) → A2 → B2 on 2026-10-30. Suite per boot (tools/strata_bench.py payload family): warm 140K, then decode 6K×7 / 70K×5 / 120K×3 (medians, tok/s, with MTP accept), shortread 30/100/200/500/1500, cachehit 140K. | arm | 6K decode | 70K decode | 120K decode | accept (6K reps) | |---|---|---|---|---| | 0.1.52 boot 1 | 197.9 | 166.7 | 177.2 | 79–81% | | 0.1.52 boot 2 | 195.6 | 168.7 | 177.9 | 79–80% | | 0.1.54 boot 1 | 172.5 | 155.2 | 152.8 | 70–75% | | 0.1.54 boot 2 | 171.4 | 151.9 | 158.9 | 70–75% | - Decode: **−13% (6K) / −9% (70K) / −12% (120K)**; each arm reproduces within ±2% across its two boots, so this is not boot lottery. - MTP acceptance drops 79–81% → 70–75% at the same `--spec 4 --spec-min-p 0.5`. - Prompt processing unchanged: warm 140K ~39 s in both; cachehit 140K prompt_ms median 221–229 ms in both arms. - Short fresh prompts: TTFT ~255 ms (0.1.52) → ~360 ms (0.1.54). - Boot time identical (47 s); expert slots 19,586 → 19,452. Model: Qwen3.8-Flash-Next, ISTA-DASLab GSQ-RCO IQ3_S (native + PLE second shard), `--kv int8 --kv-resident 32768`, `--spec 4 --spec-min-p 0.5 --mtp rt --mtp-hnorm stream`, `--prefill auto:32768`, `--expert-cache auto` (19.6k of 24,576 expert slots resident), env `STRATA_GR_V3=1 STRATA_PREFILL_CPU_SHARE=auto STRATA_KV_PREFETCH=1 STRATA_ATTN_DAILY=1 STRATA_DEQUANT_WIDE=1`. My reading of where the speed went: 0.2.7's release notes said RTX 40 cards (sm_89) got "measured speed tables for the quantised matrix products" plus the wide/split hyper-connection reads, and the +6–8% decode I measured when 0.1.52 shipped came from those. In the 0.2.8 sources, `src/core/nv_defaults.cpp` (checked at both the v0.2.7 and v0.2.8 tags) has tables for sm_86, sm_60 and sm_121 but **no sm_89 entry any more**, and I could not find an env switch that brings the 0.1.52 sm_89 behaviour back on the 0.1.54 binary (`STRATA_DEFAULTS=026` is the only master switch and it is the older, slower path). The 0.1.54 numbers here sit at the 0.2.6-era level. This may be the same family as #4482 (Ada cards, large drop after 0.1.44) — my card is near-full-residency single-GPU, theirs stream experts, but both regress on sm_89 across the same window of versions. I have stayed on 0.1.52 for production. Happy to test a 0.2.8.1 or any candidate build with the same four-boot protocol. ### Strata version, GPU, OS 0.1.52 vs 0.1.54 (engine 0.1.54 build `8c1aea4bca1b`) · RTX 4090 D 48 GB (hardware memory-modded, AD102, driver 617.42) · Windows 11 · Ryzen AI Max+ 395 (CPU pool 15 workers) · 127 GB RAM · PCIe probe 5.1 GB/s host→device in every boot ### Engine log excerpt (boot differences are nil; both engines log the same plan) ```text 0.1.52: strata generate: PCIe probe: 5.1 GB/s host->device (best of 5.1 5.1 5.1 5.1) -> pcie_frac 0.14 0.1.52: strata generate: expert cache 19599 slots, 37.33 GiB of VRAM 0.1.54: strata generate: PCIe probe: 5.1 GB/s host->device (best of 5.1 5.1 5.1 5.1) -> pcie_frac 0.14 0.1.54: strata generate: expert cache 19586 slots, 37.31 GiB of VRAM ``` ### Validation - Exact commands: `python ab_run.py suite a152b1|a152b2|b154b1|b154b2` (fixed payloads, same nonce corpus, fresh 140K warm per boot), engines started via the same run config with only `exe`/`vision.exe`/log path pointed at `engine-0.1.54\`. - Revisions: engine 0.1.52 (official Windows CUDA 13 package, BUILD `a42cc3d7df70`) vs engine 0.1.54 (official Windows CUDA 13 package, sha256 `bacff012…` verified, BUILD `8c1aea4bca1b`). - Environment: Windows 11 26200, CUDA 13 runtime shipped in the packages, driver 617.42, single GPU, no other GPU load during runs. - Passed: prompt/cachehit parity within noise; per-arm two-boot reproduction within ±2%. - Failed: decode at all three lengths on 0.1.54; MTP acceptance; short-read TTFT. - Not run: quality suite on 0.1.54 (rejected on speed before gating); spec-6 variants on 0.1.54.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 31, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".
  • Fill in "Area".
  • Fill in "Desktop app, Terminal or source?".
  • Fill in "Reproduction status".
  • Fill in "Graphics card, memory and system".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6538246532 --> @github-actions[bot] commented on GitHub (Oct 31, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". - [ ] Fill in "Area". - [ ] Fill in "Desktop app, Terminal or source?". - [ ] Fill in "Reproduction status". - [ ] Fill in "Graphics card, memory and system". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@udqe commented on GitHub (Oct 31, 2026):

Same card family as you (2x RTX 4090, AD102, sm_89, CUDA13, Windows) on both sides of your comparison, so two things we could check locally. We are NOT a control for the delta itself - see the last paragraph for why - but the code reading looks off, and the acceptance number in your own table points somewhere else.

The sm_89 table was not "gone in v0.2.8" - it was never there, and an RTX 4090 never reads any of these tables. In src/core/nv_defaults.cpp the auto-table branch is if (mj == 8 && mn == 6) (plus sm_60 and sm_121). An RTX 4090 is major=8, minor=9, so mn == 6 is false and the branch is skipped. We checked all three sources:

  • your v0.2.7 tag: 0 hits for sm_89/890 (the table is sm_86 (Ampere), sm_60, sm_121);
  • GitHub main head: 0 hits;
  • our installed 0.2.8 tree: 0 hits, same three tables.

And the runtime confirms it on our box: our 4090 logs never carry the strata: sm_86 ... speed switches on by default line (SM86_PERF/speed switches = 0 occurrences across every boot) - i.e. a 4090 took no auto-table speed switches on v0.2.7 either, so there is no sm_89 behaviour that v0.2.8 could have removed. The RTX 40 "measured speed tables" in the 0.2.7 notes would be sm_86 (Ampere) entries applied to some other part, not an sm_89 table for the 4090. So STRATA_DEFAULTS=026 (the master switch) and the absent sm_89 entry are both red herrings for your card - turning them can't restore what was never on.

Where your own table does point: acceptance, not the table. You measured accept 79-81% (0.1.52) -> 70-75% (0.1.54) at the same --spec 4 --spec-min-p 0.5. We just posted a per-request acceptance->decode measurement in #4768, on the same engine family: on our rig decode tracks draft acceptance almost mechanically (JSON 90-92% accept ~210 tok/s vs math 77-79% ~136 tok/s), and acceptance moving by a few points moves decode by more than the box floor. A 79->72% acceptance drop is ~1.10x on its own - about your whole delta - without needing any quant-table story. If something in 0.1.53/0.1.54 changed the MTP draft/verify path so the draft matches less often at fixed flags, that single line explains -9..-14% decode with prompt/cachehit/TTFT untouched. nv_defaults does not touch the MTP path at all, so the table hunt and the acceptance drop are independent, and only the second one moves decode.

Why we are not a control for your -9..-14%, stated plainly so nobody over-reads us: our decode across the versions was 111.4 t/s on an 0.1.52-era config vs 95-110 now, which looks like no regression - but those two numbers are not an engine A/B. Between them we changed a dozen knobs (layer split, arena pin 40, stage trim, prefill margin, PCIe frac, the MTP-stage0 opt-in) and this box carries a +-10% day-to-day spread we documented in #4610, so a clean +-9% would be buried in that anyway. Treat our cross-version figure as "not evidence either way", not a counterexample.

One thing you may want before chasing builds: is the acceptance drop reproducible at a fixed draft corpus (same prompts, same seeds) across a fresh boot pair, so it isn't the payload mix? If it holds, an A/B of just the MTP/verify path between the two official packages would localize it faster than the defaults table. Standing by the four-boot protocol; if a 0.2.8.1 candidate changes the draft/verify path we'll run it the same way.

(AI-assisted on our side - the model served by this repo's engine read its own installed source tree and boot logs; all figures local. sm_89 static check is code-reading, not a speed claim.)

<!-- gh-comment-id:6538621576 --> @udqe commented on GitHub (Oct 31, 2026): Same card family as you (2x RTX 4090, AD102, sm_89, CUDA13, Windows) on both sides of your comparison, so two things we could check locally. We are NOT a control for the delta itself - see the last paragraph for why - but the code reading looks off, and the acceptance number in your own table points somewhere else. **The sm_89 table was not "gone in v0.2.8" - it was never there, and an RTX 4090 never reads any of these tables.** In `src/core/nv_defaults.cpp` the auto-table branch is `if (mj == 8 && mn == 6)` (plus sm_60 and sm_121). An RTX 4090 is `major=8, minor=9`, so `mn == 6` is false and the branch is skipped. We checked all three sources: - your v0.2.7 tag: **0** hits for `sm_89`/`890` (the table is `sm_86 (Ampere)`, `sm_60`, `sm_121`); - GitHub main head: **0** hits; - our installed 0.2.8 tree: **0** hits, same three tables. And the runtime confirms it on our box: our 4090 logs never carry the `strata: sm_86 ... speed switches on by default` line (`SM86_PERF`/`speed switches` = 0 occurrences across every boot) - i.e. a 4090 took **no** auto-table speed switches on v0.2.7 either, so there is no sm_89 behaviour that v0.2.8 could have removed. The RTX 40 "measured speed tables" in the 0.2.7 notes would be sm_86 (Ampere) entries applied to some other part, not an sm_89 table for the 4090. So `STRATA_DEFAULTS=026` (the master switch) and the absent sm_89 entry are both red herrings for your card - turning them can't restore what was never on. **Where your own table does point: acceptance, not the table.** You measured accept 79-81% (0.1.52) -> 70-75% (0.1.54) at the *same* `--spec 4 --spec-min-p 0.5`. We just posted a per-request acceptance->decode measurement in #4768, on the same engine family: on our rig decode tracks draft acceptance almost mechanically (JSON 90-92% accept ~210 tok/s vs math 77-79% ~136 tok/s), and acceptance moving by a few points moves decode by more than the box floor. A 79->72% acceptance drop is ~1.10x on its own - about your whole delta - without needing any quant-table story. If something in 0.1.53/0.1.54 changed the MTP draft/verify path so the draft matches less often at fixed flags, that single line explains -9..-14% decode with prompt/cachehit/TTFT untouched. `nv_defaults` does not touch the MTP path at all, so the table hunt and the acceptance drop are independent, and only the second one moves decode. Why we are not a control for your -9..-14%, stated plainly so nobody over-reads us: our decode across the versions was 111.4 t/s on an 0.1.52-era config vs 95-110 now, which looks like no regression - but those two numbers are **not** an engine A/B. Between them we changed a dozen knobs (layer split, arena pin 40, stage trim, prefill margin, PCIe frac, the MTP-stage0 opt-in) and this box carries a +-10% day-to-day spread we documented in #4610, so a clean +-9% would be buried in that anyway. Treat our cross-version figure as "not evidence either way", not a counterexample. One thing you may want before chasing builds: is the acceptance drop reproducible at a *fixed* draft corpus (same prompts, same seeds) across a fresh boot pair, so it isn't the payload mix? If it holds, an A/B of just the MTP/verify path between the two official packages would localize it faster than the defaults table. Standing by the four-boot protocol; if a 0.2.8.1 candidate changes the draft/verify path we'll run it the same way. (AI-assisted on our side - the model served by this repo's engine read its own installed source tree and boot logs; all figures local. sm_89 static check is code-reading, not a speed claim.)
Author
Owner

@jy02375437-max commented on GitHub (Oct 31, 2026):

Thank you @udqe — your reading is correct, and our nv_defaults attribution was wrong. Correcting on the record:

  • We re-checked both tags and agree: nv_defaults.cpp has no sm_89 branch at v0.2.7 or v0.2.8, so there was never an auto-table for a 4090 to lose. STRATA_MMVQ_IL_89 is present as a string in both our 0.1.52 and 0.1.54 binaries (nothing was removed there either), and #3453 already measured that table at ~zero on a real 4090 (86.1→85.3). The "sm_89 fast paths removed in 0.2.8" line in our report should be disregarded.

  • Your acceptance pointer is the better lead, and the fixed-corpus condition you asked about is already met in our data: the suite re-sends the same nonce payload corpus every rep, and acceptance is the engine's own drafts-accepted/offered counter. Yesterday's four-boot A/B (same corpus, same flags, both arms duplicated) showed 79–81% → 70–75%.

  • We then ran an all-xhigh triangle today (same rig and protocol, one boot per arm; 6K×7/70K×5/120K×3 medians). The clean cell is 70K — engine-reported acceptance and decode:

    arm 70K accept 70K decode
    0.1.52 (two boots) 70–74% 161.7–162.3 tok/s
    0.1.54 65–72% (median 66) 153.3 tok/s (−5.5%)
    0.1.55 (v0.2.9 probe) 72–75% 163.8 tok/s (+1%)

    6K/120K single-boot spreads overlap at n=3 so we don't claim them. The 70K acceptance drop in 0.1.54 and its restoration in 0.1.55 are clean, which matches your hypothesis: something in the 0.1.53/0.1.54 draft/verify path made drafts match less often at fixed flags, and 0.1.55 reads like it restores it.

  • Practical note: on our quantized single-card workload a 0.1.55 probe lands at par or slightly above 0.1.52 (70K +1%, 120K +2–3% vs 156–158; cachehit 140K 226 ms vs 229–232 ms; slots 19,452 in both .54/.55 vs 19,586 on .52). We will run the full four-boot protocol plus quality gates on 0.1.55 before switching production, and can post the per-boot logs here if useful.

<!-- gh-comment-id:6543294932 --> @jy02375437-max commented on GitHub (Oct 31, 2026): Thank you @udqe — your reading is correct, and our nv_defaults attribution was wrong. Correcting on the record: - We re-checked both tags and agree: `nv_defaults.cpp` has no sm_89 branch at v0.2.7 or v0.2.8, so there was never an auto-table for a 4090 to lose. `STRATA_MMVQ_IL_89` is present as a string in both our 0.1.52 and 0.1.54 binaries (nothing was removed there either), and #3453 already measured that table at ~zero on a real 4090 (86.1→85.3). The "sm_89 fast paths removed in 0.2.8" line in our report should be disregarded. - Your acceptance pointer is the better lead, and the fixed-corpus condition you asked about is already met in our data: the suite re-sends the same nonce payload corpus every rep, and acceptance is the engine's own drafts-accepted/offered counter. Yesterday's four-boot A/B (same corpus, same flags, both arms duplicated) showed 79–81% → 70–75%. - We then ran an all-xhigh triangle today (same rig and protocol, one boot per arm; 6K×7/70K×5/120K×3 medians). The clean cell is 70K — engine-reported acceptance and decode: | arm | 70K accept | 70K decode | |---|---|---| | 0.1.52 (two boots) | 70–74% | 161.7–162.3 tok/s | | 0.1.54 | **65–72%** (median 66) | **153.3 tok/s (−5.5%)** | | 0.1.55 (v0.2.9 probe) | **72–75%** | **163.8 tok/s (+1%)** | 6K/120K single-boot spreads overlap at n=3 so we don't claim them. The 70K acceptance drop in 0.1.54 and its restoration in 0.1.55 are clean, which matches your hypothesis: something in the 0.1.53/0.1.54 draft/verify path made drafts match less often at fixed flags, and 0.1.55 reads like it restores it. - Practical note: on our quantized single-card workload a 0.1.55 probe lands at par or slightly above 0.1.52 (70K +1%, 120K +2–3% vs 156–158; cachehit 140K 226 ms vs 229–232 ms; slots 19,452 in both .54/.55 vs 19,586 on .52). We will run the full four-boot protocol plus quality gates on 0.1.55 before switching production, and can post the per-boot logs here if useful.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 31, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6543299589 --> @github-actions[bot] commented on GitHub (Oct 31, 2026): Thanks, this follows the format now.
Author
Owner

@Niko1221 commented on GitHub (Oct 31, 2026):

Thanks for the four-boot A/B, it is careful. We tried to reproduce it on the nearest card we have, an RTX A6000 (sm_86), with the real IQ3_S and the same flags. We built 0.2.7, 0.2.8 and 0.2.9 the same way and ran four rounds in rotated order. Decode and draft acceptance were the same in all three (158 tok/s on the first test prompt in every build, and the accepted-draft counts matched), and the long-prompt read was equal or slightly faster. So we do not see the loss on sm_86 on Linux, and we do not yet know why you see it. To be plain about what this does not cover: we tested on an A6000 on Linux with builds we compiled ourselves, so a difference in the Windows package (its build, compiler or driver) is not ruled out.

You are right that there is no sm_89 table. The 4090 never used the sm_86 one, so 0.2.8 did not remove anything. We have no sm_89 or Windows NVIDIA card to test on. Two things would help: the start log of one boot of each engine (the lines starting "strata generate:" and "strata:"), and one boot of 0.1.54 without your extra STRATA_* variables, in case one of them acts differently between the two engines. If someone with a 40-series card on Windows can run the same comparison, that would settle it. Until then 0.1.52 is a fine choice.

<!-- gh-comment-id:6547918064 --> @Niko1221 commented on GitHub (Oct 31, 2026): Thanks for the four-boot A/B, it is careful. We tried to reproduce it on the nearest card we have, an RTX A6000 (sm_86), with the real IQ3_S and the same flags. We built 0.2.7, 0.2.8 and 0.2.9 the same way and ran four rounds in rotated order. Decode and draft acceptance were the same in all three (158 tok/s on the first test prompt in every build, and the accepted-draft counts matched), and the long-prompt read was equal or slightly faster. So we do not see the loss on sm_86 on Linux, and we do not yet know why you see it. To be plain about what this does not cover: we tested on an A6000 on Linux with builds we compiled ourselves, so a difference in the Windows package (its build, compiler or driver) is not ruled out. You are right that there is no sm_89 table. The 4090 never used the sm_86 one, so 0.2.8 did not remove anything. We have no sm_89 or Windows NVIDIA card to test on. Two things would help: the start log of one boot of each engine (the lines starting "strata generate:" and "strata:"), and one boot of 0.1.54 without your extra STRATA_* variables, in case one of them acts differently between the two engines. If someone with a 40-series card on Windows can run the same comparison, that would settle it. Until then 0.1.52 is a fine choice.
Author
Owner

@udqe commented on GitHub (Oct 31, 2026):

Picking up your per-boot-log offer with our own numbers first: we ran the .54-vs-.55 comparison on our rig last night with the two engines interleaved same-night, and one arm of your result does not reproduce here.

How it was staged (reproducible on Windows): both engine versions on disk, your config unchanged except the exe path - we kept 0.1.55 as a staged directory alongside 0.1.54 (sha256-verified against the release manifest in the package) and swapped which one the run-config launches, so every boot pair is same box, same model (UD-Q4_K_XL native), same 37-arg config (fixed split K22, pin 40 GiB, pipeline-windows 2, pcie-frac 0.20). Five boots: .54 baseline, .55, .55, .54, .55. Commit anchors: .54 = 8c1aea4bca1b, .55 = 99866a47a2 - the draft/verify path is inside that range, so this box does sit on the right side of your suspect window.

Decode: fresh-boot .54 median 102.0 tok/s (512-token continuations of one salted 150K prompt, five runs) vs the two .55 boots at 101.8 and 101.2. Absolute value under 1% - inside our +-10% day floor, so no claim in either direction on speed. Neither your +1% at 70K nor the -22.7% reported in #4826 (5070 box, n=1) reproduces here.

Acceptance is where the arm flips. On the same fixed prompts, per-request drafts accepted/ offered from the engine's own serve lines: fresh-boot .54 median 77.1% (range 72.4-81.4), the two .55 boots 73.9% and 75.1%. That is .55 about two points UNDER .54 at identical prompts - directionally opposite to your probe, where .55 restored 72-75 against .54's 65-72. Two honest limits before anyone reads that as a contradiction: (a) you hold the .52 side of the story with a fixed nonce corpus and we do not run .52 anymore, so we cannot confirm or deny a restoration - all we can say is .55 is not above .54 here; (b) absolute acceptance is not comparable across boxes (your corpus is 70K real tasks, ours a synthetic 150K prompt), only the within-box sign is.

Why this still matters for your root-cause hunt: if .55's draft/verify change is universal, our box should have shown the same upward step. It did not, on two model-prompt shapes and two needle probes (both 2/2, plus a 12/12 constraint rubric on both arms - no quality delta either). So whatever moved your acceptance between .52 and .54 may be partly still in play at .55 on other configs, and a maintainer "fixed in 0.1.55" closure would be premature on our evidence. Your four-boot protocol plus quality gates before switching production remains the right call on both boxes.

Two method traps we hit, free for your next pass: the FIRST long request after a boot behaves differently on both engines (one of ours came back a conversational stub instead of a continuation - we first misattributed it to .55 until a fresh .54 boot did the same thing), so compare arms at equal position in the boot; and if you are parsing your own logs for acceptance, drafts accepted X of Y is printed per request on the serve line itself, which beat any metrics ring-buffer for us.

(AI-assisted as usual: the model under test drafted this from its own logs; all numbers are from the five boots named above, one box, one night.)

<!-- gh-comment-id:6548697205 --> @udqe commented on GitHub (Oct 31, 2026): Picking up your per-boot-log offer with our own numbers first: we ran the .54-vs-.55 comparison on our rig last night with the two engines interleaved same-night, and one arm of your result does not reproduce here. How it was staged (reproducible on Windows): both engine versions on disk, your config unchanged except the exe path - we kept 0.1.55 as a staged directory alongside 0.1.54 (sha256-verified against the release manifest in the package) and swapped which one the run-config launches, so every boot pair is same box, same model (UD-Q4_K_XL native), same 37-arg config (fixed split K22, pin 40 GiB, pipeline-windows 2, pcie-frac 0.20). Five boots: .54 baseline, .55, .55, .54, .55. Commit anchors: .54 = 8c1aea4bca1b, .55 = 99866a47a2b8 - the draft/verify path is inside that range, so this box does sit on the right side of your suspect window. Decode: fresh-boot .54 median 102.0 tok/s (512-token continuations of one salted 150K prompt, five runs) vs the two .55 boots at 101.8 and 101.2. Absolute value under 1% - inside our +-10% day floor, so no claim in either direction on speed. Neither your +1% at 70K nor the -22.7% reported in #4826 (5070 box, n=1) reproduces here. Acceptance is where the arm flips. On the same fixed prompts, per-request `drafts accepted/ offered` from the engine's own serve lines: fresh-boot .54 median 77.1% (range 72.4-81.4), the two .55 boots 73.9% and 75.1%. That is .55 about two points UNDER .54 at identical prompts - directionally opposite to your probe, where .55 restored 72-75 against .54's 65-72. Two honest limits before anyone reads that as a contradiction: (a) you hold the .52 side of the story with a fixed nonce corpus and we do not run .52 anymore, so we cannot confirm or deny a *restoration* - all we can say is .55 is not *above* .54 here; (b) absolute acceptance is not comparable across boxes (your corpus is 70K real tasks, ours a synthetic 150K prompt), only the within-box sign is. Why this still matters for your root-cause hunt: if .55's draft/verify change is universal, our box should have shown the same upward step. It did not, on two model-prompt shapes and two needle probes (both 2/2, plus a 12/12 constraint rubric on both arms - no quality delta either). So whatever moved your acceptance between .52 and .54 may be partly still in play at .55 on other configs, and a maintainer "fixed in 0.1.55" closure would be premature on our evidence. Your four-boot protocol plus quality gates before switching production remains the right call on both boxes. Two method traps we hit, free for your next pass: the FIRST long request after a boot behaves differently on both engines (one of ours came back a conversational stub instead of a continuation - we first misattributed it to .55 until a fresh .54 boot did the same thing), so compare arms at equal position in the boot; and if you are parsing your own logs for acceptance, `drafts accepted X of Y` is printed per request on the serve line itself, which beat any metrics ring-buffer for us. (AI-assisted as usual: the model under test drafted this from its own logs; all numbers are from the five boots named above, one box, one night.)
Author
Owner

@udqe commented on GitHub (Oct 31, 2026):

The 40-series-on-Windows comparison you asked for, run during the same night you asked: a bare-env engine ladder 0.1.52 -> 0.1.54 -> 0.1.55 -> 0.1.52 on 2x RTX 4090, Windows 11 (26200), driver 610.88, CUDA13 packages, UD-Q4_K_XL native pack.

Staging: the three engine versions on disk side by side, swapped by exe path in the run config only - every other byte of the config identical (37 args: pw 2, pcie-frac 0.20, fixed layer split 22, spec 4, reserve 700/972). Bare on every arm means the env block we normally run is REMOVED - those eight keys (HC_Q8, STAGE_TRIM, ROUTE_TAIL_SKIP, PIN_BY_NEED, MTP_STAGE0, ARENA_PIN_GIB, ROUTE_PRIOR, PREFILL_LM_MARGIN_MIB) are ours, none are defaults, so this is your "0.1.54 without the extra STRATA_* variables" boot, plus the same bare shape on the other two engines. Per boot: arm verified from the launch line (exe path + engine version in /metrics), then one window: 6 x (salted cold 150K + 512 tok), median = decision axis; 2 x 150K and 2 x 32K prefills descriptive; acceptance from the per-request drafts accepted X of Y serve lines. Decision rule written before the data: claim a .52->.54 loss only if both pairings show .54 at least 5% slower AND acceptance >= 3 points lower.

arm DEC med accept med PF150 read hit opening
.52 102.8 78.2 3,015.8 84%
.54 107.8 75.4 2,944.4 75%
.55 111.3 77.3 2,920.4 69%
.52 (repeat) 108.4 75.6 2,989.8 70%

Verdict per the rule: null - no .52->.54 decode regression on Windows/4090, bare env. Pairing 1 (.54 vs first .52): .54 was 4.9% FASTER; pairing 2 (.54 vs the repeat): -0.6%. Acceptance gate fails too (deltas -2.8 then +0.2). Third null after your A6000/Linux rotation and our full-env .54/.55 pair two hours earlier.

The repeat boot is the number I would actually act on, though: the SAME engine, 45 minutes later, medians 102.8 -> 108.4 (+5.4%), within-boot run spread up to 30%, and hit-rate openings walking down boot by boot (84/75/69/70 - later boots start colder). Had we run no bracket, the same table reads as ".55 is 8% faster than .52" - a claim we would have been wrong to make. On this Windows box any single-boot cross-version delta under ~6% is box drift, and the ladder ordering above is drift, not version. The four-boot, arms-duplicated protocol in the original report is the right shape for this environment; that is the honest content of "settling it" from our side.

Start-log lines you asked for, from the bare boots, verbatim: all three engines print multi-GPU under WDDM: at most 8 GiB of the expert arena is pinned (STRATA_ARENA_PIN_GIB changes it) at default, so on Windows the bare arms pin 8 GiB regardless of version - if acceptance depends on residency, Windows bare boots share that condition. Full log block of any single boot available here on request.

Self-correction we owe the thread: my comment last evening read ".55 acceptance ~2 points below .54 at identical prompts". This ladder shows same-engine acceptance spanning 75.6-78.2 across boots, so that delta sits inside boot-to-boot noise - withdrawn as a direction, kept as an observation. And what this box cannot do: no 0.1.53 in our feed, IQ3_S not tested (native pack only), and your 79-81 absolute levels are not reachable here (different corpus, different quant) - only within-box signs.

(AI-assisted as usual: the model under test read its own logs and drafted this; four boots named 05:33/05:49/06:05/06:20 local, rules file written before the first window.)

<!-- gh-comment-id:6549502054 --> @udqe commented on GitHub (Oct 31, 2026): The 40-series-on-Windows comparison you asked for, run during the same night you asked: a bare-env engine ladder 0.1.52 -> 0.1.54 -> 0.1.55 -> 0.1.52 on 2x RTX 4090, Windows 11 (26200), driver 610.88, CUDA13 packages, UD-Q4_K_XL native pack. Staging: the three engine versions on disk side by side, swapped by exe path in the run config only - every other byte of the config identical (37 args: pw 2, pcie-frac 0.20, fixed layer split 22, spec 4, reserve 700/972). **Bare** on every arm means the env block we normally run is REMOVED - those eight keys (HC_Q8, STAGE_TRIM, ROUTE_TAIL_SKIP, PIN_BY_NEED, MTP_STAGE0, ARENA_PIN_GIB, ROUTE_PRIOR, PREFILL_LM_MARGIN_MIB) are ours, none are defaults, so this is your "0.1.54 without the extra STRATA_* variables" boot, plus the same bare shape on the other two engines. Per boot: arm verified from the launch line (exe path + engine version in /metrics), then one window: 6 x (salted cold 150K + 512 tok), median = decision axis; 2 x 150K and 2 x 32K prefills descriptive; acceptance from the per-request `drafts accepted X of Y` serve lines. Decision rule written before the data: claim a .52->.54 loss only if both pairings show .54 at least 5% slower AND acceptance >= 3 points lower. | arm | DEC med | accept med | PF150 read | hit opening | |---|---|---|---|---| | .52 | 102.8 | 78.2 | 3,015.8 | 84% | | .54 | 107.8 | 75.4 | 2,944.4 | 75% | | .55 | 111.3 | 77.3 | 2,920.4 | 69% | | .52 (repeat) | 108.4 | 75.6 | 2,989.8 | 70% | Verdict per the rule: **null - no .52->.54 decode regression on Windows/4090, bare env**. Pairing 1 (.54 vs first .52): .54 was 4.9% FASTER; pairing 2 (.54 vs the repeat): -0.6%. Acceptance gate fails too (deltas -2.8 then +0.2). Third null after your A6000/Linux rotation and our full-env .54/.55 pair two hours earlier. The repeat boot is the number I would actually act on, though: the SAME engine, 45 minutes later, medians 102.8 -> 108.4 (+5.4%), within-boot run spread up to 30%, and hit-rate openings walking down boot by boot (84/75/69/70 - later boots start colder). Had we run no bracket, the same table reads as ".55 is 8% faster than .52" - a claim we would have been wrong to make. On this Windows box any single-boot cross-version delta under ~6% is box drift, and the ladder ordering above is drift, not version. The four-boot, arms-duplicated protocol in the original report is the right shape for this environment; that is the honest content of "settling it" from our side. Start-log lines you asked for, from the bare boots, verbatim: all three engines print `multi-GPU under WDDM: at most 8 GiB of the expert arena is pinned (STRATA_ARENA_PIN_GIB changes it)` at default, so on Windows the bare arms pin 8 GiB regardless of version - if acceptance depends on residency, Windows bare boots share that condition. Full log block of any single boot available here on request. Self-correction we owe the thread: my comment last evening read ".55 acceptance ~2 points below .54 at identical prompts". This ladder shows same-engine acceptance spanning 75.6-78.2 across boots, so that delta sits inside boot-to-boot noise - withdrawn as a direction, kept as an observation. And what this box cannot do: no 0.1.53 in our feed, IQ3_S not tested (native pack only), and your 79-81 absolute levels are not reachable here (different corpus, different quant) - only within-box signs. (AI-assisted as usual: the model under test read its own logs and drafted this; four boots named 05:33/05:49/06:05/06:20 local, rules file written before the first window.)
Author
Owner

@Redbu11dev commented on GitHub (Nov 1, 2026):

I have just manually checked, engine 0.1.55 and 0.1.54 are !2-3 TIMES! slower than 0.1.52. and 0.1.55 is slower than 0.1.54. That is not just significant, it straight up makes it unusable. engine cuda13, rtx 3070

<!-- gh-comment-id:6553536002 --> @Redbu11dev commented on GitHub (Nov 1, 2026): I have just manually checked, engine 0.1.55 and 0.1.54 are !2-3 TIMES! slower than 0.1.52. and 0.1.55 is slower than 0.1.54. That is not just significant, it straight up makes it unusable. engine cuda13, rtx 3070
Author
Owner

@AndrewDBN commented on GitHub (Nov 1, 2026):

@udqe
When upgrading the engine from 0.1.52 to 0.1.54, I found out that I had to add the flag **--set STRATA_ROUTE_PRIOR=1.5** when launching strata engine 0.1.54. Could you try it and see if you get back some performance ?

<!-- gh-comment-id:6553675358 --> @AndrewDBN commented on GitHub (Nov 1, 2026): @udqe When upgrading the engine from 0.1.52 to 0.1.54, I found out that I had to add the flag `**--set STRATA_ROUTE_PRIOR=1.5**` when launching strata engine 0.1.54. Could you try it and see if you get back some performance ?
Author
Owner

@Redbu11dev commented on GitHub (Nov 1, 2026):

@AndrewDBN

12. @udqe
When upgrading the engine from 0.1.52 to 0.1.54, I found out that I had to add the flag **--set STRATA_ROUTE_PRIOR=1.5** when launching strata engine 0.1.54. Could you try it and see if you get back some performance ?

STRATA_ROUTE_PRIOR=1.5 does not improve speed for me in new engine versions

<!-- gh-comment-id:6553710285 --> @Redbu11dev commented on GitHub (Nov 1, 2026): @AndrewDBN > 12\. [@udqe](https://github.com/udqe) > When upgrading the engine from 0.1.52 to 0.1.54, I found out that I had to add the flag `**--set STRATA_ROUTE_PRIOR=1.5**` when launching strata engine 0.1.54. Could you try it and see if you get back some performance ? STRATA_ROUTE_PRIOR=1.5 does not improve speed for me in new engine versions
Author
Owner

@udqe commented on GitHub (Nov 3, 2026):

@AndrewDBN straight answer to what you asked me: on this box there is no lost performance for a flag to bring back, so I cannot test 'recovery' - but the ladder I posted Saturday ran exactly your variable, and your mechanism is the part of this story that does NOT reproduce here, which may narrow things for the maintainer.

What we have: the bare-env ladder (0.1.52 -> 0.1.54 -> 0.1.55 -> 0.1.52, 2x RTX 4090, Windows, all four boots with NO STRATA_ROUTE_PRIOR at all = your new-default semantics on every arm, same 37 args) came out .54 at +4.9% over the first .52 boot and -0.6% against the repeat .52 bracket - inside the +-6% same-engine bracket drift that same experiment measured. So on 24 GB x 2 the default prior costs nothing measurable.

And the asymmetry is the useful part. Your 3070 analysis: 0.1.52 gave 679 expert-cache slots and 70.8% hit, 0.1.55 gives 530 and 39.9%. On our box the slot line does NOT move across those versions: 4,812/5,045 on .52 and .54 bare, 4,815/5,045 on .55, same config string. So whatever shrank the cache on smaller cards is not a fixed cost added by the new engines - it shows up where the VRAM budget is already tight, and there the fix you found makes sense mechanically: the new default routes to the 'correct' experts, ROUTE_PRIOR=1.5-1.6 biases back toward recently-used ones, and a starved cache converts that bias into hit rate and hit rate into decode speed. On a card pair already at 97-99% hit with the tuning block on, the same knob has almost nothing to buy in speed and only routing correctness to lose - which is why we run 1.0 and would not move to 1.5 here, and why I would tell anyone copying that fix to check their hit line before believing it.

@Redbu11dev both of your observations fit that picture: 'no improvement at 1.5' an hour after testing on a cold boot and 'comparable to 0.1.52 at 1.5-1.6' later are hard to tell apart when the box's own bracket is +-6% - but 2-3x is far outside that band, and your own slot/hit numbers (679->530, 70.8->39.9%) explain a 2-3x on a 3070-class card without needing the kernel path to be slower at all. That is also why the maintainer's A6000 rotation saw nothing: enough VRAM, no cache pressure, no symptom.

If it would help to close the loop, one boot here with the production config plus STRATA_ROUTE_PRIOR=1.5 would pin the last axis: my prediction, stated before running it, is no speed change (no hit-rate headroom to convert) and a small acceptance-rate move, since biased routing changes what the drafter has to verify. Say the word and I will run it as one arm with the usual rules file written first.

Limits as usual: one night, one Windows/4090 pair, UD-Q4_K_XL native, synthetic prompts; version absolutes not comparable across boxes, only signs. AI-assisted as usual: the engine under test drafted this from our logs; boots named 05:33/05:49/06:05/06:20 in my local time, rules file written before the first window.

<!-- gh-comment-id:6595221944 --> @udqe commented on GitHub (Nov 3, 2026): @AndrewDBN straight answer to what you asked me: on this box there is no lost performance for a flag to bring back, so I cannot test 'recovery' - but the ladder I posted Saturday ran exactly your variable, and your mechanism is the part of this story that does NOT reproduce here, which may narrow things for the maintainer. What we have: the bare-env ladder (0.1.52 -> 0.1.54 -> 0.1.55 -> 0.1.52, 2x RTX 4090, Windows, all four boots with NO STRATA_ROUTE_PRIOR at all = your new-default semantics on every arm, same 37 args) came out .54 at +4.9% over the first .52 boot and -0.6% against the repeat .52 bracket - inside the +-6% same-engine bracket drift that same experiment measured. So on 24 GB x 2 the default prior costs nothing measurable. And the asymmetry is the useful part. Your 3070 analysis: 0.1.52 gave 679 expert-cache slots and 70.8% hit, 0.1.55 gives 530 and 39.9%. On our box the slot line does NOT move across those versions: 4,812/5,045 on .52 and .54 bare, 4,815/5,045 on .55, same config string. So whatever shrank the cache on smaller cards is not a fixed cost added by the new engines - it shows up where the VRAM budget is already tight, and there the fix you found makes sense mechanically: the new default routes to the 'correct' experts, ROUTE_PRIOR=1.5-1.6 biases back toward recently-used ones, and a starved cache converts that bias into hit rate and hit rate into decode speed. On a card pair already at 97-99% hit with the tuning block on, the same knob has almost nothing to buy in speed and only routing correctness to lose - which is why we run 1.0 and would not move to 1.5 here, and why I would tell anyone copying that fix to check their hit line before believing it. @Redbu11dev both of your observations fit that picture: 'no improvement at 1.5' an hour after testing on a cold boot and 'comparable to 0.1.52 at 1.5-1.6' later are hard to tell apart when the box's own bracket is +-6% - but 2-3x is far outside that band, and your own slot/hit numbers (679->530, 70.8->39.9%) explain a 2-3x on a 3070-class card without needing the kernel path to be slower at all. That is also why the maintainer's A6000 rotation saw nothing: enough VRAM, no cache pressure, no symptom. If it would help to close the loop, one boot here with the production config plus STRATA_ROUTE_PRIOR=1.5 would pin the last axis: my prediction, stated before running it, is no speed change (no hit-rate headroom to convert) and a small acceptance-rate move, since biased routing changes what the drafter has to verify. Say the word and I will run it as one arm with the usual rules file written first. Limits as usual: one night, one Windows/4090 pair, UD-Q4_K_XL native, synthetic prompts; version absolutes not comparable across boxes, only signs. AI-assisted as usual: the engine under test drafted this from our logs; boots named 05:33/05:49/06:05/06:20 in my local time, rules file written before the first window.
Author
Owner

@AndrewDBN commented on GitHub (Nov 3, 2026):

@udqe
TY for the excellent analysis. I have three takeaways from your comments and the 8+ hours I have spent investigating this issue yesterday :

  1. The number of experts cached in VRAM is a major variable in determining decode speeds. No two benchmarks are comparable unless this number stays constant, and unfortunately on GPUs with 12GB VRAM or less, the number of experts cached in RAM varies considerably between strata version upgrades. This makes it difficult to attribute any regressions/gains to the engine version or speculative decoding algorithm used.

  2. I have not found a way to pin down the number of experts cached in VRAM, and that is a major problem for proper benchmarking, which I intend to further investigate in the coming days.

  3. I have improved the mtp-bench-3.py (PR #4877) . It now additionally reports:

  • The speculative decoding algorithm in use.
  • The number of experts cached.
  • The expert cache hit rate.

In other words, it is an efficient tool for quick strata benchmarking (it runs in less than 25 seconds on my PC with a 12GB RTX 5070).

<!-- gh-comment-id:6601136698 --> @AndrewDBN commented on GitHub (Nov 3, 2026): @udqe TY for the excellent analysis. I have three takeaways from your comments and the 8+ hours I have spent investigating this issue yesterday : 1) The number of experts cached in VRAM is a major variable in determining decode speeds. No two benchmarks are comparable unless this number stays constant, and unfortunately on GPUs with 12GB VRAM or less, the number of experts cached in RAM varies considerably between strata version upgrades. This makes it difficult to attribute any regressions/gains to the engine version or speculative decoding algorithm used. 2) I have not found a way to pin down the number of experts cached in VRAM, and that is a major problem for proper benchmarking, which I intend to further investigate in the coming days. 3) I have improved the mtp-bench-3.py (PR #4877) . It now additionally reports: - The speculative decoding algorithm in use. - The number of experts cached. - The expert cache hit rate. In other words, it is an efficient tool for quick strata benchmarking (it runs in less than 25 seconds on my PC with a 12GB RTX 5070).
Author
Owner

@udqe commented on GitHub (Nov 3, 2026):

@AndrewDBN your takeaway 2 has an answer in the engine itself - strata.exe --help on 0.1.56 lists the pin you were looking for:

  • --expert-cache N - keep N expert blobs resident in VRAM (instead of auto);
  • --expert-cache-device1 N|auto (and -device2/3) - fill each card with an explicit expert count.

Set both numbers once and the slots the log prints (strata generate: expert cache 5,066 slots ...) stop moving between upgrades, which is exactly the constant your point 1 demands for comparability. On our 2x RTX 4090 (Windows, engine 0.1.54 -> 0.1.55 -> 0.1.56) the auto cache turned out version-stable (4,812 / 4,812 / 4,815 slots on the same bare box), which is why our ladder could treat slot drift as zero - but your 12 GB case is the opposite corner we flagged there: the auto sizer's headroom assumptions changed under the cache-starved card (your 679 -> 530), so pinning is the right tool for your 5070, not a workaround.

Two honesty notes so the numbers stay comparable in the wild:

  1. pinning the COUNT also pins the outcome for the OTHER knob: if a later engine wants more reserve (the conversation snapshot / penalty window grew once already), the pinned cache will not shrink with it - start-failures there are the pin doing its job, auto is the recovery;
  2. on our box we additionally keep the host side constant (STRATA_ARENA_PIN_GIB=40) and re-run the same engine on the same prompt shapes before/after anything we want to claim, because we measured +5.4% pure box drift in 45 minutes once. Your 25-second tool reporting drafter + cached experts + hit rate is the same discipline in one artifact - the hit rate especially: two runs at the same slot count are still not comparable if one warmed the cache first (the exact confound that closed the -22.7% report in this thread's own history).

(ai-assisted posting as usual; measurements: udqe rig, 2x RTX 4090, Windows)

<!-- gh-comment-id:6616060979 --> @udqe commented on GitHub (Nov 3, 2026): @AndrewDBN your takeaway 2 has an answer in the engine itself - `strata.exe --help` on 0.1.56 lists the pin you were looking for: - `--expert-cache N` - keep N expert blobs resident in VRAM (instead of `auto`); - `--expert-cache-device1 N|auto` (and `-device2/3`) - fill each card with an explicit expert count. Set both numbers once and the slots the log prints (`strata generate: expert cache 5,066 slots ...`) stop moving between upgrades, which is exactly the constant your point 1 demands for comparability. On our 2x RTX 4090 (Windows, engine 0.1.54 -> 0.1.55 -> 0.1.56) the `auto` cache turned out version-stable (4,812 / 4,812 / 4,815 slots on the same bare box), which is why our ladder could treat slot drift as zero - but your 12 GB case is the opposite corner we flagged there: the auto sizer's headroom assumptions changed under the cache-starved card (your 679 -> 530), so pinning is the right tool for your 5070, not a workaround. Two honesty notes so the numbers stay comparable in the wild: 1. pinning the COUNT also pins the outcome for the OTHER knob: if a later engine wants more reserve (the conversation snapshot / penalty window grew once already), the pinned cache will not shrink with it - start-failures there are the pin doing its job, `auto` is the recovery; 2. on our box we additionally keep the host side constant (`STRATA_ARENA_PIN_GIB=40`) and re-run the same engine on the same prompt shapes before/after anything we want to claim, because we measured +5.4% pure box drift in 45 minutes once. Your 25-second tool reporting drafter + cached experts + hit rate is the same discipline in one artifact - the hit rate especially: two runs at the same slot count are still not comparable if one warmed the cache first (the exact confound that closed the -22.7% report in this thread's own history). (ai-assisted posting as usual; measurements: udqe rig, 2x RTX 4090, Windows)
Author
Owner

@AndrewDBN commented on GitHub (Nov 4, 2026):

@udqe
Unfortunately at least on my Linux workstation, --expert-cache N doesn't work as it should. Also unfortunately, --set vram-reserve-mib=M doesn't work as it should either.
Imho there is a lot of room for improving VRAM management in strata, but that's normal, strata is a very recent project and still at version 0.2.10 after all.

<!-- gh-comment-id:6618918839 --> @AndrewDBN commented on GitHub (Nov 4, 2026): @udqe Unfortunately at least on my Linux workstation, `--expert-cache N` doesn't work as it should. Also unfortunately, `--set vram-reserve-mib=M` doesn't work as it should either. Imho there is a lot of room for improving VRAM management in strata, but that's normal, strata is a very recent project and still at version 0.2.10 after all.
Author
Owner

@udqe commented on GitHub (Nov 4, 2026):

@AndrewDBN you were right to push back on my --expert-cache N suggestion - three boots on our rig this morning reproduced why it "doesn't work as it should", and the code says why. Two findings, both from our own logs:

  1. N is not a slot count - it is a byte cap sized in the LARGEST blob. src/program/generate.cpp:7246-7248 says it verbatim ("the bytes the GPU cache will hold: --expert-cache N slots of the largest blob, or what auto sizing finds free"), and :7250-7251 computes cap_bytes = N * nibble_max_slot_bytes() while the fill loop then packs the REAL (smaller) blobs under that cap. On our UD-Q4_K_XL pair --expert-cache 4000 produced 5,084 slots / 14.88 GiB - not 4,000 - because our native slots are ~0.79x the largest blob, and the cap even came out slightly MORE generous than auto had been (auto sized our primary tier at 5,050). So my "set the number and the slots line stops moving" in my last comment was half wrong: bytes stop moving, the slot COUNT does not equal N, and on this model it exceeds it by ~1.27x. My apologies - the corrected statement is below.

  2. Once N is pinned, --vram-reserve-mib genuinely does nothing to that tier - by construction. The reserve math (reserve + prefill + MTP + pipeline-window terms) lives ONLY in the auto branch (:7253-7264); the pinned branch never sees it. Our boots show it cleanly: pin 4000 with reserve 972 -> expert cache 5,084 slots, 14.88 GiB; same pin with reserve 1972 -> the primary line byte-identical (5,084 / 14.88), while the SECOND card, left on auto, obediently shrank 5,737 -> 5,405 slots / 16.72 -> 15.74 GiB with the same reserve change. So on your box, if you had pinned N, "reserve does nothing" is the design, not a second bug - one interaction, as you suspected.

What actually makes benchmarks comparable then: for the SAME model across engine versions, a pinned N does stabilize the cache (same blobs, same cap -> stable slot line, unlike your auto 679 -> 530) - but to keep the slot line at a chosen number on a native-nibble model you size N downward so N x (largest/actual blob ratio) lands where you want, and pin every card explicitly (--expert-cache-device1 N exists for the remote tiers). And keep --vram-reserve-mib for the cards you leave on auto.

(ai-assisted; three boots here today: 156 = pin 4000 @ reserve 972, 157 = pin 4000 @ reserve 1972, 158 = restored production; every slot line quoted verbatim from our engine log; static citations from main @ 2026-11-03, engine 0.1.56 era - your Linux build should carry the same block; if your pinned runs behaved DIFFERENTLY from "cap is respected, slots > N, reserve inert", then you have a genuinely different failure and the three log lines I asked for earlier would separate the two cases.)

<!-- gh-comment-id:6620008615 --> @udqe commented on GitHub (Nov 4, 2026): @AndrewDBN you were right to push back on my `--expert-cache N` suggestion - three boots on our rig this morning reproduced why it "doesn't work as it should", and the code says why. Two findings, both from our own logs: 1) **N is not a slot count - it is a byte cap sized in the LARGEST blob.** src/program/generate.cpp:7246-7248 says it verbatim ("the bytes the GPU cache will hold: --expert-cache N slots of the largest blob, or what auto sizing finds free"), and :7250-7251 computes `cap_bytes = N * nibble_max_slot_bytes()` while the fill loop then packs the REAL (smaller) blobs under that cap. On our UD-Q4_K_XL pair `--expert-cache 4000` produced **5,084 slots / 14.88 GiB** - not 4,000 - because our native slots are ~0.79x the largest blob, and the cap even came out slightly MORE generous than `auto` had been (auto sized our primary tier at 5,050). So my "set the number and the slots line stops moving" in my last comment was half wrong: bytes stop moving, the slot COUNT does not equal N, and on this model it exceeds it by ~1.27x. My apologies - the corrected statement is below. 2) **Once N is pinned, `--vram-reserve-mib` genuinely does nothing to that tier - by construction.** The reserve math (reserve + prefill + MTP + pipeline-window terms) lives ONLY in the auto branch (:7253-7264); the pinned branch never sees it. Our boots show it cleanly: pin 4000 with reserve 972 -> `expert cache 5,084 slots, 14.88 GiB`; same pin with reserve 1972 -> **the primary line byte-identical (5,084 / 14.88)**, while the SECOND card, left on `auto`, obediently shrank 5,737 -> 5,405 slots / 16.72 -> 15.74 GiB with the same reserve change. So on your box, if you had pinned N, "reserve does nothing" is the design, not a second bug - one interaction, as you suspected. What actually makes benchmarks comparable then: for the SAME model across engine versions, a pinned N does stabilize the cache (same blobs, same cap -> stable slot line, unlike your auto 679 -> 530) - but to keep the slot line at a chosen number on a native-nibble model you size N downward so N x (largest/actual blob ratio) lands where you want, and pin every card explicitly (`--expert-cache-device1 N` exists for the remote tiers). And keep `--vram-reserve-mib` for the cards you leave on `auto`. (ai-assisted; three boots here today: 156 = pin 4000 @ reserve 972, 157 = pin 4000 @ reserve 1972, 158 = restored production; every slot line quoted verbatim from our engine log; static citations from main @ 2026-11-03, engine 0.1.56 era - your Linux build should carry the same block; if your pinned runs behaved DIFFERENTLY from "cap is respected, slots > N, reserve inert", then you have a genuinely different failure and the three log lines I asked for earlier would separate the two cases.)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2192
No description provided.