Skip to content

An interactive companion to the book

Build a Large Language Model, visually.

Every chapter of Sebastian Raschka's LLMs from Scratch rebuilt as an explorable page — the algorithms run live in your browser, so you can poke at them while you read.

Chapters

Chapter 1 — Understanding LLMs

Chapter 2 — Working with Text Data

Chapter 3 — Attention Mechanisms

Chapter 4 — Implementing a GPT Model

Chapter 5 — Pretraining

Chapter 6 — Fine-tuning for Classification

Chapter 7 — Fine-tuning to Follow Instructions