Tutorials Roadmap

Hands-on tutorials that turn vault theory into working code. Each tutorial is self-contained — copy-paste and run.

Philosophy: Implement algorithms from scratch first, then use libraries. You don’t understand it until you’ve built it.

Prerequisites

  • Python 3.10+, NumPy, Matplotlib
  • For DL tutorials: PyTorch
  • For NLP tutorials: transformers, datasets (HuggingFace)
pip install numpy matplotlib scikit-learn torch transformers datasets

From-Scratch ML Implementations

Build core algorithms using only NumPy. No sklearn, no magic.

Deep Learning Internals

Understand what happens inside neural networks before using frameworks.

Language Modeling (Karpathy’s makemore → nanoGPT Path)

Build language models from the simplest (bigrams) to GPT, step by step.

Data Science Workflows

Real-world patterns that the theory notes don’t cover.

Modern AI Workflows

End-to-end pipelines with pretrained models.

Framework Internals (tinygrad-inspired)

How DL frameworks actually work — from tensor ops to GPU execution.

#TutorialKey InsightDifficulty
2525 - How DL Frameworks WorkLazy eval → scheduling → kernel fusion → codegen → executionAdvanced
2626 - The Minimal Op SetALL of deep learning is ~25 operationsIntermediate
2727 - Tensor Internals Strides and ViewsStrides, views, why reshape doesn’t copy dataIntermediate
2828 - Build a Tensor LibraryBroadcasting + autograd on arrays, not scalarsAdvanced

Modern Generative Models

Understand how diffusion models generate samples.

#TutorialVault FoundationDifficulty
2929 - Diffusion Models from ScratchGenerative Models, VAEAdvanced

Reinforcement Learning

From policy gradients to PPO — the workhorse algorithms of RL.

#TutorialVault FoundationDifficulty
3030 - PPO from ScratchReinforcement Learning, Policy GradientsAdvanced

Meta: How to Train


Suggested Learning Paths

Path A: “I want to understand how ML works” (from-scratch)

01 → 02 → 03 → 04 → 05 → 06 → 15 → 07

Path B: “I want to build language models” (Karpathy track)

15 → 16 → 17 → 18 → 19 → 23 → 21 → 08 → 20

Path C: “I want to train models on real data” (practical)

09 → 10 → 11 → 24 → 12 → 13 → 14

Path D: “I want to understand deep learning deeply” (internals)

07 → 15 → 18 → 19 → 22 → 08 → 20

Path E: “I want to understand how frameworks work” (tinygrad track)

15 → 27 → 26 → 28 → 25


How to Use These Tutorials

  1. Read the vault note first — understand the concept
  2. Work through the tutorial — run every code block, modify values, break things
  3. Do the exercises — they force you to think, not just copy
  4. Connect back — each tutorial links to related vault notes and next tutorials

The goal is not to type code. It’s to understand what every line does and why.