llm/from-scratch

Implement Qwen3.8‑27B from scratch in PyTorch.

Part 1 is free: how a frontier LLM turns text into tokens and predicts the next one.

Free · 19 min · plays right here once you enter your email.

You'll get Part 1 now, plus a few emails about the full course. Unsubscribe in one click.

In Part 1

Where Part 1 leads

  1. The building blocks of Qwen and today's open LLMs
  2. Gated DeltaNet: a fixed-size memory instead of a growing cache
  3. Assemble Qwen3.8‑27B and load the official weights
  4. Inference, then DeepSeek 7B & 67B from the same building blocks

From the instructor behind the NeRF, 3D Gaussian Splatting and Diffusion Models from-scratch courses.

4,000+ students · 2,900+ GitHub stars