Adithya Balaji
Foundation Models · Interactive Crash Courses
offline6 models

Read six foundation models like you debug them live

Each course opens a clickable architecture: click a stage to see what it does and the exact source lines, read the layer-by-layer math, walk one sample through every shape, and drill the debug lab. All pages are fully offline and cite pinned upstream snapshots.

Vision encodersViT · CLIP · DINOv2
Multimodal & VLALLaVA · OpenVLA · π₀.₅
Per pagePipeline · math · stepper · code
Network callsNone

Courses

Pick a model to start

Cross-model comparison

Same questions, six answers: how each model tokenizes, projects, trains, and decodes
AspectViTCLIPDINOv2LLaVAOpenVLAπ₀.₅
Patch / token embeddingConv patch → tokenConv patch (img) + BPE (text)Conv patch + register/maskCLIP patches (CLS dropped)Fused DINO+SigLIP patchesSigLIP patches + prompt tokens
Special tokensCLSCLS (img) + EOT (text)CLS + register + maskIMAGE_TOKEN_INDEX (−200)action-bin tokens (last vocab)state + action tokens
Projection layerpatch conv → Dlinear proj to shared dimnone (raw features)MLP projector (2×GELU)MLP projector (3×GELU, fused)linear action/state proj
Training objectivesupervised cross-entropysymmetric contrastive (InfoNCE)DINO + iBOT + KoLeo (SSL)next-token cross-entropynext-token CE on action tokensflow-matching MSE
State representation— (no state)— (no state)— (no state)— (no state)none (explicit)discrete state tokens / state_proj
Output decodingclass logitscosine similarityfeature vectors / mapstext tokensdiscrete action bins → unnormcontinuous actions (Euler)

How to read any of these

  1. Start at the architecture map and click the stage you care about.
  2. Open the exact code from the drawer; it highlights the lines in place.
  3. Check the math card for the formula behind that layer.
  4. Follow one sample to watch shapes transform end-to-end.
  5. Break it on purpose in the debug lab, then confirm your fix.

Attribution, licenses, and per-file hashes: see ATTRIBUTION.md and source-manifest.json.