qwen3_moe¶
qwen3_moe
¶
Qwen3-MoE on vLLM (vllm.model_executor.models.qwen3_moe).
Llama's names and Llama's fused block; the attention norms its queries and
keys. A block's mlp is the sparse mixture of experts, or a dense MLP on
the blocks mlp_only_layers names; either way its output is what the
block adds. The routing is inside vLLM's fused MoE kernel and has no values
here.
RENAME
module-attribute
¶
ENVOYS
module-attribute
¶
ENVOYS = {Qwen3MoeDecoderLayer: Layer, Qwen3MoeAttention: Attention, Qwen3MoeMLP: Mlp, Qwen3MoeSparseMoeBlock: Mlp}
Layer
¶
Bases: FusedLayer
The decoder block: forward(positions, hidden_states, residual) -> (hidden_states, residual).