mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2809] [Bug]: STRATA_HC_Q8=1 does nothing on the SYCL (Intel) build: the Q8_0 copies are loaded but never read #1129
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#1129
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 @hotschmoe on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2809
What happened
STRATA_HC_Q8=1is documented (docs/QUANTS.md, docs/STRIX_HALO.md, docs/MAC.md) as the hyper-connection read fromthe GGUF's own Q8_0 projections (or, for a BF16 pack, a Q8_0 copy quantized at load): the verify window's
hyper-connection down / up projections are read as Q8_0 instead of BF16 - an output-changing, measured speed-up on
CUDA, the default on AMD gfx12 and Mac. On the SYCL build (
sycl/, Intel Arc) the flag never reaches a Q8_0 read: the hyper-connectionread only ever takes the BF16 weights, so the flag cannot change the output or the speed.
What I saw: on a development tree whose loader already makes the Q8_0 copies from the BF16 tensors (start-up line
strata: STRATA_HC_Q8=1: 0.63 GiB of Q8_0 hyper-connection projections for the verify read), Qwen3.8-Flash-Next ISTAIQ3_XXS on two Arc Pro B70s, decode speed with
STRATA_HC_Q8=1was the same as without it, and a GPU trace of thedecode window showed the same BF16 kernels (the sliced
gr_down,gr_down_reduce,gr_up_multi_kernel) with theflag on and off: the 0.63 GiB was never read. Reading
mainexplains it (below). I did not runmainitself withthe flag; from the source, on an ISTA (BF16) file it uploads nothing, and on a file with Q8_0 projections it makes
the copies and never reads them.
What I expected: the Q8_0 read, as on CUDA - the projections read as Q8_0 (the file's own, or quantized at load from
BF16), decode faster, answers differing slightly.
Why, from the source on
main:src/core/native_dense.cpp:46-69(hc_q8_env),:384-409(a GGUF's own Q8_0projections),
:411-446(a BF16 pack's projections quantized to Q8_0 at load),:448-466(the dequantizationscratches for the prompt path),
src/program/generate.cpp:3062-3065(the BF16 copies dropped on a single GPU). Theread:
src/kernels/cuda/fused_gr.cu:1351-1358(gr_down_q8_kernel/gr_up_q8_kernel), dispatched at:1981-1982whena[0].q8_down != nullptr && a[0].q8_up != nullptr; the argument check at:1965accepts(w_down && w_up) || (q8_down && q8_up).sycl/src/core/native_dense.cpp:321-358keeps a Q8_0 copy only fora tensor of GGUF type 8 (
:327), so a BF16 tensor (type 30) is skipped and nothing is uploaded; there is noquantize-at-load and no
add_hc_skip/hc_bf16_view(the comment at:110: the port "only needs the env switch").sycl/src/kernels/cuda/fused_gr.dp.cpp:1770-1786fused_gr_read_multirequiresx.w_down && x.w_upand never readsx.q8_down/x.q8_up; every branch below ittakes the BF16 weights, and its last line says so (
:2051: "the Q8_0 reads (S23 STRATA_HC_Q8) are not built").The callers do set the pointers (
sycl/src/core/verify.cpp:982-983,:1549-1563), so for a GGUF with Q8_0projections the copies are allocated and then ignored.
Steps to reproduce: build
sycl/(docs/INTEL.md), run a Flash-Next GGUF with and withoutSTRATA_HC_Q8=1on afixed prompt at temperature 0: from the code above the outputs should be identical (the BF16 read runs either way).
A pull request that refers to this issue makes the flag take the Q8_0 read on SYCL; with it the output changes and the verify window gets 5% shorter
on the setup above.
Strata version, GPU, OS
main
296b59d2(0.1.44.1, thesycl/build) - 2x Intel Arc Pro B70 32 GB - Ubuntu, kernel7.1, Compute Runtime 26.22.38646.4, oneAPI 2026.1
Engine log
The development-tree run (loader already making the copies, read unchanged), the only line the flag adds:
Prepared with AI assistance (Claude Code): the analysis, the measurements and this text were produced by Claude on the submitter's two Arc Pro B70s, at the submitter's request.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.