Brain teaser: strip all attention, MLP and embedding matrices from a Llama 3 — how many trainable params remain?

Sauers_ · x · 2026-10-16

A puzzle from @Sauers: a Llama 3 model has L layers, residual stream width d, and n neurons per layer. Remove every attention matrix, every MLP matrix, and the input/output embedding weights — how many trainable parameters are left? A nice exercise in understanding where Transformer parameters actually live (hint: mostly the norms).

Original post →

More from Models

Models channel →