🤖
AI from Zero to LLMs — A Beginner's Guide (v1)
You do not need to know anything about AI, machine learning, or advanced maths to read this. You need to be able to read code loosely and be willing to run a few commands. Everything else is explained when it first appears.
Contents
89 chapters, one page each. Prefer one long page? Read the whole book on one page.
- What you will be able to do at the end1 min
- Contents5 min
- Part 0 — Start here: how to use this guide
- 0.1 Who this guide is for1 min
- 0.2 The learning flow (use this for every chapter)2 min
- 0.3 The roadmap2 min
- 0.4 Set up your computer (do this now, ~20 minutes)2 min
- 0.5 The tiny bit of maths you actually need2 min
- 0.6 How to not get stuck1 min
- Part 1 — What is AI, really?
- Chapter 1 — Programs vs models: the one idea that starts everything5 min
- Chapter 2 — What "data", "features", and "learning" mean here4 min
- Chapter 3 — The family tree: AI, ML, deep learning, LLMs4 min
- Chapter 4 — Our running example: the Help Desk problem2 min
- Part 2 — Era 1: Rules (1950s–1980s)
- Chapter 5 — Teaching a computer with IF-THEN rules4 min
- Chapter 6 — Building a rule system (a real historical example)2 min
- Chapter 7 — Why rules broke down (the five walls)2 min
- Part 3 — Era 2: Learning from examples (1990s–2000s)
- Chapter 8 — The big switch: from rules to examples1 min
- Chapter 9 — Your first model: is this email spam?4 min
- Chapter 10 — How a model learns: loss and gradient descent4 min
- Chapter 11 — Turning words into numbers: bag-of-words and TF-IDF3 min
- Chapter 12 — Predicting the next word by counting (n-grams)6 min
- Chapter 13 — How do you know if a model is any good?4 min
- Part 4 — Era 3: Neural networks (2010s)
- Chapter 14 — What a neural network actually is6 min
- Chapter 15 — How neural networks learn: backpropagation, gently5 min
- Chapter 16 — Why "deep" matters2 min
- Chapter 17 — Networks that read sequences (RNNs) and why they struggled4 min
- Part 5 — Teaching machines what words mean
- Chapter 18 — The problem with treating words as symbols2 min
- Chapter 19 — word2vec: meaning from company6 min
- Chapter 20 — GloVe, FastText, and the family2 min
- Chapter 21 — The limit of static vectors, and what came next3 min
- Part 6 — The Transformer
- Chapter 22 — The problem: reading a sentence all at once2 min
- Chapter 23 — Attention explained with a highlighter2 min
- Chapter 24 — Self-attention, step by step with real numbers5 min
- Chapter 25 — Multiple heads, position, and the full block4 min
- Chapter 26 — Hands-on: a tiny Transformer you can run4 min
- Part 7 — Tokens
- Chapter 27 — Computers don't see words2 min
- Chapter 28 — How BPE builds a vocabulary (by hand)5 min
- Chapter 29 — Tokens in practice: cost, context, and fairness3 min
- Chapter 30 — Special tokens and chat templates2 min
- Part 8 — What an LLM actually is
- Chapter 31 — An LLM is a next-token guesser (that's genuinely it)3 min
- Chapter 32 — Walking through one prediction, end to end3 min
- Chapter 33 — How an LLM is trained (pretraining)4 min
- Chapter 34 — Making it an assistant (SFT and RLHF/DPO)5 min
- Chapter 35 — Why LLMs make things up4 min
- Part 9 — How an LLM answers you (inference)
- Chapter 36 — From your question to the first word2 min
- Chapter 37 — Choosing the next word: temperature, top-p, and friends4 min
- Chapter 38 — The memory trick that makes it fast (the KV cache)3 min
- Chapter 39 — What it costs, and how to think about it3 min
- Part 10 — Build your own LLM
- Chapter 40 — What you can realistically build1 min
- Chapter 41 — Project 1: train a language model from scratch6 min
- Chapter 42 — Project 2: fine-tune a real model with LoRA4 min
- Chapter 43 — Teaching preferences (a taste of DPO)2 min
- Part 11 — Making LLMs useful
- Chapter 44 — Prompting that actually works4 min
- Chapter 45 — The context window: your working-memory budget2 min
- Chapter 46 — Saving tokens and money2 min
- Chapter 47 — Project 3: give the model your own documents (RAG)5 min
- Chapter 48 — Tools, structured output, and agents3 min
- Chapter 49 — Testing your LLM app4 min
- Part 12 — Agents: LLMs that do things
- Chapter 50 — What "agentic" actually means (and when you don't need it)4 min
- Chapter 51 — The agent loop, spelled out5 min
- Chapter 52 — Tools: giving the model hands4 min
- Chapter 53 — Memory: how an agent remembers3 min
- Chapter 54 — Multi-agent systems and orchestration3 min
- Chapter 55 — Why agents fail, and how to tell3 min
- Part 13 — MCP: the universal adapter
- Chapter 56 — Why MCP exists (the N×M problem)3 min
- Chapter 57 — How MCP works: hosts, clients, servers, and primitives4 min
- Chapter 58 — Hands-on: build an MCP server and connect it5 min
- Part 14 — Guardrails: making it safe
- Chapter 59 — Why AI security is different4 min
- Chapter 60 — Guardrails: the layered defence5 min
- Chapter 61 — Securing prompts, context, and tools6 min
- Part 15 — Project 4: a real agent, end to end
- Chapter 62 — Build a support agent that can actually do things9 min
- Part 16 — Where to go next
- Chapter 63 — What you know now, and the honest gaps1 min
- Chapter 64 — A six-month plan after this guide1 min
- Chapter 65 — Project ideas by level1 min
- Part 17 — Model compression: distillation & small models
- Chapter 66 — What model weights actually are5 min
- Chapter 67 — Knowledge distillation: teaching a small model to imitate a big one6 min
- Chapter 68 — Project 5: distill a tiny model and run it in the browser (Bengaluru, next 30 days)12 min
- Part 18 — Agent frameworks & AI governance
- Chapter 69 — Agent frameworks: LangGraph, CrewAI, and the SDKs7 min
- Chapter 70 — AI governance and compliance6 min
- Part 19 — Under the hood: optimizers, efficient attention, and quantization
- Chapter 71 — How AdamW actually works6 min
- Chapter 72 — GQA: shrinking the KV cache without losing (much) quality5 min
- Chapter 73 — Quantization: from float32 to int4, the actual algorithm7 min
- Part 20 — Agents in the real world: harnesses, loops, and production
- Chapter 74 — The harness: everything around the loop15 min
- Chapter 75 — Loops that run for hours: long-horizon agents12 min
- Chapter 76 — Evaluating agents: "works once" vs "works every time"8 min
- Chapter 77 — Deploying agents to production12 min
- Chapter 78 — Agent interop: AGENTS.md, Skills, MCP, and A2A8 min
- Chapter 79 — Project 6: an overnight agent that opens real pull requests8 min
- Part 21 — Beyond next-token prediction: decision models and world models
- Chapter 80 — System One models: Jev and "LLM writes, model decides, code acts"14 min
- Chapter 81 — JEPA and world models: predicting meaning, not tokens11 min
- Appendix A — Glossary (plain language)
- Appendix B — Math corner (only what you need)
- Appendix C — Setup and troubleshooting
- Appendix D — Cheat sheets
- Appendix E — Master reading list
- Appendix F — Answers to "Check yourself"
Generated from real-life-ai-example-v1.md · 8 Oct 2026 16:36