vllm.ir.ops ¶
Modules:
-
activation– -
layernorm–
Functions:
-
fused_add_rms_norm–Fused add and weighted root-mean-square layer normalization
-
gelu_and_mul_sparse–Apply Gaussian sparsification, GELU, and gated multiplication.
-
rms_norm–Weighted root-mean-square layer normalization
fused_add_rms_norm(x, x_residual, weight, epsilon, variance_size=None) ¶
Fused add and weighted root-mean-square layer normalization
Source code in vllm/ir/ops/layernorm.py
gelu_and_mul_sparse(x, std_multiplier, approximate='none') ¶
Apply Gaussian sparsification, GELU, and gated multiplication.
Source code in vllm/ir/ops/activation.py
rms_norm(x, weight, epsilon, variance_size=None) ¶
Weighted root-mean-square layer normalization