vllm.v1.attention.ops.rocm_aiter_mla_merge ¶
Merge AITER segmented MLA split-K partials into output plus natural-log LSE.
This mirrors AITER's own segment reduction, including its tiles_per_segment = cdiv(seq_len, NUM_SEGMENTS * TILE_SIZE) partitioning, so it has to move together with the skip_reduce=True call in the AITER MLA backend. It is a rank-local split-K merge and unrelated to any collective reduce; the natural-log LSE it returns is what the cross-rank DCP merge consumes.
Functions:
-
merge_mla_segments_triton–Merge AITER base-2 segment partials into output and natural-log LSE.
merge_mla_segments_triton(segm_output, segm_max, segm_expsum, seq_lens, tile_size, out_dtype) ¶
Merge AITER base-2 segment partials into output and natural-log LSE.