InferQuest
← Quest map
Phase 1 · Foundations

The Forward Pass

Build GPT-2 from nothing, load real weights, sample text.

0/6 · 630 XP
You’re previewing the curriculum. Sign in (top right) to track progress, take knowledge checks, and unlock the verifiers.
Tasks
  • watch+40 XPresource ↗
  • From scratch in PyTorch — embeddings, attention, MLP, layernorm placement. No nn.Transformer anything.

    build+150 XP
  • Implement scaled dot-product attention (causal + non-causal, numerically stable) and pass the harness — checked against torch SDPA including a large-logit stability case.

    build+150 XPauto-verified
  • Pull the HF checkpoint into your implementation. If it rambles, your shapes are wrong somewhere.

    build+100 XP
  • BPE from scratch. Explains half of all 'weird LLM behavior' — and why streaming detokenization is subtle.

    build+100 XPresource ↗
  • Min-p (ICLR 2025) ships in every engine now — read arxiv.org/abs/2407.01082 alongside. Include beam search: Perplexity hands candidates its exact signature and unit tests, and Mistral asks top-k/top-p from scratch with no libraries.

    build+90 XPresource ↗