LLMs-from-scratch takes you on a journey to understand how LLMs work. This book guides you step-by-step in creating your own LLM, explaining each stage with clear text, diagrams, and examples. The described methods for training and developing small but functional models for educational purposes share similarities with techniques used to create large-scale foundation models like ChatGPT.