← TinyGPT · docs · devlog · roadmap · speedup
source: docs/learn/curriculum.md · view on GitHub ↗

TinyGPT learning curriculum — ground up

This is the owner learning roadmap from first principles to a self-improving factory for Mac-local specialist models: a self-improving factory in practice, not a pile of disconnected courses.

The goal is not to “finish a course.” The goal is to build durable taste:

10/10 Bar

The roadmap is good enough only if it satisfies all of these:

  1. Ground-up order — no DPO, LoRA, RLVR, or eval jargon before the underlying model/training concepts are in place.
  2. One spine — every module fits the same arc: concept -> toy implementation -> TinyGPT anchor -> factory consequence.
  3. Exercises, not passive reading — each module has something to compute, inspect, run, or write.
  4. Mastery gates — each module has a concrete “you understand it when” check.
  5. Project transfer — every module says how it changes SQL/factory work.
  6. External anchors — one or two canonical external resources per stage, used as support, not as the curriculum owner.
  7. Progress tracking — learning state lives in ../learning-progress.md, with evidence.
  8. Cadence — each week ends in a note, a repo artifact, or a recipe change.
  9. Failure feedback — failed TinyGPT runs create the next learning prompt.
  10. No random walk — interesting topics are parked unless they improve target selection, data, post-training, eval, packaging, or reporting.

Operating Loop

For each module:

read -> explain -> implement/inspect -> connect to TinyGPT -> change a recipe/report

Suggested weekly cadence:

BlockTimeOutput
Read/watch30-60 minnotes on the concept
Rebuild toy version60-120 mintiny script, notebook, or code inspection
TinyGPT bridge30-60 minpoint to the repo file/run where it matters
Written checkpoint15 minone paragraph in the next report or learning note

Do not advance because a file was read. Advance when the mastery gate is met.

Canonical External Anchors

Use these as supporting material:

The project still owns the path. External material fills intuition gaps; it does not decide what to build next.

Master Roadmap

#ModuleLearnExerciseRepo AnchorMastery Gate
1Functions, data, parametersA model is a parameterized function; learning means choosing parameters from dataFit y = mx + b by hand on 5 points; explain fixed data vs moving parameterssession-01-neural-net-basics.mdYou can explain what a “parameter” is without using LLM examples
2Loss and gradient descentLoss turns wrongness into one number; gradients say how to change parametersCompute MSE for two (m,b) guesses; take one gradient-descent stepsession-02-gradient-descent.mdYou can predict what too-high and too-low learning rate look like
3Vectors, matrices, tensorsNeural nets are mostly structured multiply/add over arraysRewrite a one-input line as a dot product; trace tensor shapes through one layerllm-mechanics-fundamentals.md, essential-vs-optimization.mdYou can read a shape error and identify which axis is wrong
4Non-linear neural nets + backpropStacking linear layers only stays linear; activations and chain rule make depth usefulTrain a tiny 2-layer MLP on a non-linear toy dataset; explain backprop as credit assignmentsession-03-non-linearities.mdYou can explain why a model can fit curves after adding activation functions
5ML paradigms and scalingSupervised learning, self-supervision, imitation, RL, and scale each solve different partsClassify TinyGPT attempts as pretrain, SFT, preference tuning, eval, or routingsession-04-ml-paradigms.md, session-05-scaling.mdYou can say why scale helps knowledge but does not fix bad evals or bad data
6Tokenization, embeddings, language modelingText becomes tokens; tokens become vectors; next-token prediction creates language skillTokenize three prompts; inspect how SQL punctuation and identifiers splitsession-06-tokenization-embeddings.md, ../tool_call_extractor.mdYou can explain why tokenization affects SQL/tool-call reliability
7Attention and transformer blocksAttention routes information across positions; transformer blocks repeat attention + MLPWork one tiny attention example with query/key/value vectors and shapesllm-mechanics-fundamentals.md, advanced-llm-inference.mdYou can describe what attention can copy/route that an MLP alone cannot
8Training mechanicsBatches, epochs, optimizers, schedules, precision, overfit checks, and loss curves govern whether training workedOverfit a tiny dataset or inspect an existing overfit gate; identify failure mode from a loss curvesession-08-training-mechanics.md, ../training_guide.mdYou can tell data bug vs LR bug vs capacity bug from symptoms
9Post-training: SFT, LoRA, preference tuningSFT teaches behavior; LoRA changes a low-rank slice; DPO/SimPO shape preferences and can collapseCompare successful SQL SFT vs failed hygiene SimPO; run/inspect LoRA geometry../training/sft.md, ../training/dpo.md, ../factory/lora-geometry.mdYou can explain why the hygiene SimPO run collapsed without hand-waving
10Evals, rewards, and self-improvementFrozen evals, verifiable rewards, traces, failure taxonomy, and public reports make improvement measurableBuild/inspect SQL candidate-selection rows; attach slice metrics and trace review to a run../factory/eval-protocol.md, ../techniques/sql-technique-backlog.md, ../attempt-ledger.mdYou can design the next SQL recipe with target, data, reward/eval, stop rule, and report fields

Where Existing Sessions Fit

The original eight sessions remain useful. They are now the foundation half of the roadmap, not the whole roadmap.

Existing SessionRoadmap Module
session-01-neural-net-basics.md1
session-02-gradient-descent.md2
session-03-non-linearities.md4
session-04-ml-paradigms.md5
session-05-scaling.md5
session-06-tokenization-embeddings.md6
session-07-behavior-learning.md9
session-08-training-mechanics.md8

Missing polished sessions are explicit:

Until those are written, the linked reference docs plus the exercises above are the working path.

Current Starting Point

Start at Module 1 unless the owner can pass the mastery gate out loud.

The current project work is SQL candidate selection, but the learning path does not jump straight there. The correct bridge is:

parameters -> loss -> gradients -> tensors -> neural nets
-> tokens -> transformers -> training loops
-> SFT/LoRA/DPO -> evals/rewards/self-improvement

The SQL factory is the lab. Ground-up understanding is the curriculum.

Checkpoint Template

At the end of each module, write a short checkpoint:

Module:
Concept in my words:
Toy exercise completed:
TinyGPT file/run inspected:
What this changes about the next SQL/factory recipe:
Open confusion:

Store durable checkpoints in ../learning-progress.md or the next run report. Do not create loose notes unless they feed back into the tracker.