vllm.model_executor.hw_agnostic.layers.activation ¶
Classes:
-
SiluAndMul–SwiGLU:
x -> silu(x[:d]) * x[d:]whered = x.shape[-1] // 2.
Functions:
-
get_act_and_mul_fn–Build the hw-agnostic activation-and-mul op named
act_fn_name.