Topic

LLMs from Scratch book

All digests tagged LLMs from Scratch book

Suggested route

Topic journey

Move from earlier context through the available material to the newest signals. This route is a reading aid, not a difficulty ranking.

Start here

Build A Reasoning Model Scratch 1: Motivation & Code Setup Aug 30, 2026 · 43:27 Learn how to build reasoning models from scratch, tracing the evolution from conventional LLMs to agent harnesses. The video covers setup using 'uv' and PyTorch best practices.

Build context

Build A Reasoning Model Scratch 2: Loading a Base Model, Text Generation, and KV Caching Sep 5, 2026 · 1:36:42 This guide details loading pre-trained LLMs (like Qwen3) and optimizing text generation through tokenization, KV caching, and torch.compile. Learn how to achieve high tokens/second throughput for reasoning models. Build A Reasoning Model Scratch 2: Loading a Base Model, Text Generation, and KV Caching Sep 6, 2026 · 1:36:42 This deep dive covers loading pre-trained LLMs (Qwen3), implementing autoregressive text generation in PyTorch, and optimizing performance using KV caching and torch.compile for maximum inference speed. Build A Reasoning Model Scratch 3: The Verifier for Evaluation and RL with Verifiable Rewards Sep 13, 2026 · 1:26:47 The video details building a verifier for LLM evaluation on math benchmarks. This robust pipeline involves extracting the final answer, normalizing the format, and using symbolic math libraries like sympy to verify mathematical equivalence for RL training.

Recent signals

Build A Reasoning Model From Scratch 8: Distillation Oct 17, 2026 · 1:21:18 Model distillation offers an efficient alternative to RLVR for reasoning LLMs. By training a smaller student model on the outputs of a large teacher model, developers can achieve high performance with reduced computational cost. Build A Reasoning Model From Scratch 6: Reinforcement Learning 1 (Implementing GRPO for RLVR) Oct 3, 2026 · 1:26:54 This session details implementing Reinforcement Learning with Verifiable Rewards (RLVR) using the GRPO algorithm to train a reasoning model. The process involves calculating rewards, advantages, and policy gradient loss to enhance reasoning capability. Build A Reasoning Model From Scratch 4: Inference Scaling 1 (Temperature, Top-p, Self-Consistency) Sep 19, 2026 · 1:37:12 This deep dive explores inference-time scaling techniques for LLMs, covering Chain-of-Thought prompting, Temperature Scaling, Top-p filtering, and Self-Consistency. Learn how to boost model accuracy by managing compute trade-offs.

Browse view