Does FA4 support split-kv flashdecode with cudagraph? #2693
Unanswered
biandangan
asked this question in
Q&A
Replies: 1 comment
-
|
Cuda graph support for split-kv will result from #2559, which is under review. The solution is to add a metadata tensor holding num splits, which is populated in a separate prepare kernel and used in the main kernel by a modified varlen scheduler. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
PR #1940 adds parallelism across the KV dimension and implements FlashDecode.
However, in SGLang's FlashAttentionBackend, there is a comment:
where
num_splits=0means "use a heuristic to automatically determine the optimal number of splits." Forcingnum_splits=1effectively disables KV-dimension parallelism, which suggests FlashDecode may not be active when CUDA Graph is enabled.Does FA4 support FlashDecode with CUDA Graph for MLA/MQA/...? If not, is this a known limitation or something planned for a future release?
Beta Was this translation helpful? Give feedback.
All reactions