Repository navigation
[Engine] keep STRATA_HC_Q8 opt-in on sm_86 - #350
Open
pwnedbygary wants to merge 1 commit into
Open
pwnedbygary wants to merge 1 commit into
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.