mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2803] [Feature]: SYCL: faster small-batch decode GEMVs for Q4_K, Q5_K, Q6_K and IQ4_XS on the Arc Pro B70 (opt-in) #1126
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#1126
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/2803
What do you want to do?
Decode faster on an Intel Arc Pro B70 with the SYCL port by making the dense GEMVs of a decode window
(
native_mmvqat 1-8 columns: the projections, the shared expert, the verify window and the 248,320-row outputhead) read their weights closer to the card's memory bandwidth.
What I see today (one B70,
native_mmvqcalled directly with random weights, distinct weight copies per graph soL2 never holds a matrix):
31-72% of the card's 608 GB/s at 1-2 columns and 18-41% at 6 columns; IQ4_XS 41-54% and 30-34%.
94 us from DRAM. The wide kernels re-read every column's activations for every row (at 6 columns about 10x the
weight bytes in L1 loads, issued one at a time), so they are bound by instruction issue at 4-6 columns.
What I'd like: an opt-in SYCL kernel family for these four formats that loads each column's activations once per
work-group and streams rows against them, with the default path left exactly as it is. A version of this on two
B70s (upstream main,
--layer-split 30, Qwen3.8-Flash-Next ISTA GSQ-RCO IQ3_XXS,--spec 4 --mtp, one slot)decodes 79.5 -> 95.0 tok/s (median of 3), with the K-quant matrices at 74-97% of bandwidth at 1-2 columns and the
head at 759 us (1 column) and 1,175 us (6 columns). It is not bitwise equal to the default kernels (another FP32
summation order), but a multi-column call stays bitwise equal to one-column calls.
Workaround today: none. The existing switches do not move decode:
STRATA_MMVQ_WIDE_K_RPW=2measured 54.31 ->54.00 tok/s (commit
2a0d2f55), and the SIMD16 builds (STRATA_MMVQ_SG) gave no gain beyond noise (docs/INTEL.md).Prepared with AI assistance (Claude Code): the code, 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.