Skip to content

vllm.v1.attention.ops.rocm_aiter_mla_prefill

Compressed DCP context preparation for ROCm MLA.

Functions:

context_row_indices(chunk, device)

Map compact request-major rows to the padded rank-major AllGather.

expand_context(gathered, scale, row_indices, cu_seq_lens, weight, num_heads, qk_nope_head_dim, qk_rope_head_dim, v_head_dim)

Fuse row reorganization, dequantization, projection and K/V packing.

gather_compressed_context(cache, workspace, block_table, chunk, gather, cache_dtype)

Gather FP8 bytes, preserving the existing workspace row capacity.