Repository navigation
Commit 6f65fba
flydsl: gfx942 FP8 MQA logits indexer kernel (+ Triton FN/FNUZ fix) (ROCm#3913)
* flydsl: add gfx942 fp8 MQA logits indexer kernel
FlyDSL gfx942 kernel for the DeepSeek lightning indexer (fp8 MQA logits),
a drop-in for the Triton fp8_mqa_logits. Includes an adaptive grid.y
KV-column split for block-starved small-M/long-context prefill, in-kernel
FP8 FN->FNUZ handling, and correctness tests vs the torch and Triton
references. Also fixes the Triton fp8_mqa_logits mixed FN/FNUZ path
(no-op for fnuz/fnuz inputs).
Co-authored-by: Ville Pietilä <[email protected]>
Co-authored-by: Kristoffer Peyron <[email protected]>
Signed-off-by: Aakif Nawaz <[email protected]>
* flydsl: fix i32 index overflow in fp8 MQA logits output write
Co-authored-by: Ville Pietilä <[email protected]>
Signed-off-by: Aakif Nawaz <[email protected]>
* flydsl/triton: gate FN->FNUZ conversion to gfx942
Signed-off-by: Aakif Nawaz <[email protected]>
* flydsl: name MFMA tile-dim constants (MFMA_M/N/K)
Signed-off-by: Aakif Nawaz <[email protected]>
* flydsl: refactor fp8_mqa_logits test to aiter-op-test standard
Signed-off-by: Aakif Nawaz <[email protected]>
---------
Signed-off-by: Aakif Nawaz <[email protected]>
Co-authored-by: Ville Pietilä <[email protected]>
(cherry picked from commit 0571aea)1 parent 5a10402 commit 6f65fba
4 files changed
Lines changed: 951 additions & 0 deletions
File tree
- aiter/ops
- flydsl
- kernels
- triton/attention
- op_tests/flydsl_tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
54 | 62 | | |
55 | 63 | | |
0 commit comments