
Part Overview
Part I establishes the core knowledge you will draw on throughout the rest of the book. We begin with machine learning and PyTorch fundamentals, then move into natural language processing, tokenization, sequence modeling, the Transformer architecture, and text generation. By the end of these six chapters, you will have a solid understanding of how text becomes numbers, how models learn patterns, and how the Transformer produces coherent language.
Chapters: 6 (Chapters 0 through 5) covering approximately 60,000 words of content with hands-on labs, worked examples, and exercises. The part closes with Chapter 6: Tools of the Trade, consolidating the PyTorch, NumPy, and tokenizer stack you will reach for in every subsequent part.
Every concept in this book rests on the foundations built here. Part I gives you the mathematical intuition, NLP building blocks, and Transformer fluency needed to understand, use, and customize large language models with confidence.
What's Next?
This part begins with Chapter 0: ML and PyTorch Foundations. Each chapter builds on the previous one, so we recommend reading Part I in order.