Book 01 Intermediate
Build a Large Language Model (From Scratch)
by Sebastian Raschka
- Publisher
- Manning, 2024
- Free online
- No (the code is free)
- Goodreads
- 4.57 of 5 from 430 ratings
Why read it
You write a GPT-style model in PyTorch step by step, with no LLM library: tokenising text, attention, the transformer blocks, pretraining, loading open weights, then fine-tuning the model to classify text and to follow instructions. The model is small enough to run on a laptop. Read it if you can code in Python and want to understand a language model by building one.
What people said
βSebastian combines deep knowledge with practical engineering skills and a knack for making complex ideas simple. This is the guide you need!β
Chip Huyen, author of Designing Machine Learning Systems and AI Engineering manning.com β
βThe most understandable and comprehensive explanation of language models yet!β
Cameron Wolfe, Senior Scientist, Netflix manning.com β
Watch
