"Understanding Transformers" is a 13-page introduction to the math behind modern language models. I'd recommend it to anyone new to the subject. It explains how text becomes vectors and how a Transformer combines the outputs of attention heads to produce a context-aware representation of each token.
https://t.co/Rlun9QT7zx