vllm.v1.attention.backends.mla.triton_mla
¶
Classes:
TritonMLAImpl
¶
Bases: MLACommonImpl[MLACommonMetadata]
Methods:
-
register_decode_warmup–Register the split-KV decode kernels for a bound KV cache.
register_decode_warmup(kv_cache, kv_cache_dtype)
¶
Register the split-KV decode kernels for a bound KV cache.
Mirrors forward_mqa's launch: MLAAttention views a uint8 fp8 cache as
fp8, num_kv_splits is any value _compute_num_kv_splits can select
up to max_model_len (clamped to the sliding window), and the query
keeps the model dtype.
_non_causal_multi_token_dcp_validated()
¶
Non-causal multi-token DCP has only been validated on gfx942.
_reserve_attn_logits_workspace(vllm_config, max_decode_rows, q_num_heads, kv_lora_rank, sliding_window=None)
¶
Pre-size the shared workspace for the decode split-KV attn logits.
Reserving at the worst case (max KV length -> max num_kv_splits,
max_decode_rows) before warmup/cudagraph capture means the per-call
get_simultaneous in forward_mqa never has to grow the buffer at
runtime (which would raise once the workspace is locked). Like
forward_mqa, the KV length is clamped to the layer's sliding window.