[PR #2756] [CLOSED] sycl/A770 prefill: QSA attention 128 queries a launch on Alchemist (bitwise); parity test hashes the FP32 kernel #4248

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

📋 Pull Request Information

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

Base: main ← Head: a770/up-pf-attn-batch


📝 Commits (1)

  • d5874f0 sycl/A770 prefill: QSA attention 128 queries a launch on Alchemist (bitwise); parity test hashes the FP32 kernel

📊 Changes

2 files changed (+43 additions, -3 deletions)

View changed files

📝 sycl/src/kernels/qsa_prompt_attn_parity.cpp (+28 -1)
📝 sycl/src/prefill/prefill.cpp (+15 -2)

📄 Description

sycl/A770 prefill: QSA attention 128 queries a launch on Alchemist (bitwise); parity test hashes the FP32 kernel

pf_attn_batch() / STRATA_PF_ATTN_BATCH: queries per qsa_decode_attn_batch launch in the prompt's QSA attention.
Alchemist default 128 (32 elsewhere, unchanged). Every query's work-groups are its own, so the batch changes no bit;
its scratch (~0.8 MB a query) shares the prompt region with the MoE half's larger scratch.

qsa_prompt_attn_parity: OLDHASH (a hash of the FP32 kernel's output), QPA_OLD_ONLY=1 (only that kernel: the XMX one
refuses an A770, 86,784 B of local memory over its 64 KiB) and QPA_BATCH. A770, 8K context, 2,048 queries:
batch 32 56.0 ms, 64 52.1, 128 50.9, 256 50.3, 512 49.9, the same hash. Engine (Coder IQ1_M, 8K code prompt, 2 pairs,
STRATA_PREFILL_TIMING=1): qsa attn 2269/2270 -> 2077/2078 ms, prefill 712.3/755.5 -> 738.6/763.8 tok/s, reference
tokens in all four.

🤖 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/2756 **Author:** [@aslater3](https://github.com/aslater3) **Created:** 10/16/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `a770/up-pf-attn-batch` --- ### 📝 Commits (1) - [`d5874f0`](https://github.com/Niko1221/Strata/commit/d5874f0749c01b282224f5609a79fcf10f58a46a) sycl/A770 prefill: QSA attention 128 queries a launch on Alchemist (bitwise); parity test hashes the FP32 kernel ### 📊 Changes **2 files changed** (+43 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `sycl/src/kernels/qsa_prompt_attn_parity.cpp` (+28 -1) 📝 `sycl/src/prefill/prefill.cpp` (+15 -2) </details> ### 📄 Description ## sycl/A770 prefill: QSA attention 128 queries a launch on Alchemist (bitwise); parity test hashes the FP32 kernel pf_attn_batch() / STRATA_PF_ATTN_BATCH: queries per qsa_decode_attn_batch launch in the prompt's QSA attention. Alchemist default 128 (32 elsewhere, unchanged). Every query's work-groups are its own, so the batch changes no bit; its scratch (~0.8 MB a query) shares the prompt region with the MoE half's larger scratch. qsa_prompt_attn_parity: OLDHASH (a hash of the FP32 kernel's output), QPA_OLD_ONLY=1 (only that kernel: the XMX one refuses an A770, 86,784 B of local memory over its 64 KiB) and QPA_BATCH. A770, 8K context, 2,048 queries: batch 32 56.0 ms, 64 52.1, 128 50.9, 256 50.3, 512 49.9, the same hash. Engine (Coder IQ1_M, 8K code prompt, 2 pairs, STRATA_PREFILL_TIMING=1): qsa attn 2269/2270 -> 2077/2078 ms, prefill 712.3/755.5 -> 738.6/763.8 tok/s, reference tokens in all four. 🤖 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:34:19 +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#4248
No description provided.