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

Denoiser › 12 denoiser blocks › MLP

Expansion

×

learned

Map 768 features to 3,072.

h=xmlpW1+b1{\htmlData{light=pre-activation up}{h}}={\htmlData{light=x}{x_{\mathrm{mlp}}}}W_{1}+b_{1}
in
xmlpx_{\mathrm{mlp}} [B batch, T positions, 768 d]
out
hh [B batch, T positions, 3072 d_ff]
parameters
2,362,368 · × 12 blocks = 28,348,416
Parameters

2,362,368 parameters per instance.

Exact per-instance accounting
ComponentCalculationParameters
Weight matrix768×3,072768 \times 3{,}0722,359,296
Output bias3,0723{,}0723,072
Per-instance total2,362,368

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

Across 12 independent blocks: 2,362,368×12=28,348,4162{,}362{,}368 \times 12 = 28{,}348{,}416 parameters.

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

Sources1

Direct evidence

The standard MLP: an affine layer, GELU with the tanh approximation, an affine layer.

The implementation, pinned at revision e18c42acdfb7, not yet public