Skip to content

vllm.v1.attention.ops.mxfp4_mla_store

Old import path, kept for PRs stacked on this one that still import it.

Use vllm.v1.attention.ops.mxfp4_mla.store.

Functions:

  • store_mxfp4_mla –

    Quantize the MLA latent to MXFP4 and write it into the paged cache.

store_mxfp4_mla(kv_c_normed, slot_mapping, cache, group=GROUP_SIZE)

Quantize the MLA latent to MXFP4 and write it into the paged cache.

Parameters:

  • kv_c_normed

    (Tensor) –

    [num_tokens, latent], the post-RMSNorm latent.

  • slot_mapping

    (Tensor) –

    [num_tokens] global slot indices; negative entries (PAD_SLOT_ID) are skipped.

  • cache

    (Tensor) –

    uint8, either the paged [num_blocks, block_size, row_bytes(latent)] layer view, whose block stride may exceed block_size rows when other layers' pages sit between blocks, or any contiguous tensor viewable as [num_slots, row_bytes(latent)].

  • group

    (int, default: GROUP_SIZE ) –

    number of latent elements sharing one E8M0 scale.