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

Industry learning roadmap

This is the external learning track for TinyGPT. Use it after the repo-local archive/learning_roadmap.md: CS336 is the spine, and company docs/blogs are the applied case studies.

The goal is not to copy frontier-scale infrastructure. The goal is to extract small, testable ideas that fit TinyGPT: better data, cleaner evals, stronger specialist training, and Mac-first runtime discipline.

How to read

  1. Read the source.
  2. Write the one sentence lesson.
  3. Map it to a TinyGPT artifact: code, doc, eval, or explicit skip.
  4. Only implement if it improves a current Tier A/B item in PLAN.md.

Module 0 - Course spine: Stanford CS336

Source: Stanford CS336 - Language Modeling from Scratch

Why it matters: CS336 is almost exactly TinyGPT’s educational contract. It walks through tokenizer/model/optimizer basics, systems profiling, FlashAttention, distributed memory efficiency, scaling laws, data filtering and deduplication, and SFT/RL-style post-training.

TinyGPT mapping:

CS336 pieceTinyGPT anchor
Assignment 1: basicspython_ref/, tests/test_phase1.py
Assignment 2: systemswasm/, webgpu/, FA2 notes
Assignment 3: scalingconfigs/, bench/, docs/benchmark_harness_design.md
Assignment 4: datatinygpt download-dataset, dedupe, dataset registry
Assignment 5: alignment/reasoning RLsft, dpo, future RLVR/Tier 5 reasoning

Action: add CS336 as the default external course for anyone learning the repo. Do not import assignments wholesale; use it as a reading and audit checklist.

Module 1 - Small model data recipes

Sources:

Lesson: small models do not win by architecture alone. They need unusually good data: educational-quality text, code subsets, deduplication, and scale-aware evaluation.

TinyGPT actions:

Module 2 - Open post-training recipes

Sources:

Lesson: post-training is a recipe, not a single dataset. The useful shape is SFT -> preference tuning -> verifiable-reward RL, with explicit data mixtures and evaluation.

TinyGPT actions:

Module 3 - Reasoning and RLVR

Source: DeepSeek-R1 official repo/report

Lesson: reasoning gains come from verifiable rewards and long rollouts, but this is only meaningful after the base model and SFT path are stable.

TinyGPT actions:

Module 4 - Agent design

Sources:

Lesson: most useful agent systems are simple workflows with good tools. Multi- agent handoffs help only when the boundary is crisp.

TinyGPT actions:

Module 5 - Agentic coding and eval discipline

Source: Poolside Laguna deep dive

Lesson: the stealable pieces are not 30T tokens or 6,144 GPUs. They are data mixing discipline, repeated agent evals, token-preserving trajectories, and careful sandbox budgets.

TinyGPT actions:

Module 6 - Evals as product infrastructure

Sources:

Lesson: evals should be scenario-shaped and rubric-shaped, not just aggregate leaderboard numbers. Structured-output tasks need schema validity plus semantic grading.

TinyGPT actions:

Module 7 - General foundation model reports

Sources:

Lesson: foundation-model reports are useful for phase structure, eval breadth, tokenizer and multilingual choices, and safety/post-training taxonomy. They are not directly actionable at TinyGPT scale.

TinyGPT actions:

Module 8 - Mac/local runtime

Sources:

Lesson: TinyGPT’s differentiator is not beating CUDA. It is making local, inspectable model training and inference work well on Apple Silicon.

TinyGPT actions:

Module 9 - Specialized visual/video systems

Sources:

Lesson: for TinyGPT, the feasible first step is a structured explainer compiler, not pixel-native video generation.

TinyGPT actions:

Running source queue

Read in this order when updating the roadmap:

  1. CS336
  2. SmolLM / FineWeb-Edu
  3. Tulu 3
  4. Anthropic agents
  5. OpenAI evals
  6. Poolside Laguna
  7. Apple MLX
  8. Llama/Qwen reports
  9. DeepSeek-R1
  10. Lamina/video references

Each time a new source is added, update this file with one of: