Why architecture matters here
Placement failures show up as unstable training, gradient blowup, or slow convergence. Architecture matters because init + placement + warmup are one decision.
The architecture: every piece explained
The top strip is definitions. Post-norm x + norm(sublayer(x)). Pre-norm x + sublayer(norm(x)). Gradient flow — pre-norm has a clean residual path. Stability — large models pre-norm-friendly.
The middle row is training details. LR warmup need post-norm requires more. DeepNet init scaling for post-norm. Sandwich norm hybrid. Final LN still at head.
The lower rows are practice. Model choice modern LLMs pre-norm. Metrics loss smoothness. Ops — init + warmup + tests.
End-to-end flow
End-to-end: modern LLM uses pre-norm. Loss curve smooth from step 1. Warmup mild. Training scales to trillions without explosion. Compare to post-norm at same scale without DeepNet — early exploding gradients.