mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 21:05:40 +07:00
[GH-ISSUE #3844] --spec 5 measured +6.1% decode (RTX 5060 Ti / 128 GB) but cannot be persisted: tune_knobs safe range is [3, 4] #1634
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#1634
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 @travellm on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3844
Issue draft — paste into https://github.com/Niko1221/Strata/issues/new
Title:
--spec 5measured +6.1% decode on RTX 5060 Ti / 128 GB, but it cannot be persisted:tune_knobssafe range is[3, 4]What I am asking for
Allow
--spec 5for theflash-nextfamily, or at least let a power user pin it durably.I am not asking to change the default — my machine's own autotune correctly picked 4 and I
respect that. I am asking that 5 be a value a user is allowed to keep.
Environment
qwen3.8-flash-next-nvfp4-nvfp4(qwen-nvfp4-gptq-dense.gguf+ pack), 204800 ctx, KV int8, vision enabled--serve, resource profileperformance,--vram-reserve-mib 2048, expert cache 2226 slots (5.73 GiB), expert arena 63.28 GiB, batch 1Measurement
Same engine build, same model, same machine, same prompts, greedy decoding, batch 1, one run per
prompt.
--spec 5was measured with a second, independent engine instance on a separate port(18501) while the main instance ran
--spec 4, then the numbers were compared. Metric is theengine's own decode figure (generated tokens ÷ generation time, from the
GENlines), plus theengine's own draft-acceptance counters. Client-side medians are reported too.
--specPer prompt (engine decode tok/s):
--spec 4--spec 5What the guard's rationale predicts is that a wider window costs more than it pays. On this box it
did not: acceptance falls exactly as expected (70.9% → 67.2%) and the window is still net positive,
concentrated in code generation. RAM footprint is identical (the 63.28 GiB expert arena does not
depend on the window) and the VRAM cost is one small buffer:
The engine starts and serves
--spec 5with no problem at all — I ran it for hours, including asthe assistant serving this very session. This is purely a policy question, not a capability one.
Why I cannot keep it (three separate walls)
strata_control/tune_knobs.py— the tuner exposes"--spec": {"choices": (3, 4)}, and thesafety text says wider windows (
>= 6) were "4% to 16% slower". 5 is not rejected by that rule;it is rejected by the range. In-process check:
presets.overlay()— the layer documented as "applying the active preset at every start"deliberately drops out-of-range settings ("A setting that is outside the safe rules is left out,
never applied"), so a preset carrying
--spec 5is skipped entirely: With only that one range relaxed in memory (no file touched), the very same preset appliescleanly through the official mechanism: So the persistence machinery already works; the range is the only thing in the way.
strata-nvfp4-nvfp4.jsonholds
"--spec", "5"→ the UI's native-settings JSON shows 5 → the user presses unload/load →the freshly derived
native-instances\<uuid>.jsoncomes out with--spec 4and the settingsfile is rewritten back to 4 (
mtimemoves to the load timestamp). This is the part I foundsurprising: the UI displays an
argsarray that a user may edit and thatvalidateNativeSettings()explicitly accepts, but the value it shows is regenerated over at load, so editing it silently
does nothing. If that is intentional, the UI should say so; if not, it is a small bug.
Suggested fixes, in order of preference
flash-nextto[3, 5](or gate it: allow 5 whenvram >= 16 GBandram >= 64 GB, where the window buffer is free and acceptance stays high).NATIVE_FIELDS(native settings → "GPU & memory" or a new"Speculation" group) so the value is a first-class, user-owned setting that goes through
save()and is not regenerated at load.argsedits in the model settings file are going to be regeneratedat load, surface that in the native-settings JSON tab instead of accepting them.
Caveats I want to be upfront about
other two are flat. I have not run a repeated-measures median. I would not call this a settled
benchmark — I am reporting a directional result on one specific GPU/RAM/model/quant combination.
single short requests. For long generations it should.
post the numbers here before this is acted on. If it does not reproduce, I will say so.
default_confirmedwithsettings.args = {},so 5 was never a candidate it could have found. The candidate set is the reason this is invisible
to the tuner, not a measurement disagreement.
Repro
Guard / persistence checks (read-only, run against the installed Control):
Artifacts
Verbatim from the engine log — the
--spec 5start (trimmed) and the cache line, which is identicalfor both runs, so the comparison is apples to apples:
@github-actions[bot] commented on GitHub (Oct 23, 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:
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
@yusheng227507 commented on GitHub (Oct 23, 2026):
Counter-datapoint on Turing (2× RTX 2080 Ti 22 GB, layer split 26/22, IQ3_XXS, MTP drafter
rt, engine 0.1.48 self-built sm_75):--spec 5clearly regresses here.Same standard suite on both arms (3 runs each, 33/33 ok), same engine, only
--specdiffers:--spec 4--spec 5Mechanism matches your measurement but ends in the opposite place: at spec 5 the drafter offers deeper windows (+19%), acceptance falls harder (-7.2 pp vs your -3.7 pp), and each verification costs more, so the wider window is net negative. That lands inside the guard's own "4% to 16% slower" band for wider windows — on sm_75 the
[3, 4]safe range is correct as measured.Two things from this box support your framing rather than argue against it:
--spec 5vs--spec 4, temperature 0 / seed 1, exact-comparison recipe) — so it is indeed policy, not capability, exactly as you say.[3, 5]fits one architecture and hurts another. Your suggested per-arch / per-VRAM gating (fix 2) looks like the right shape.Paste-ready (in the style of the issue body):
@Niko1221 commented on GitHub (Oct 27, 2026):
Thank you for the measurement. Fixed in 0.2.7: A value outside the tuner's safe range, such as --spec 5, can be saved in a preset and used, with a short warning; only values that are never valid (--spec 6, for example) are still refused, and the automatic tuner itself stays inside the safe range. We recommend, we never force.
Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7