mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2074] 0.1.42 -> 0.1.43: decode -3.4% on RTX 4090 48 GB, IQ3_S, --resident-experts (MTP accept unchanged, prefill flat) #827
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#827
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tlyer233 on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2074
Summary. Single RTX 4090 48 GB, native IQ3_S pack,
--resident-experts: 0.1.43 decodes -3.4% vs 0.1.42 over 60 paired SPEED-Bench samples (2 runs vs 4 runs). MTP accept rate is unchanged, so this is per-token cost, not speculation. 0.1.43's advertised decode win (ADAPT_OVERLAP) is unreachable on this configuration, so the cost lands and none of the benefit does. Related direction: #2010, #2024.Setup
clocks.sm2700 / max 3105,clocks_event_reasons.active 0x0(no throttle)--ple-gguf, n_ctx 268288archs [89], CUDA 13, single stream (noparallel), 0.1.42 built fromv0.1.42, 0.1.43 built fromv0.1.43--prefill 8192 --vram-reserve-mib 1024 --conversation-cache-mib 24576 --conversation-cache-slots 8 --conversation-cache-min-free-mib 8192 --prompt-cache 28 --spec 6 --spec-min-p 0.5 --mtp mtp/rt --ple-gguf <Q8_0 PLE> --resident-expertsroute tail skipactive in both versionsThe numbers
SPEED-Bench
qualitative,--scenarios(one sample per category), 10 categories x 6 tiers, tg 256, one engine restart per arm, 60 samples per run:0.1.42 (run 4, the arm paired with the 0.1.43 run below):
0.1.43 (run 2) - same 60 samples:
per-cell delta (0.1.43 - 0.1.42), t/s:
What I already ruled out on this box
STRATA_MMVQ_IL=0- measured neutral ("basically no difference"), reverted. sm_89 has no measured interleaved table in 0.1.43 (native_mmvq.cu:2554: "sm_89 (Ada) has none yet: nobody measured it ... it takes the shared table", measured on RTX 3060 + RTX 5070);mmvq_il_paritysays the output is bitwise identical either way, so a table is only speed.--vram-reserve-mib 1024 -> 700- 1.958 MiB/slot, so +165 slots, 75.2% -> 75.9% of a profile with 99.5% hit: no decode change.--prefillabove 8192 - prefill is flat from 8k to 256k contexts (4327-4676 t/s), so chunk size is not the limiter.route tail skip- active in both (195,149 missed experts skipped); the >=90% gate of #1884 is not reached at 75.2%.ADAPT_OVERLAP(src/program/generate.cpp:1330, default-on for Linux CUDA, +5.5-8.3% on an A4000, +4.4% on a P100): unreachable here twice.generate.cpp:8294reports "not in the resident RAM mode unlessSTRATA_ADAPT_OVERLAP_RESIDENT=1" for--resident-experts, and there is nothing to hide anyway - 0.0% of routed experts cross PCIe during decode. So the one 0.1.43 decode improvement contributes 0 here while the rest of the release costs 3.4%.Ask
ADAPT_OVERLAP(and whatever else in 0.1.43 sits on the decode path) also be gated off when the decode cache hit rate is ~100% with 0% PCIe traffic, so resident-mode configs do not pay the cost without the benefit?Bench harness: SPEED-Bench
qualitative.parquetvia a plain OpenAI-compatible client (/v1/chat/completions, temperature 0, tg 256,--runs 1); decode tps from the engine's owntimings(decode_tps,draft_n,draft_n_accepted), no client-side estimate. Full per-sample JSONs available on request.@Niko1221 commented on GitHub (Oct 12, 2026):
I looked at this on an RTX A4000 (sm_86), IQ3_XXS, --resident-experts, 8 interleaved pairs: 0.1.42 48.96 / 47.49 tok/s (story / code), 0.1.43 48.46 / 47.09, which is -1.0% / -0.8%, and STRATA_NAN_GUARD=0 on 0.1.43 gives 48.63 / 47.06, so the NaN guard costs nothing measurable. STRATA_PCIE_FRAC_DEFAULT=old and STRATA_MMVQ_IL=0 (slower) did not bring anything back either. I do not see your -3.4% on sm_86, and the slot count moved by one (4116 -> 4115), not 133. Could you post the start-up lines "expert cache auto: X GiB free, ... -> N slots" of both versions? The free-GiB figure before the cache is sized shows what took the VRAM (about 260 MiB on your card). If you want to bisect, build the 0.1.43 decode-graph and sm_89 kernel-selection commits first (native_mmvq.cu, verify.cpp); each arm needs about 10 pairs, since the same-version spread you measured is +-1.9%.
@Tlyer233 commented on GitHub (Oct 13, 2026):
Thanks for the fast reply. I re-ran everything in a controlled way (idle machine, both binaries co-installed, identical launcher/flags, 3 cold boots per version + one 60-sample SPEED-Bench decode pass per arm). Headline: on an idle 4090 I can no longer reproduce the -3.4%; my original numbers were taken while another workload was hitting the same GPU.
1) Startup lines you asked for (idle machine,
--vram-reserve-mib 1024)0.1.42 (3 boots, all identical):
0.1.43 (3 boots, all identical):
So on an idle boot the two versions account for the same VRAM — 3 slots / 6 MiB apart, i.e. your slot-shift theory has no room here at 1024. The -322-slot gap in my original report (36.17-36.21 GiB free) was an external process holding ~0.6 GiB at boot time, not 0.1.43 taking VRAM.
2) Paired decode bench, idle machine, same session back-to-back
Paired over the 60 identical samples: mean delta +0.84 t/s (+0.72%), 42 slower on 30/60 samples (a coin flip), sd 12.0 — i.e. within my own same-version spread. Same-version boot-to-boot spread measured earlier was ±1.9%, so 0.72% is noise. Acceptance is identical (71.0 vs 70.6), and
STRATA_ADAPT_OVERLAPis unreachable on this box (resident-RAM mode is gated off ingenerate.cppunlessSTRATA_ADAPT_OVERLAP_RESIDENT=1, and the engine reports 0.0% of routed experts over PCIe) — consistent with your "the upside is 0 there" note.3) The 764-MiB arm (returns VRAM to the cache slots)
0.1.43 at
--vram-reserve-mib 764(2 boots):That is +133 slots (+260 MiB, matching the ~1.96 MiB/slot slope you computed) over the 1024 arm. Decode at 764 vs 1024 on the same binary: 114.9 vs 117.2 AVG, paired +2.02% (28/60 slower, sd 11.7) — also noise, and it moves the wrong way (the smaller cache is nominally slower, as expected). So slot residency moves decode by ≈0 per +133 slots in the 18.7k-18.8k range even though hit rate is pinned at 99.1-99.5% with zero PCIe expert traffic — which rules the cache-slot delta out as the cause of the -3.4% I originally measured.
4) What the original -3.4% probably was
My 108.4/108.6 runs and the 110-114 baselines they were compared against were interleaved with live agent traffic on the same GPU. Two notes for you: (a) 0.1.42 also lost ~5% under that same load (118 → 112), so load alone demotes both; (b) 0.1.43 dropped a bit further (→108). With n=2 per version under load I cannot call that a sensitivity regression — if you care, I can run a designed contention experiment (steady background stream, A/B/A/B, 10 pairs per arm as you suggested) and I will bisect
native_mmvq.cu/verify.cppif the contention effect is real.Sorry for the noise in the original report — the clean-machine numbers do not show a 0.1.43 regression on this 4090. Happy to keep both binaries installed and re-run anything.