Repository navigation
[Engine] keep STRATA_HC_Q8 opt-in on sm_86 - #350
pwnedbygary wants to merge 1 commit into
Conversation
The Q8_0 hyper-connection verify read is enabled automatically for any GGUF that carries Q8_0 HC projections (the Unsloth UD files), with no architecture gate. On sm_86 (RTX 3080, driver 620.73.04, CUDA 13.5, engine 0.1.66) the first verify window warm-up then fails: strata serve: window warm-up: ms per width 1:39, total 96 ms; a window failed: verify: layer 0 never rang (operation not supported on global/shared address space) STRATA_HC_Q8=0 passes every warm-up width with the same pack and flags, and nv_defaults.cpp already keeps STRATA_HC_Q8 opt-in on sm_86; apply_hc_q8_default ignores that rule. Gate the automatic enable on sm_86 so those cards use the bf16 HC read unless the runner sets STRATA_HC_Q8 explicitly.
|
Thanks, I have same GPU and same issue, set STRATA_HC_Q8 = 0, problem fixed. |
|
The same start-up failure here on sm_86 under Windows. The root cause has been found and fixed upstream, so bumping the bundled Strata engine may be the fuller fix. Upstream: Strata 0.2.21 (engine 0.1.67) fixes this, as Niko1221/Strata#6713 / Niko1221/Strata#6714 describe. In 0.1.66 a helper started to read through the read-only cache ( Upstream engine versions: Strata has shipped engine 0.1.67 since v0.2.21 (released 2026-11-24). The current release, v0.2.22 (2026-11-25), ships engine 0.1.69. I tested 0.1.67 only, not 0.1.69. Measured here: RTX 3070 Ti Laptop 8 GB (sm_86), Windows 11, driver 616.92, PolyStrata v0.2.20-poly.5. The model is Unsloth's Qwen3.8-Flash-Next UD-IQ2_XS, set up with
So the gate in this PR does avoid the crash on sm_86. But it leaves the other architectures exposed, and it keeps the slower bf16 HC read. With engine 0.1.67 bundled, no gate is needed, and here it was also faster. The pack that PolyStrata's setup built for 0.1.66 loaded unchanged in 0.1.67. Not checked: Linux, other cards, other Qwen packs, and PolyStrata's own 🤖 Generated with Claude Code |
Problem and result
On sm_86 (RTX 3080, driver 620.73.04, CUDA 13.5, engine 0.1.66) a Unsloth UD pack fails at start-up:
apply_hc_q8_default()setsSTRATA_HC_Q8=1for every GGUF that carries Q8_0 hyper-connection projections — every Unsloth UD file does — with no architecture gate. On the same pack and flags,STRATA_HC_Q8=0passes every warm-up width (1, 2, 3, 4, 5, 6, 12) and the engine reaches READY; an ISTA-DASLab GSQ-RCO pack (bf16 HC copy) never enters this path and works.nv_defaults.cppalready keepsSTRATA_HC_Q8opt-in on sm_86, but the automatic enable ignores that rule.After this change, on sm_86 the automatic enable is skipped and the bf16 HC read is used, as the sm_86 defaults intend.
STRATA_HC_Q8=1still forces the Q8_0 path (and still fails on this card until the underlying kernel issue is found).Related discussion
none
Approach
Gate the automatic enable in
apply_hc_q8_default()on compute capability 8.6. An explicitSTRATA_HC_Q8value wins as before. Other architectures are unchanged.Validation
Passed:
STRATA_HC_Q8=0with the UD-IQ4_XS-v31 pack, engine 0.1.66, RTX 3080 10 GB: warm-up widths1:97 2:100 3:107 4:116 5:132 6:146 12:272 ms, thenREADY 32768; a chat completion answered normally. The same config with 131072 context reachedloaded: trueand answered requests.Failed:
STRATA_HC_Q8=1(the automatic enable) with the same pack and flags: the window warm-up fails at width 1 with the error above. Reproduced with both the 0.1.66 component build and the PolyStrata engine build.Not run:
apply_hc_q8_default(). The behaviour it selects (STRATA_HC_Q8=0) is the one verified above.