Skip to content

vllm.v1.attention.backends.b12x

b12x paged causal attention backend for SM12x.

Classes:

B12xPagedAttentionBackend

Bases: AttentionBackend

b12x paged attention backend for regular/GQA decoder layers.

B12xPagedAttentionImpl

Bases: AttentionImpl[B12xPagedMetadata]

b12x paged GQA attention implementation.

Methods:

__init__(num_heads, head_size, scale, num_kv_heads, alibi_slopes, sliding_window, kv_cache_dtype, logits_soft_cap=None, attn_type=AttentionType.DECODER, kv_sharing_target_layer_name=None, sinks=None)

_compile_paged_extend_entry(page_size)

Compile fixed-capacity paged-prefill entries without a live plan.

B12xPagedMetadataBuilder

Bases: AttentionMetadataBuilder[B12xPagedMetadata]

Metadata builder for b12x.

Decode and uniform speculative-verifier batches use preplanned graph buckets. Extend/prefill remains eager and does not affect uniform decode graph eligibility.

_kv_page_size(key_cache, value_cache)

Return the static kernel page geometry negotiated by vLLM.

The KV manager can split the configured storage block into a smaller kernel page when another backend shares its cache group. Cache shapes are fixed before graph capture, so this is not a live-length policy decision.