SiLU
×Activate each gate feature independently.
- in
- [B batch, T positions, 2048 expert d_ff]
- out
- [B batch, T positions, 2048 expert d_ff]
SiLU and the product run in float32 and are cast back before the down projection (model.py 744).
Explanation
is the logistic sigmoid.
Sources
In codeF.silu(self.w1(x).float())
Direct evidence
Each routed expert is its own SwiGLU MLP of moe_inter_dim hidden features.
model.py 730–744 ↗ · deepseek-ai/DeepSeek-V3.2-Exp @ 87e509a2e5a1
Excerpt
self.w1 = Linear(dim, inter_dim)
self.w2 = Linear(inter_dim, dim)
self.w3 = Linear(dim, inter_dim)… lines 733–743 omitted …
return self.w2((F.silu(self.w1(x).float()) * self.w3(x).float()).type_as(x))