mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #809] [CLOSED] Intel arc 0.1.39 + perf fixes #2843
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#2843
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/809
Author: @maxfridbe
Created: 10/4/2026
Status: ❌ Closed
Base:
main← Head:intel-arc-0.1.39📝 Commits (10+)
6a0d56c#136: the fused experts take a 512-slot streamed ring (a whole layer's experts) by default6172e4a#136 P3: with the fused experts the prompt path's MoE buffers hold only what the fused kernels needc2bf349#136: the fused experts take a 1024-slot streamed ring by default (two layers' experts)bbe3d2aDecode on thread-block clusters (sm_90+): the QSA top-k and the greedy argmax, the same ids and tokens3e5880d#136: the fused int8 prompt experts for the native IQ packs (gate/up IQ2_XXS IQ2_XS IQ2_S IQ3_XXS IQ3_S IQ4_XS, down Q2_0 IQ4_NL; opt-in STRATA_PF_FUSED=1)e5c2836Merge upstream main (0.1.35) into b70bb47c5cMerge branch 'f-136-fused' into rel-0.1.36b3e9545Merge the 0.1.36 speed work: fused Q2_0 prompt experts on by default (STRATA_PF_FUSED=0 off), the native IQ packs' fused kernels opt-in (=1), cluster decode kernels; the fused test waits for its uploads41ad902sycl: port upstream 0.1.35 (re-migration of its changed engine files)78f071cdocs: 0.1.36's speed (fused Q2_0 prompt experts, cluster decode kernels) and their switches📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
sycl/tools/gpustat.py(+2 -1)📄 Description
Follow-up to #423 on top of the 0.1.39 release. Every change is in
sycl/or the Intel docs; no shared upstream file is touched.1. The 0.1.39 SYCL port did not build (fixes)
Two upstream changes merged for the release did not reach the port's copies of the files they touch. On the B70 (oneAPI 2026.1, AOT
bmg-g31)sycl/failed with 3 errors:ec35cf0):pin_current_threadreturns aThreadAffinity, butsycl/src/core/session.cpp/session.hppstill held along long.ba707d8/e50f266):NativeDense::loadtakeslayer_lo/layer_hi, but the port'snative_dense.cppkept the old signature.With those two 3-way merged, 0.1.39 builds with 0 errors. On the card, 21 of 25 kernel tests pass, and benchy matches the 0.1.38 port's speeds. Of the four failures:
iq_parityandple_parityneed model fixtures.s2_expert_grouped_paritycovers the s2 path (it fails on the 0.1.38 port too).conversation_snapshot_testaborted withmunmap_chunk(): invalid pointer. The port'sconversation_state.cpp(last synced at 0.1.31) and the test (0.1.32) predate #559's parking changes, while the port builds against upstream'sconversation_snapshot.hpp, which #559 changed. Merged here as well.Not ported yet: #559's batch slots (
--batch/"parallel"). The port'sverify.cpp/verify.hppdo not have them. It is opt-in, so default use is not affected.2. Prompt-path speedups
Measured on a B70 with each model's served config. Decode speed is unchanged.
STRATA_LEND_MIRROR=0turns it off.STRATA_SELECT_GEMM=0restores the old kernel.STRATA_ATTN_PERCELL=0restores the old kernel.The last two are FP32 in a different summation order, so they are not bitwise, like the CUDA build's tensor-core paths. Greedy outputs follow the same text and part ways at a near-tie after tens of tokens.
Time to first token, Coder IQ1_M on its served 256K config (measured on the 0.1.38 base):
IQ2_XS and Swift 1.5 at 128K: 191 -> 156 s.
Things tried that did not help are recorded in
sycl/TODO.md: 15 attention variants, including two XMX versions, and expert grouping on the GPU (its "6.5%" was mostly the profiler's own cost).3. benchy v1: a standard bench for Intel results
sycl/benchy.shruns every set-up model on fixed prompts (sycl/bench/v1: 20 / 2,185 / 8K / 40K / 128K / 256K tokens) with its own serve config, from a cold page cache. It reports:docs/INTEL_PERFORMANCE.mdholds every measured number: current results, dated history, the B50 / B580 / 2x B70 results from #423, and "Submitting numbers", which asks testers to post benchy's report plus their config.4. Smaller
setup_intel.py --checksized each model by the first card only. With two cards it now reports what fits across both.strata-sycl.sh: with noONEAPI_DEVICE_SELECTORset, a--layer-splitgetslevel_zero:gpu(the image pinslevel_zero:0). A set selector is still passed through.stage_roomfix removed: where #423's fix and yours overlapped, this keeps yours.docs/INTEL.md(build section, switches, a corrected "gather-bound" claim), plus the probe programs and three kernel benches (attn_bench,sel_scores_bench,xmx_int8_bench).Testing
ctest, benchy v1) is in progress. I will post its report as a comment.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.