mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3248] [Engine] SYCL: +10-35% prompt speed on Arc Pro B70/B65, copy-engine hang fix, int8 crossover cache, failing tests fixed #4527
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#4527
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3248
Author: @maxfridbe
Created: 10/19/2026
Status: 🔄 Open
Base:
main← Head:intel-arc-0.2.0📝 Commits (10+)
d95a9c4sycl: host-only copies go through the CPU - the Arc's copy engine hangs on pinned-host <-> pageable copies5fbef34sycl: s2_expert_grouped_parity passes - no FMA contraction in the transposed grouped kernels344e43esycl: gr_parity skips the STRATA_QFUSE read check - the port's fused GR read does not write q8_1c2a4f55sycl: strata-sycl.sh runs the engine under Podman, in a toolbox or a distrobox (STRATA_SYCL_RUNNER)499e09fsycl/tools/gpustat.py: one card's readings on a two-card host7b70671sycl/setup_intel.py: --check sizes a model across every Intel carde55a11csycl: prompt attention scores one work-item per cell (2.0-2.2x the warp kernel, prompt +10% at 2K)8cc654fsycl: QSA block scores as oneMKL GEMM tiles from 8K cells (selection 3x faster at 40K, prompt +21% at 40K, +35% at 128K)c44fb63sycl: strata-sycl.sh keeps the engine's cache under the data root - the int8 crossover was re-measured at every startd119210sycl/setup_intel.py: the Arc Pro B65 (PCI id e222) by name📊 Changes
15 files changed (+432 additions, -29 deletions)
View changed files
📝
docs/INTEL.md(+29 -0)📝
docs/INTEL_INT8_EXPERTS.md(+2 -1)📝
sycl/CMakeLists.txt(+3 -2)📝
sycl/serve/strata-sycl.sh(+24 -5)📝
sycl/setup_intel.py(+3 -1)📝
sycl/src/core/conversation_snapshot.cpp(+12 -0)📝
sycl/src/core/conversation_snapshot_test.cpp(+17 -2)📝
sycl/src/kernels/cuda/qsa_decode_attn.dp.cpp(+185 -0)📝
sycl/src/kernels/cuda/qsa_select.dp.cpp(+30 -0)📝
sycl/src/kernels/cuda/s2_expert_grouped.dp.cpp(+2 -0)📝
sycl/src/kernels/gr_parity.cpp(+6 -2)📝
sycl/src/kernels/qsa_prompt_attn_parity.cpp(+36 -6)📝
sycl/src/prefill/prefill.cpp(+50 -2)📝
sycl/tools/fixups.py(+20 -0)📝
sycl/tools/gpustat.py(+13 -8)📄 Description
Sorry it took so long i have been working on nextsycl i had forgotten to bring in the enhancements here, hopefully this will get approved, Improvements all around!
Branch: maxfridbe/Strata_B70 intel-arc-0.2.0 (head
d1192104), based on mainf57c0adc; merges cleanly into maine88ee39d. Replaces #1111 (closed in the 0.2.0 tracker reset), cut down to what main does not have yet. Only sycl/ and docs/INTEL*.md change.Problem and result
On Arc Pro B70 and B65 (Battlemage, 32 GB), main’s SYCL engine has one hang, two failing tests and a slow first prompt, and its long prompts are slower than they need to be:
Also included, as small tooling fixes for multi-card and Podman hosts:
Related discussion
#1111 (closed by the 0.2.0 reset; this is its rebase), #423, #809. The hang fix, the cache and the test fixes need no scope agreement. The two prompt kernels change a SYCL-only prompt-path default; both have off switches. Happy to split this into three PRs (hang and test fixes / prompt kernels / tooling) if you prefer.
Approach
Validation
Environment: Arc Pro B70 (bmg-g31) + Arc Pro B65, 32 GB each, xe driver, PCIe Gen5 x8, Ryzen 9 9950X, 61 GiB RAM, Fedora Silverblue 44 (kernel 7.1.5), strata-sycl-dev image under rootless Podman (oneAPI 2026.1), AOT=bmg-g31. Revision: intel-arc-0.2.0
c44fb63b(d1192104only adds the B65 name), against mainf57c0adcbuilt the same way.Passed:
card model prompt main
f57c0adcintel-arc-0.2.0B70 Coder IQ1_M 2,185 1,312 / 87.6 1,449 / 88.1
B70 Coder IQ1_M 8,000 1,620 / 84.9 1,826 / 88.5
B70 Coder IQ1_M 40,000 1,580 / 77.6 1,909 / 78.7
B70 Coder IQ1_M 128,000 1,351 / 78.5 1,821 / 76.4
B70 IQ2_XS 2,185 1,053 / 80.1 1,355 / 77.4
B70 IQ2_XS 40,000 1,376 / 74.1 1,603 / 77.3
B65 Coder IQ1_M 2,185 948 / 60.1 1,018 / 62.0
B65 Coder IQ1_M 40,000 1,039 / 54.7 1,315 / 54.8
B65 Coder IQ1_M 128,000 861 / 53.6 1,246 / 54.4
B65 IQ2_XS 40,000 942 / 53.2 1,162 / 50.1
Decode moves with the text: the prompt kernels change the greedy output after a few dozen tokens, and MTP acceptance changes with it. With identical tokens, decode is unchanged.
Interleaved A/B on the B70 (same binary, --pcie-frac 0 --adapt-every 0 STRATA_PREFILL_MMQ=1, 2 rounds, prefill tok/s, old kernels → new):
Failed:
Not run:
Limits
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.