Skip to content

flash-attn2: move to main for XPU improvements - #1275

Merged
github-actions[bot] merged 1 commit into
mainfrom
fa2-xpu-improvements
Oct 26, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fa2-xpu-improvements

Conversation

@danieldk

Copy link
Copy Markdown
Member

Move to main to get the improvements from
huggingface/kernels#921

@danieldk

Copy link
Copy Markdown
Member Author

/kernel-bot build flash-attn2

@github-actions

Copy link
Copy Markdown

This PR changes source code for the following kernel(s): flash-attn2.

If you have the kernel-bot build permissions, then trigger /kernel-bot build flash-attn2 yourself. Otherwise, a maintainer will review the PR and will take an appropriate action. Thanks for your patience.

@github-actions github-actions Bot added the chore Version bumps, releases, misc maintenance label Oct 26, 2026
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Build request processed.

Command: /kernel-bot build flash-attn2
Mode: build only
Target branch: pr-1275
PR head SHA: 32fac6bff7a898a98d486a09495e0ae7c03a9ca5
Workflows: build.yaml, build-mac.yaml, build-windows.yaml

Dispatched (1):

@danieldk

Copy link
Copy Markdown
Member Author

/kernel-bot merge-and-upload flash-attn2

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Build request processed.

Command: /kernel-bot merge-and-upload flash-attn2
Mode: merge, build and upload
Target branch: ``
PR head SHA: 32fac6bff7a898a98d486a09495e0ae7c03a9ca5
Workflows: `build.yaml, build-mac.yaml, build-windows.yaml`

Merge result: Pull Request successfully merged

Dispatched (1):

Hub uploads:

@github-actions
github-actions Bot merged commit 18153cd into main Oct 26, 2026
9 checks passed
@github-actions
github-actions Bot deleted the fa2-xpu-improvements branch October 26, 2026 12:04
github-actions Bot pushed a commit that referenced this pull request Oct 28, 2026
Same issue as #1275. megablocks still pins kernel-builder at `d054906`
(before huggingface/kernels#921), so the `xpu20261` variants are built
without AOT: the `.so` only carries a `spir64` JIT image.

The CRI grouped GEMM (`MoE::xe35`) is AOT-only by design (#1066), so it
is missing from these builds entirely. On CRI, `xpu_fused_moe` segfaults
in `getDeviceKernelInfo` when it dispatches to the xe35 kernel.

| variant | `.so` size | offload sections |
|---|---|---|
| `torch213-xpu20260` | 8.3 MB | `spir64_gen` + `spir64` |
| `torch214/215-xpu20261` | 3.9 MB | `spir64` only |

This moves megablocks to kernel-builder `main` (same lock as
flash-attn2). Note that this also bumps sycl-tla from v0.9.2 to v0.9.3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Version bumps, releases, misc maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants