Programs / 6 weeks · 8 tools

LLM From Scratch

A hands-on 6-week course that takes you from tokenisation to a working transformer, with interactive tools that make the maths visible.

Who it's for: Intermediate developers and ML learners who want to understand LLMs by building one.
Your stamps in this program0 / 0

Week 1: Tokenization

  • BPE Tokenizer Visualizer

    Interactive BPE tokenizer visualizer. See Byte Pair Encoding happen step by step, watch character pairs merge, and compare sequence lengths.

    Week 1 · Day 1Visualiser
    Open ↗
  • Training Batch Shape Debugger

    Interactive batch shape debugger for language model training. Compute samples per epoch, batches per epoch, tokens seen, and memory footprint.

    Week 1 · Day 2Visualiser
    Open ↗
  • LLM Parameter Counter

    Interactive LLM parameter counter. Break down GPT-style model parameters layer by layer. Compare configs, toggle weight tying, estimate memory usage.

    Week 1 · Day 5Calculator
    Open ↗
  • Loss & Perplexity Converter

    Interactive loss and perplexity converter. Two-way conversion between cross-entropy loss and perplexity.

    Week 1 · Day 6Calculator
    Open ↗

Week 2: Transformer

  • Attention Matrix Explorer

    Interactive attention matrix explorer. See Q, K, V projections, scaled dot-product attention, causal masking, and softmax weights in real time.

    Week 2 · Day 9Visualiser
    Open ↗

Week 3: Training

Week 4: Generation

  • Temperature & Sampling Playground

    Interactive temperature & sampling playground. Visualise how temperature, top-k, and top-p reshape probability distributions in real time.

    Week 4 · Day 3Visualiser
    Open ↗

Week 6: Optimize

  • Chinchilla Scaling Calculator

    Interactive Chinchilla scaling calculator. Enter model parameters to get the optimal training token count, or enter a token budget to get the optimal…

    Week 6Calculator
    Open ↗