Skip to content

vllm.v1.attention.ops.flydsl_kernels.ultraquant_decode_hd256

Functions:

build_ultraquant_decode_hd256_module(num_seqs, num_kv_heads, num_partitions, padded_slot, max_blocks_per_seq=512, softmax_scale=None, query_group_size=QUERY_GROUP_SIZE, kv_block_size=KV_BLOCK_SIZE, tile_groups_per_partition=1, fuse_qrot=True, stride_q_seq=None, stride_q_head=None)

Build the production UltraQuant D=256 decode kernel.

padded_slot is the per-(token, head) slot stride in bytes (kv_cache.shape[3], >= 272). Cache layout is [num_blocks, block_size, num_kv_heads, padded_slot] uint8 AoS.

QK is always scaled FP4×E4M3 MFMA; V always uses native CVT + HW transpose; tile-groups are always strided. fuse_qrot selects the in-kernel WHT when the query layout is eligible.