vllm.model_executor.models.transformers.layers
¶
Layer resolution for the Transformers modeling backend.
Layers may come from the in-tree and the hw-agnostic path,
resolved via vllm.model_executor.hw_agnostic.resolve.
Functions:
-
get_act_and_mul_fn–Fused activation-and-mul op for
act_fn_name, preferring hw-agnostic.
get_act_and_mul_fn(act_fn_name)
¶
Fused activation-and-mul op for act_fn_name, preferring hw-agnostic.
Resolved per call because the op is name-parameterized: an activation with no hw-agnostic equivalent falls back to vLLM individually.