Repository navigation
qwen35 cuda: opt-in all-length rows attention for multi-row BF16 decode windows - #4496
Conversation
afed04b to
b8d403a
Compare
|
sm_120 device check for the attention contract, from the still-to list. RTX 5060 Ti 16 GB (sm_120), driver 615.78.08, Linux aarch64, head
Run under idle-guard on the lab queue (ticket The served half of the still-to (Qwen3.8-27B + DFlash2 cells) needs the 27B ModelOpt checkpoint, which does not fit this 16 GB card - leaving that arm to whoever has the bigger box. |
b8d403a to
7645329
Compare
What this changes
Multi-row BF16 decode windows launch both the partial and the rows attention kernels, and the split happens at
GROUP_LEN = 8192. The rows kernel is already aligned with the one-row kernel's score and reduction order and writes the same partial representation the merge reads. WithTF_QWEN35_ATTN_ALL_ROWS=1, windows above one row use the rows kernel at every length, and the unused partial launch is skipped. Default off; one-row decode and the merge are unchanged.Checks
Still to run
On CUDA devices (sm_121 and sm_120): the attention contract, then Qwen3.8-27B + DFlash2 one-stream served cells at 2K and 7K context, A-B-B-A, tokens compared.