[PR #2487] [CLOSED] sycl/A770: large GRF for the grouped expert kernels (bit-identical; Alchemist default) #4071

Closed
opened 2026-11-07 15:32:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2487
Author: @aslater3
Created: 10/14/2026
Status: ❌ Closed

Base: main ← Head: a770/up-expert-grf


📝 Commits (1)

  • 55fb6e5 sycl/A770: large GRF for the grouped expert kernels (STRATA_EXPERT_LARGE_GRF, Alchemist default)

📊 Changes

1 file changed (+54 additions, -16 deletions)

View changed files

📝 sycl/src/kernels/cuda/iq_kernels.dp.cpp (+54 -16)

📄 Description

Title

sycl/A770: large GRF for the grouped expert kernels (bit-identical; Alchemist default)

Summary

On Arc A-series (Alchemist), the gate/up and down launches of native_expert_grouped run in large-GRF mode (256 registers per thread). This is the decode window's VRAM-hit expert kernel. The arithmetic is unchanged, so the output is bit-identical. Battlemage and every other device keep the compiler's default GRF and the same kernels.

What changed

  • sycl/src/kernels/cuda/iq_kernels.dp.cpp:
    • launch_gu_port / launch_down_port dispatch to a BIG template variant with grf_size<256>.
    • The choice comes from expert_large_grf(q): intel_gpu_gen == Alchemist by default. STRATA_EXPERT_LARGE_GRF=1 forces it on, =0 off.

Extra Notes

Arc A770 16 GB, xe, compute runtime 26.05, oneAPI 2026.1.

Kernel bench. native_grouped_parity --bench2 (in the bench PR), at the Coder's shape: 2560 × 640, 16 groups / 24 entries, 48 layers with their own experts.

formats default GRF large GRF
IQ2_S / IQ4_NL 218 µs 179 µs
IQ3_XXS / IQ4_NL 215 µs 197 µs
IQ3_S / Q2_0 280 µs 232 µs

Correctness. native_grouped_parity: 0 failures.

Decode. +1.3% on its own. The stepped window runs these kernels alongside the CPU's misses, so most of the kernel gain is hidden while the CPU pool is the longer side.

Not tested: A750 / A580, i915, Windows.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2487 **Author:** [@aslater3](https://github.com/aslater3) **Created:** 10/14/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `a770/up-expert-grf` --- ### 📝 Commits (1) - [`55fb6e5`](https://github.com/Niko1221/Strata/commit/55fb6e5436f8abb4c414fc4036dc337a17ed3050) sycl/A770: large GRF for the grouped expert kernels (STRATA_EXPERT_LARGE_GRF, Alchemist default) ### 📊 Changes **1 file changed** (+54 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `sycl/src/kernels/cuda/iq_kernels.dp.cpp` (+54 -16) </details> ### 📄 Description ## Title sycl/A770: large GRF for the grouped expert kernels (bit-identical; Alchemist default) ## Summary On Arc A-series (Alchemist), the gate/up and down launches of `native_expert_grouped` run in large-GRF mode (256 registers per thread). This is the decode window's VRAM-hit expert kernel. The arithmetic is unchanged, so the output is bit-identical. Battlemage and every other device keep the compiler's default GRF and the same kernels. ## What changed - `sycl/src/kernels/cuda/iq_kernels.dp.cpp`: - `launch_gu_port` / `launch_down_port` dispatch to a `BIG` template variant with `grf_size<256>`. - The choice comes from `expert_large_grf(q)`: `intel_gpu_gen == Alchemist` by default. `STRATA_EXPERT_LARGE_GRF=1` forces it on, `=0` off. ## Extra Notes Arc A770 16 GB, xe, compute runtime 26.05, oneAPI 2026.1. **Kernel bench.** `native_grouped_parity --bench2` (in the bench PR), at the Coder's shape: 2560 × 640, 16 groups / 24 entries, 48 layers with their own experts. | formats | default GRF | large GRF | |---|---|---| | IQ2_S / IQ4_NL | 218 µs | 179 µs | | IQ3_XXS / IQ4_NL | 215 µs | 197 µs | | IQ3_S / Q2_0 | 280 µs | 232 µs | **Correctness.** `native_grouped_parity`: 0 failures. **Decode.** +1.3% on its own. The stepped window runs these kernels alongside the CPU's misses, so most of the kernel gain is hidden while the CPU pool is the longer side. Not tested: A750 / A580, i915, Windows. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:32:59 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4071
No description provided.