Build a Large Language Model (From Scratch)
#1Learn to build an LLM from the ground up with hands-on code
This Manning Publications book by Sebastian Raschka guides readers through building a GPT-style large language model from scratch using Python and PyTorch. It covers tokenization, transformer architecture, pre-training, and fine-tuning with clear, step-by-step code examples. The book is designed for ML practitioners and engineers who want a deep, practical understanding of how modern LLMs like ChatGPT actually work under the hood.