1 Getting Started 3 / 4
  1. In this chapter
  2. What Is a Large Language Model? From Next-Word Prediction to General Assistants
  3. LLM Learning Roadmap
  4. Learning Resources Map
  5. LLM Cheat Sheet
All chapters →

Chapter 1 · Getting Started 1.3

Learning Resources Map: Courses, Books and Repositories to Pair with This Wiki

A map of public courses, books, explainers, code repositories and Chinese-language resources to pair with this wiki, grouped by learning goal: what each adds, what background it assumes and which wiki pages to read with it. Every link was opened and checked in November 2026.

Beginner 24 min read Updated

After this page you will be able to

  • Pick one or two outside resources for your own goal (building intuition, coding from scratch, taking a course, training and systems, applications and agents, evaluation and research) and name the wiki pages to read with them.
  • Tell courses, books, explainers, code repositories and tool documentation apart by what each is good at, so you do not open too many courses at once.
  • Judge whether a learning resource is out of date: check its date and version, whether it is still maintained and whether it agrees with the official documentation, and know whom to trust when sources disagree.
  • Combine one main course, one piece of runnable code and the matching wiki chapters into a study plan you can check.
On this page
  1. Pick a goal first, then the resources
  2. Courses and lectures
  3. How to combine seven open courses
  4. Self-study checkpoints for the five CS336 assignments
  5. Follow particular lectures and projects
  6. Books and long-form guides
  7. Building it yourself: runnable code
  8. Explainers and visualizations
  9. Tools and open-source projects
  10. Applications, evaluation, safety and interpretability
  11. Notes for readers who prefer Chinese
  12. How to combine them, and how to tell when they are out of date
  13. Summary and exercises
  14. FAQ

This wiki explains why large language models are designed the way they are and how the numbers are worked out. Turning that into working skill usually takes three kinds of outside material: a structured course (pace and assignments), code you write from scratch (a feel for the details) and primary sources, meaning papers, technical reports and official documentation (current information). This page arranges publicly available resources by learning goal and says, for each one, what it adds, what background it assumes and which wiki pages go with it.

Every link was opened and checked in November 2026. Course pages are updated every term, and the notes below only state what the linked page itself shows. Three criteria decide what is listed: the page opens directly, and paid items are marked; the content matches a specific chapter of the twelve in this wiki; and the page shows a checkable author, date or version.

Pick a goal first, then the resources

Below is a minimal combination for each goal: which wiki pages to read first and which outside resources to add (each one is described in the sections that follow). One or two resources per goal are enough; opening three courses at once usually means finishing none of them.

  • Build intuition (a weekend or two): read What Is an LLM and Attention Basics first; then add 3Blue1Brown’s neural network series and The Illustrated Transformer. For lectures in Chinese, add Hung-yi Lee’s Introduction to Generative AI.
  • Write a GPT from scratch: read Neural Network Basics, Next-Token Prediction and Transformer Block first; then add Karpathy’s Zero to Hero, followed by the code of Raschka’s book or nanochat.
  • Take a full course: read Learning Roadmap first; then add CS224N (the NLP and deep learning foundations) and CS336 (the whole language-model pipeline).
  • Training and systems engineering: read Compute and Systems and Distributed Training first; then add How to Scale Your Model, the Ultra-Scale Playbook, the GPU MODE lectures and assignment 2 of CS336.
  • Post-training and reinforcement learning: read Post-training and Alignment first; then add Hugging Face’s LLM Course and smol course, alignment-handbook and TRL; for RL basics, Spinning Up.
  • Applications and agents: read Applications first; then add Anthropic’s Building effective agents, the Prompt Engineering Guide, the MCP documentation and Berkeley’s LLM Agents course.
  • Evaluation, safety and research: read Evaluation, Safety and Alignment Risks and Frontier first; then add HELM, lm-evaluation-harness, OWASP’s list of LLM application risks, the Transformer Circuits Thread and Lil’Log.

Courses and lectures

A course is worth its pace, its assignments and its discussion.

How to combine seven open courses

Choose one main course and produce an implementation, measurement report, or evaluation record that someone else can check. Start the exercises below with small datasets or existing baselines. Consult the handouts for each term’s compute and access requirements.

Try a small CPU exercise before choosing a course. If neural networks are new to you, trace tensor shapes in Python before the first CS336 assignment. Before studying kernels in CMU ML Systems, follow how weights reach device memory. Before the Berkeley agents course or CMU’s production ML textbook, run a local inference endpoint and a read-only tool loop, then record the request, tool result, and reason for stopping.

CourseWhen to choose itRead here firstDeliverable
Stanford CS336 · Spring 2026You want to understand the full language-model training stackTraining pipelineBuild a small model, profile it, budget compute, audit data, and run a verifiable-reward experiment as outlined below
CMU 15-442/15-642You want to study GPUs, parallelism, and inference systemsGPU roofline, Collective communicationCompare a fixed-shape operator against its theoretical ceiling and submit a bottleneck report with a timeline
Berkeley Scalable AI · Spring 2026You want to connect models and applications under a fixed budgetScaling laws, Inference servingUse the four assignments to connect utilization profiling, pretraining, SFT and RL with verifiable rewards, and application evaluation, keeping a baseline at each stage
Berkeley Advanced LLM Agents · Spring 2025You want to study memory, planning, verification, or multimodal interactionAgent evaluation, Test-time computeToggle memory or a verifier on controlled tasks and record final-state success, call counts, and failure traces
Stanford CS324 · Winter 2023You want to investigate a focused question about foundation modelsBuilding evaluation sets, Memorization and privacyAdapt the Winter 2022 evaluation project and submit baselines, slices, and failures
Stanford CS25 · Transformers UnitedYou want to follow a research direction through seminarsMultimodal LLMs, FrontierPick a talk on native multimodality or large-scale training, map the inputs to the outputs, and verify one testable claim against the paper
CMU Machine Learning in ProductionYou want to turn a prototype into an operable productLLM evaluation, Inference servingDefine release gates, monitoring, and rollback criteria for an application and test them with isolated traffic

Self-study checkpoints for the five CS336 assignments

Use the handout and repository for the same term. Spring 2026’s fifth assignment focuses on reasoning RL, with instruction tuning and DPO in the supplementary handout.

AssignmentPractice here firstDeliverable
1 · BasicsTokenization, Transformer BlockChecks for tokenizer round trips, causal masking, and a short training run
2 · SystemsEfficient attention, Distributed trainingOutput error, peak memory, and time on the same inputs, with the device synchronization policy documented
3 · ScalingScaling lawsLoss curves for model/data allocations under a fixed budget, marking the fitted range and extrapolated points
4 · DataPretraining data engineeringSample and token counts before and after filters, with slices of mistaken removals for review
5 · AlignmentReasoning RLAn untrained baseline, checks of the grader, and comparative results under the same evaluation protocol

Follow particular lectures and projects

Three course readings lead into runnable tutorials: World models and planning, Agent context and memory, and Rollout and learner scheduling.

Books and long-form guides

A book gives a complete argument and is good at joining scattered knowledge into one picture. Items marked “paid book” have to be bought.

Building it yourself: runnable code

Between understanding something and writing it lie many details, and implementing it yourself is the quickest way to close that gap.

  • Neural Networks: Zero to Hero (Andrej Karpathy, video course). It goes from backpropagation (micrograd) and a character-level language model (makemore) all the way to GPT (“Let’s build GPT”) and the GPT tokenizer; the page lists solid Python and introductory math as prerequisites. Pair with: Neural Network Basics, Next-Token Prediction, Tokenizers and Embeddings, Transformer Block.
  • nanochat (Karpathy). The README calls it the simplest experimental harness for training LLMs, designed to run on a single GPU node and covering tokenization, pre-training, fine-tuning, evaluation and inference. His earlier nanoGPT says in an update from November 2025 that it is deprecated and recommends nanochat. Pair with: The Training Pipeline, SFT Data.
  • LLMs-from-scratch (Sebastian Raschka). The official code of the book of the same name: developing, pre-training and fine-tuning a GPT-like LLM, including code for loading the weights of larger pretrained models. Pair with: Foundations, Model Architecture.
  • The Annotated Transformer (Harvard NLP; original by Sasha Rush, the 2022 version updated by Austin Huang and others). It turns “Attention Is All You Need” into a line-by-line notebook that covers the model, training, a worked example on real data and attention visualizations. Pair with: Transformer Block, and the paper walkthrough Attention Is All You Need.
  • Happy-LLM (Datawhale, in Chinese, free). The README calls it a systematic LLM tutorial: it starts from the basic methods of NLP, goes layer by layer through architecture and training, and has you implement a complete LLaMA2 model and walk through pre-training to fine-tuning. Pair with: Model Architecture, Pre-training.
  • self-llm (Datawhale, in Chinese). The repository describes itself as a guide to quickly fine-tuning (full-parameter or LoRA) and deploying open LLMs and multimodal models on Linux. Pair with: LoRA Fine-Tuning, LLM Inference Serving.
  • mlabonne/llm-course. The repository describes it as a course to get into large language models, with roadmaps and Colab notebooks. Pair with: Learning Roadmap.
  • Companion labs on GitHub. These 61 Python labs run on a laptop CPU and cover 66 Wiki articles with runnable material. The companion code catalog lists the labs and run commands by chapter.

Explainers and visualizations

Tools and open-source projects

Reading documentation and source code is the most direct way to see how a sentence in a paper turns into engineering. The description of each repository below comes from the repository itself.

Applications, evaluation, safety and interpretability

  • Building effective AI agents (Anthropic, December 19, 2024). It discusses when to use agents and when to use frameworks, and the building blocks and ways of combining workflows and agents; the page itself notes that the tooling landscape it describes has changed a lot since December 2024. Pair with: Agents and Tool Calling.
  • Prompt Engineering Guide. Its contents cover prompting techniques such as zero-shot and few-shot prompting, chain of thought, self-consistency, RAG, ReAct and Reflexion, plus sections on AI agents and context engineering. Pair with: Prompt Engineering, RAG.
  • Model Context Protocol documentation. The official MCP documentation, organized by dated versions (the link currently redirects to the 2026-07-28 version). Pair with: Agents and Tool Calling (MCP is currently one section of it).
  • HELM (Stanford CRFM’s Holistic Evaluation of Language Models; the paper is arXiv:2211.09110). A multi-scenario, multi-metric evaluation framework: the abstract says it measures 7 metrics (accuracy, calibration, robustness, fairness, bias, toxicity and efficiency) on each of 16 core scenarios where possible. Pair with: LLM Evaluation Methodology.
  • lm-evaluation-harness (EleutherAI). The repository describes it as a framework for few-shot evaluation of language models. Pair with: LLM Evaluation Methodology.
  • OWASP Top 10 for LLM Applications. The OWASP Gen AI Security Project page lists the 2025 risks; the first, LLM01:2025, is prompt injection. Pair with: Prompt Injection and Jailbreaks.
  • Transformer Circuits Thread. The publication page of Anthropic’s interpretability team. It opens by saying that, surprisingly, nobody really knows how modern large language models work internally, and that the team wants to change that. Pair with: Frontier.
  • ARENA (Alignment Research Engineer Accelerator). A training programme for technical AI safety; the site has a curriculum and notes on using its materials. Pair with: Safety and Alignment Risks.

Notes for readers who prefer Chinese

Hung-yi Lee’s Introduction to Generative AI is taught in Chinese; Chinese-language tutorials include Dive into Deep Learning (Chinese edition), Happy-LLM and self-llm; the Hugging Face LLM Course lists Simplified Chinese among its languages, and The Illustrated Transformer lists two Simplified Chinese translations at the top of the page. Papers and most repository documentation are still in English: the paper walkthroughs and the bilingual glossary of this site can serve as a bridge. Look an English term up in the glossary first, then go back to the original.

How to combine them, and how to tell when they are out of date

  1. One main course, one piece of code, the matching wiki chapters. The course supplies pace and assignments, the code supplies hands-on feel, and this wiki supplies consistent notation, checkable numbers and term lookup. The three confirm one another, which beats opening three courses at once.
  2. Check the date and the version first. Material about large models has a short half-life: look at the publication date and at which model and tool versions the text mentions. This page has two examples: Anthropic’s Building effective agents says at the top that the tooling it describes has changed, and the nanoGPT README says the repository is deprecated and recommends nanochat.
  3. A priority order for conflicts. The original paper and the official documentation outrank a repository README, which outranks personal blogs and videos. Different sources can use the same word differently (does the parameter count include the embeddings, is the context length a training or an inference figure), so pin down the convention before comparing numbers.
  4. Recompute the numbers yourself. When you see a parameter count, a memory figure or a throughput, check it with the calculators or the companion experiments of this site; when it does not match, suspect the convention first and then your own arithmetic.

Summary and exercises

  • There are four kinds of resource: courses give pace, books give a complete argument, code gives hands-on feel, and tool documentation gives engineering detail; one or two per goal are enough.
  • Choose by three things: which chapter here it matches, whether the page shows a checkable date or version, and whether it is still maintained.
  • When sources disagree, trust the original paper and the official documentation, and recompute the numbers yourself.

Exercise: write your own study contract (30 minutes). Write down: your goal (pick one of the seven above), the hours you can spend each week, one main course, one piece of code, how far you will read in this wiki, and one checkable output for each week of the first month (for example “produce the loss curve of a character-level bigram model and explain how that loss relates to cross-entropy”).

Reference answer (an example)

The goal is “GPT from scratch”, about 6 hours a week, the main course is Zero to Hero, the code is the notebooks you write while following along, and the wiki reading goes up to Model Architecture:

  1. Week 1: read Neural Network Basics and watch the micrograd lecture (the page lists 2 hours 25 minutes), typing the code yourself. Output: your own micrograd trains a small multilayer perceptron.
  2. Week 2: read Next-Token Prediction and watch the first two makemore lectures (the page lists 1 hour 57 minutes and 1 hour 15 minutes). Output: the loss curve of a character-level bigram model, and an explanation of why its average negative log-likelihood is the cross-entropy discussed on that page.
  3. Week 3: read Attention Basics and Transformer Block, and read through the implementation in The Annotated Transformer. Output: describe in your own words how the tensor shapes change inside one attention head.
  4. Week 4: watch “Let’s build GPT” (the page lists 1 hour 56 minutes). Output: train a small character-level GPT and say where it is weaker and where it is stronger than the recurrent models described in From RNNs to Attention.

A good contract has three properties: every output can be checked by someone else, each week’s load fits the time you have, and switching to a different resource only means changing the “main course” cell.

FAQ

Should I start with a course or with this wiki?
Use both. Start with the learning roadmap to find your starting point and reading order and to get one consistent set of symbols and the full picture, then pick one course for pace, assignments and discussion. Courses are strongest at assignments and feedback; this wiki is strongest at putting every concept into consistent notation, checkable numbers and runnable experiments. If you are already taking a course, treat the wiki as a dictionary and a cross-check: when a concept is unfamiliar, look it up in the glossary and the matching chapter first.
Which resources should I use to train a small model from scratch?
A common order is Karpathy's Zero to Hero (from backpropagation to GPT and the tokenizer), then the code that goes with Raschka's Build a Large Language Model (From Scratch), or nanochat (it covers tokenization, pre-training, fine-tuning, evaluation and inference and is designed to run on a single GPU node), and finally the five CS336 assignments to add systems, scaling laws, data and alignment. The matching chapters here are Compute and Systems, Pre-training and Post-training, and most of their pages come with small experiments that run on a CPU.
Are there resources for readers who prefer Chinese?
Yes. Hung-yi Lee's Introduction to Generative AI is taught in Chinese (the course page is in Traditional Chinese); Chinese-language tutorials include Dive into Deep Learning (Chinese edition), and Datawhale's Happy-LLM and self-llm; the Hugging Face LLM Course lists Simplified Chinese among its languages, and The Illustrated Transformer lists two Simplified Chinese translations at the top of the page. Papers and most repository documentation are still in English, and the paper walkthroughs and the bilingual glossary on this site can serve as a bridge.
Do these learning resources go out of date, and how can I tell?
They do, and quickly. Check three things: the publication date and the model and tool versions it mentions; whether it is still maintained; and whether it agrees with the official documentation. This page has two examples. Anthropic's Building effective agents was published in December 2024 and says at the top that the tooling landscape it describes has changed a lot; the nanoGPT README says the repository is deprecated and recommends nanochat. When sources disagree, trust the original paper and the official documentation.