nemo_automodel.components.models.qwen3_moe.layers
nemo_automodel.components.models.qwen3_moe.layers
Module Contents
Classes
Data
API
Bases: Module
Qwen3 MoE attention (query/key per-head RMSNorm + RoPE) compatible with TE/SDPA backends.
Shapes:
- Input: x -> [B, S, H]
- Projections: q: [B, S, n_heads, head_dim] k/v: [B, S, n_kv_heads, head_dim] -> repeated to n_heads via groups
- Output: [B, S, H]
head_dim
k_norm
k_proj
num_heads
num_kv_heads
o_proj
q_norm
q_proj
v_proj