vllm.v1.attention.ops.rocm_aiter_mla_prefill
¶
Compressed DCP context preparation for ROCm MLA.
Functions:
-
context_row_indices–Map compact request-major rows to the padded rank-major AllGather.
-
expand_context–Fuse row reorganization, dequantization, projection and K/V packing.
-
gather_compressed_context–Gather FP8 bytes, preserving the existing workspace row capacity.
context_row_indices(chunk, device)
¶
Map compact request-major rows to the padded rank-major AllGather.
Source code in vllm/v1/attention/ops/rocm_aiter_mla_prefill.py
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.
Source code in vllm/v1/attention/ops/rocm_aiter_mla_prefill.py
gather_compressed_context(cache, workspace, block_table, chunk, gather, cache_dtype)
¶
Gather FP8 bytes, preserving the existing workspace row capacity.