← Lab
flopcross
confirmedGo · CPUInference, serving & evaluationJuly 7, 2026
the question
Where does transformer compute go, and when does attention overtake the FFN?
what came out
The FFN owns ~88% of fixed per-token FLOPs, but attention grows linearly with context and overtakes it at exactly 1.5 x ffn_dim tokens (13,440 for the 1.5B, 7,296 for the 0.5B), a clean architectural constant, because d_model cancels. Go, exact, pre-registered.
method & receipts
- Result: confirmed
- Pre-registered: the prediction was written down and committed before the run.
- Reproducible: one script re-runs the whole thing from scratch.
- Adversarial self-review: my own skeptic's pass over each claim, kept in the repo.
- Machine-readable claims: every reported number, in a checkable file.
- Tested: a correctness/benchmark suite ships alongside the code.
→ read the code and re-run it
github.com/v-code01/flopcross