AI engineering glossary · Transformers LLM architecture

What is post-norm?

Post-norm (also called Post-LN): The block layout of the original Transformer, where normalisation is applied after adding the sublayer output to its input. It can give good results but training deep stacks usually needs careful learning-rate warmup, so most large language models moved to pre-norm.

Level: advancedTopic: Transformers LLM architecture

Post-norm: an example

x = LayerNorm(x + Attention(x)); then x = LayerNorm(x + MLP(x)).

Related terms

More Transformers LLM architecture terms

Where you learn it

Post-norm is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.