LLMs in the Wild · Part 1 / 5
Three shapes of a model
You have met two shapes — the writer and the reader. Here is the whole family, including the one that translates.
You’ve met two models so far. A writer (Book 01) and a reader (Book 02).
They’re closer than they look. Same blocks, same — one rule of who-looks-at-whom tells them apart. There’s a third shape too. Here’s the whole family.
One family, three wirings
- The reads left-to-right and writes the next word — that’s Book 01, the model you chat with (GPT, Llama, Claude).
- The reads both directions to understand — that’s Book 02, BERT.
- The reads one whole sequence and writes a different one — translation, summarization. The classic is T5.
Try it: start on Decoder and watch one stack write the next token. Flip to Encoder-Decoder — now a reader feeds a writer: English in, French out.
That third shape is built for : the output is steered by an input you hand it, not free-form continuation.
What this book is about
This whole book is about the decoder — the chat models. But seen from the outside.
Book 01 was the mechanics: what happens inside one guess. Here we step back and look at the model as a thing in the world — a that gets made from data, prompted into tasks, graded on benchmarks, and sometimes goes wrong.
Three shapes, one family. Next, we meet the decoder from the outside — starting with how you talk to it.
Sources · 4
- Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of NAACL-HLT 2019 (pp. 4171–4186). arXiv:1810.04805.
- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., & Liu, P. J. (2020). Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer. Journal of Machine Learning Research, 21(140), 1–67. arXiv:1910.10683.
- Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention Is All You Need. Advances in Neural Information Processing Systems 30 (NeurIPS 2017). arXiv:1706.03762.
- Jurafsky, D., & Martin, J. H. (2026). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models (3rd ed., draft of January 6, 2026). Stanford University. Ch. 7 (Large Language Models); Ch. 10 (Masked Language Models).