vllm.models.beam.amd.attention_ops
¶
Fused Q/K normalization, position transforms, and attention output gating.
Functions:
-
beam_output_gate–Fuse gate operations while retaining activation-dtype rounding.
-
beam_qk_norm_rope–Round norm before position transforms and optionally insert BF16 K/V.
beam_output_gate(attn_output, gate, gate_bias, *, num_heads, head_dim, floor=0.0, temperature=1.0)
¶
Fuse gate operations while retaining activation-dtype rounding.
Source code in vllm/models/beam/amd/attention_ops.py
beam_qk_norm_rope(q, k, q_weight, k_weight, eps, positions, cos_sin_cache, head_dim, rotary_dim=0, is_neox_style=True, *, ssmax=False, value=None, kv_cache=None, slot_mapping=None)
¶
Round norm before position transforms and optionally insert BF16 K/V.