flâneur — a map of the web's best reading

Inside the Transformer: The Life of a Token - Aleksa Gordić

aleksagordic.com · 2,216 words · saved by 1 readers

A deep dive into a modern dense transformer: YaRN, hybrid attention, soft capping, QK normalization, FLOPs/token, cluster sizing, and more.

In this post, I'll do a deep dive into the internals of a modern dense transformer [1] . I'll focus exclusively on the forward pass on a single GPU, as if we were about to perform a training step, while ignoring the backward pass and distributed systems details (in practice, large Transformers are sharded across multiple devices during both training and inference). As a running example, I'll use the exact architecture of Rnj 1.5 - a model I worked on with my team at Ashish Vaswani's AI Lab (Essential AI Labs). 💡 The team behind Rnj-1.5: Rnj 1.5 could not have happened without an amazing group

Explore this link on the map →

saved by

related reading