Gated MLP

Pinned implementation and paper LDLM @ e18c42a, not yet public · arXiv:2605.07933v1 · OpenWebText · 1024 · checkpoint, tokenizer and saved statistics not verified · How to read

Token decoder › 3 blocks › Gated MLP

Up projection

×

learned

Map 768 input features to 3,072 features in parallel with the gate.

u=ymlpWup{\htmlData{light=u up}{u}}={\htmlData{light=x}{y_{\mathrm{mlp}}}}W_{\mathrm{up}}
in
ymlpy_{\mathrm{mlp}} [B batch, T positions, 768 d]
out
uu [B batch, T positions, 3072 d_ff]
parameters
2,359,296 · × 3 blocks = 7,077,888
Parameters

2,359,296 parameters per instance.

Exact per-instance accounting
ComponentCalculationParameters
Weight matrix768×3,072768 \times 3{,}0722,359,296
Per-instance total2,359,296

This projection has no bias parameter.

The reference module holds the weight output by input, [out, in].

Across 3 independent blocks: 2,359,296×3=7,077,8882{,}359{,}296 \times 3 = 7{,}077{,}888 parameters.

Derived from the configured matrix dimensions; checkpoint tensors have not been independently counted.

Sources1

Direct evidence

The gated MLP: down(SiLU(gate x) · up x), three projections without bias.

The implementation, pinned at revision e18c42acdfb7, not yet public