Skip to content

DFlash/Domino: Add support for the FlexAttention FLASH backend#714

Open
zou3519 wants to merge 1 commit into
sgl-project:mainfrom
zou3519:rzou/flex-attention-flash-backend
Open

DFlash/Domino: Add support for the FlexAttention FLASH backend#714
zou3519 wants to merge 1 commit into
sgl-project:mainfrom
zou3519:rzou/flex-attention-flash-backend

Conversation

@zou3519

@zou3519 zou3519 commented Jul 21, 2026

Copy link
Copy Markdown

Adds an option to turn on FAv4 backend for FlexAttention (it remains off by default). This is significantly faster on Blackwell than the default backend (which is triton). We unfortunately need to monkey-patch PyTorch (in 2.11, which is what SGLang is pinned to right now). Whenever SpecForge can upgrade to PyTorch >= 2.13 then we can get rid of the monkeypatches (and also the correctness test).

This PR also cleans up the attention implementation a little.

Adds an option to turn on FAv4 backend for FlexAttention. This is
significantly faster on Blackwell than the default backend (which is
triton). We unfortunately need to monkey-patch PyTorch (in 2.11, which
is what SGLang is pinned to right now). Whenever SpecForge can upgrade
to PyTorch >= 2.13 then we can get rid of the monkeypatches (and also
the correctness test).

This PR also cleans up the attention implementation a little.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@zou3519
zou3519 marked this pull request as ready for review July 21, 2026 19:31
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@zou3519

zou3519 commented Jul 21, 2026

Copy link
Copy Markdown
Author

cc @maocheng23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant