Skip to content

vllm.ir.ops

Modules:

Functions:

fused_add_rms_norm(x, x_residual, weight, epsilon, variance_size=None)

Fused add and weighted root-mean-square layer normalization.

gelu_and_mul_sparse(x, std_multiplier, approximate='none')

Apply Gaussian sparsification, GELU, and gated multiplication.

rms_norm(x, weight, epsilon, variance_size=None)

Weighted root-mean-square layer normalization.

rotary_embedding_query_only(positions, query, head_size, cos_sin_cache, is_neox)

RoPE over query only, for layers that reuse another layer's KV cache.