mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#3920
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/2203
Author: @aslater3
Created: 10/13/2026
Status: ❌ Closed
Base:
main← Head:a770/up-gr-sliced📝 Commits (2)
7a581e5sycl: fused GR read without the private GrMulti copy (GR_PICK); large GRF on Arc A-series only7c54a7dsycl/A770: fused GR read with more, smaller work-groups on Arc A-series📊 Changes
2 files changed (+170 additions, -34 deletions)
View changed files
📝
sycl/src/kernels/cuda/fused_gr.dp.cpp(+169 -34)📝
sycl/src/kernels/gr_bench.cpp(+1 -0)📄 Description
Title
Depends on #2193 (this branch contains its commit; review only the second commit,
sycl/A770: fused GR read with more, smaller work-groups on Arc A-series).Summary
After #2193 the fused GR read on an Arc A770 still launches too few work-groups to fill the card (80 for the sliced down kernel, 160 for the multi-token up kernel). On Alchemist this splits them further: the same values, summed in the same order, by more groups.
gr_bench1.2-1.3x faster, decode +3-5% on an A770, identical outputs. Default on Alchemist only; every other device launches today's kernels.STRATA_GR_MORE_GROUPS=1forces it on,=0off.What changed
sycl/src/kernels/cuda/fused_gr.dp.cpp(and one header comment insycl/src/kernels/gr_bench.cpp):gr_down_reduce: 8 slice loads in flight per step, then added one at a time, so the sum accumulates slices 0, 1, ..., 79 in the same sequence of float adds as the old loop (static_assert(GRS_SLICES % 8 == 0);-fp-model=precise).UPM_COLSstays 16 for every other user. Only group 0 writes the per-tokenlovalues, which every group computes identically.gr_more_groups(queue): once per process,strata::intel_gpu_gen == Alchemistby default, env override; independent ofSTRATA_GR_LARGE_GRF.How it was checked
Arc A770 16 GB,
xe, Linux 7.0, oneAPI 2026.1 (JIT), Ryzen 7 3800X, 30 GB RAM;a0116b27+ #2190 + #2193 with and without this commit, same day.gr_bench, 1-6 tokens, checksums identical for every token count:gr_multi_parity: 32 cases, 0 failures, withSTRATA_GR_MORE_GROUPS=0and=1.gr_parity: only the pre-existingQFUSE ... not writtenfailure thatmainhas on this card.Decode, Coder IQ1_M, 8K-token prompt, 256 tokens, greedy,
--resident-experts --max-context 131072 --kv int8 --kv-resident 20480 --spec 4 --mtp,STRATA_VERIFY_STEPPED=1: #2193 22.12 / 22.35 / 22.55 / 22.65 tok/s -> this PR 23.24 / 23.61 / 23.62 tok/s; output ids identical (72b762d5b2a3) in all seven runs.Not built or run on Battlemage or i915. SYCL-only file.
Extra Notes
Several other runs of both builds did not finish because of the decode hang reported in #2194; they are left out, not counted against either side.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.