mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3858] [Engine] Unlocked RTX 3090 tensor rate (+77%) buys +12.9%/+8.0%/+1.5% prefill and zero decode — where is the headroom left? #1645
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#1645
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 @flamesugar on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3858
Setup
What I did
I unlocked the card's BF16/FP16 tensor rate with
Zagitta/gpu-unlock(V67 firmware, runs in initramfs beforenvidiabinds, per power cycle). Verified in the kernel log:pci 0000:02:00.0: gpu_unlock: unlocked.Measured with torch matmul, N=4096, 3 warmup + 20 iterations, same power cap before and after:
FP32 is unchanged, so only the tensor path moved — as expected. Peak draw during the runs was 263–275 W, i.e. still under the 300 W cap.
What the engine gets out of it
Same protocol before and after (
bench_ctx.py, same temperature per tier, reps=3, 256 output tokens, unique nonce per rep so no prefix-cache hit), permutation test on median difference (10k shuffles):Prefill gain by context
Decode: no significant change in any tier at any context (all p > 0.15, signs mixed).
So a 77% tensor-rate gain buys +12.9% prefill on the lightest quant, +8.0% on IQ3_S and +1.5% on IQ4_XS, and nothing at all in decode. The gain shrinks as the quant gets heavier, which fits the explanation that heavier quant = more CPU expert work per token = the GPU's share of the step is smaller.
The question
Decode looks bound by the CPU expert pool / RAM bandwidth rather than by tensor throughput (
docs/QUANTS.md:126— "One token per expert (most of decode) is at the RAM bound"), so more GPU FLOPS buys nothing there. That matches our numbers: expert cache is 8270 slots / 16,060 MiB, hit rate 68.8%,pool_workers 7.What levers exist to convert the now-available GPU compute into decode throughput?
Specifically:
--specvalue, so the per-step verify is a bigger batched GEMM and the CPU expert pass is amortised over more tokens? Currently--spec 4 --spec-min-p 0.70. Is there a measured optimum for a fast-tensor-core / slow-CPU combination, and does the balance shift once the tensor rate doubles?What I already ruled out
--expert-cache N(explicit value) is not a cap — the fill overshoots it (matches #3693), so I could not run a fixed-slot A/B.--expert-cache-per-layer: hit rate 68.80% → 68.81%, slots 8270 → 8112, prefill −0.4…−0.7%. No gain at this budget (only ~138 slots/layer).Full numbers and the analysis script: I can paste the
results.json/ engine log excerpt if useful.@Niko1221 commented on GitHub (Oct 26, 2026):
Thank you for the clean before and after numbers. Decode on a card with a large expert tail is limited by the CPU expert pass and RAM bandwidth, so more tensor rate mainly helps prefill. A larger --spec is the most direct lever for the CPU pass, but the result depends on the hardware, so we do not change the default. If decode still does not move on 0.2.6 or later, you are welcome to reopen this with your numbers.