Skip to content
LearnBuild a Tiny LLM

Build a Tiny LLM.
From Tokens to Text.

Build a working language model from scratch, in your browser: the tokenizer, embeddings, attention, the transformer block, and the sampler, in runnable NumPy. Then watch StoryByte, a real ~1M-parameter GPT we trained from scratch on TinyStories, write an original story. Every piece that computes runs live and reproduces the real model. No PyTorch, no GPU, no magic.

Course Overview

Modules

8

Duration

~6.5 hours

StoryByte, a real 1M-param GPTBuild it in NumPyRuns live in your browserTokens → Attention → Text

All 8 modules are free. Sign in to start learning and track your progress, and earn a certificate when you finish.

Learning Modules

Each module combines animated explanations, hands-on NumPy practice, and a knowledge check. You build ONE thing, StoryByte, a real tiny GPT, one piece per module, tracing the same prompt ("Once upon a time") from raw text all the way to a generated story.

Build a Tiny LLM: From Tokens to Text | Let's Data Science