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.
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
- Pick a goal first, then the resources
- Courses and lectures
- How to combine seven open courses
- Self-study checkpoints for the five CS336 assignments
- Follow particular lectures and projects
- Books and long-form guides
- Building it yourself: runnable code
- Explainers and visualizations
- Tools and open-source projects
- Applications, evaluation, safety and interpretability
- Notes for readers who prefer Chinese
- How to combine them, and how to tell when they are out of date
- Summary and exercises
- 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.
- Stanford CS224N: Natural Language Processing with Deep Learning. The course page updates slides and assignments every year. The full videos are the 2024 YouTube playlist (the page says they are free); videos of the current term are only for enrolled students. Pair with: From RNNs to Attention, Tokenizers and Embeddings.
- Stanford CS25: Transformers United. A seminar with one lecture a week in which researchers present frontier work on Transformers and large language models; the page says the only homework is attending weekly, and anyone may audit. Look here to see what each direction is working on. Pair with: Frontier, Multimodal.
- Hung-yi Lee (National Taiwan University), Introduction to Generative AI 2024 Spring. The course page gives slides and videos lecture by lecture, with topics running from an overview of large language models, prompt engineering and AI agents to deep learning, Transformers and LLM training. It is taught in Chinese and the page is in Traditional Chinese. Pair with: What Is an LLM, Prompt Engineering.
- UC Berkeley LLM Agents MOOC (Fall 2024). Taught by Dawn Song and Xinyun Chen; the page says the course has finished, keeps the video lectures in its syllabus and lists a dozen guest speakers. Pair with: Agents and Tool Calling.
- Hugging Face LLM Course. An online course that starts with Transformer models, the Transformers library and fine-tuning and runs through curating high-quality datasets (chapter 10), fine-tuning large language models (chapter 11) and building reasoning models (chapter 12, marked as new). The page’s language list includes Simplified Chinese; how complete that translation is, is for the page to say. Pair with: Tokenizers and Embeddings, SFT Data, LoRA Fine-Tuning, Reinforcement Learning for Reasoning.
- Hugging Face smol course. The Hugging Face Learn page describes it as a course on post-training for small models (the GitHub description reads “a course on aligning smol models”). Pair with: Preference Optimization.
- Hugging Face Agents Course. The Learn page describes it as a course on building and deploying your own AI agents. Pair with: Agents and Tool Calling.
- RL basics: the Hugging Face Deep RL Course and Spinning Up in Deep RL. The Spinning Up documentation has key concepts in RL, a taxonomy of algorithms, an introduction to policy optimization, and pages on VPG, TRPO, PPO, DDPG, TD3 and SAC. Pair with: Preference Optimization, Reinforcement Learning for Reasoning (both RLHF and GRPO build on the policy gradient).
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.
| Course | When to choose it | Read here first | Deliverable |
|---|---|---|---|
| Stanford CS336 · Spring 2026 | You want to understand the full language-model training stack | Training pipeline | Build a small model, profile it, budget compute, audit data, and run a verifiable-reward experiment as outlined below |
| CMU 15-442/15-642 | You want to study GPUs, parallelism, and inference systems | GPU roofline, Collective communication | Compare a fixed-shape operator against its theoretical ceiling and submit a bottleneck report with a timeline |
| Berkeley Scalable AI · Spring 2026 | You want to connect models and applications under a fixed budget | Scaling laws, Inference serving | Use 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 2025 | You want to study memory, planning, verification, or multimodal interaction | Agent evaluation, Test-time compute | Toggle memory or a verifier on controlled tasks and record final-state success, call counts, and failure traces |
| Stanford CS324 · Winter 2023 | You want to investigate a focused question about foundation models | Building evaluation sets, Memorization and privacy | Adapt the Winter 2022 evaluation project and submit baselines, slices, and failures |
| Stanford CS25 · Transformers United | You want to follow a research direction through seminars | Multimodal LLMs, Frontier | Pick 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 Production | You want to turn a prototype into an operable product | LLM evaluation, Inference serving | Define 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.
| Assignment | Practice here first | Deliverable |
|---|---|---|
| 1 · Basics | Tokenization, Transformer Block | Checks for tokenizer round trips, causal masking, and a short training run |
| 2 · Systems | Efficient attention, Distributed training | Output error, peak memory, and time on the same inputs, with the device synchronization policy documented |
| 3 · Scaling | Scaling laws | Loss curves for model/data allocations under a fixed budget, marking the fitted range and extrapolated points |
| 4 · Data | Pretraining data engineering | Sample and token counts before and after filters, with slices of mistaken removals for review |
| 5 · Alignment | Reasoning RL | An untrained baseline, checks of the grader, and comparative results under the same evaluation protocol |
Follow particular lectures and projects
- CMU 15-442/15-642. Pair the autodiff lectures in weeks 2 and 3 with neural network basics. Follow CUDA, layout, and matrix multiplication in weeks 4 and 7 with the GPU roofline and GPU kernels. Pair the parallelism and rematerialization lectures with collectives and distributed training, and the serving lectures with continuous batching, prefix caching, and speculative decoding.
- Berkeley Scalable AI. The first two Fall 2026 assignments cover GPU profiling and pretraining data. Use the spring synthetic-data notebooks alongside structured output. In the student projects, use EchoKV to distinguish frozen and live precision allocation, and decoding and sampling to examine the baselines and sampling budgets in Beyond Temperature.
- Stanford CS336. The 2024 and 2025 offerings provide earlier handouts. For a 2026 exercise, use the handout, data, and tests from the same term. Pair the pretraining assignments with scaling-law extrapolation and corpus filtering audits.
- Berkeley Advanced LLM Agents. Pair the memory and world-model lectures with agent state and tool calling, multimodal agents with final-state evaluation, and formal reasoning with test-time compute.
- Stanford CS324. Use the 2022 calendar alongside evaluation slices and data engineering. The 2023 calendar connects FlashAttention, scaling, interpretability, and privacy with efficient attention, interpretability, and memorization and privacy.
- Stanford CS25. Pair the V6 native multimodality and world-model lectures with temporal diagnostics and feature prediction, and the serving lecture with request traces and goodput.
- CMU Machine Learning in Production. Chapters 5–7 cover product goals and failure costs, 13–19 cover operations and quality assurance, and 24 and 26 cover lineage and fairness. Practice with Production evaluation and evaluation slices.
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.
- Speech and Language Processing (Dan Jurafsky and James H. Martin, third edition draft). Chapters and slides are public. The page says the August 19, 2026 release merges Transformers, pre-training and decoding into one chapter, and includes an interpretability chapter (chapter 10) of which only about half is written. Pair with: Foundations, Model Architecture.
- Dive into Deep Learning (the Chinese edition is at zh.d2l.ai). An online book with runnable code; its contents run from linear regression, multilayer perceptrons, convolutional and recurrent networks to attention and the Transformer (chapter 10 of the Chinese edition) and optimization algorithms. Pair with: Neural Network Basics, Optimizers and Training Stability.
- Mathematics for Machine Learning (Deisenroth, Faisal and Ong, Cambridge University Press, April 2020). The companion page says the book does not cover advanced machine learning techniques but supplies the mathematics needed to read other books, in two parts: mathematical foundations, and example algorithms that use them. Use it to fill gaps in the math. Pair with: Information Theory, Neural Network Basics.
- How to Scale Your Model (a Google DeepMind author team, published February 4, 2025). An online book that goes from rooflines, TPUs and sharded matrix multiplication to Transformers, training, inference and profiling, with a chapter on GPUs; it expects a basic understanding of LLMs and the Transformer and ideally some familiarity with JAX. Pair with: GPUs and the Roofline Model, Collective Communication, KV Cache.
- The Ultra-Scale Playbook (Hugging Face’s nanotron team). The Space describes itself as “The ultimate guide to training LLM on large GPU Clusters”. Pair with: Distributed Training, Collective Communication.
- The Smol Training Playbook (Hugging Face’s HuggingFaceTB team). The Space describes itself as “The secrets to building world-class LLMs”. Pair with: The Training Pipeline, Pretraining Data Engineering.
- AI Engineering (Chip Huyen, O’Reilly, 2025; the author’s book page). The page says the book is about AI engineering, the process of building applications on top of readily available foundation models. Paid book. Pair with: Applications, Evaluation.
- Build a Large Language Model (From Scratch) (Sebastian Raschka, Manning). Paid book; the official code is LLMs-from-scratch in the next section. Pair with: Foundations, Transformer Block.
- Hands-On Large Language Models (Jay Alammar and Maarten Grootendorst, O’Reilly; book site, code repository). The repository says the book has almost 300 custom figures; the top of The Illustrated Transformer says that post became chapter 3 of the book, updated for later developments such as Multi-Query Attention and RoPE. Paid book. Pair with: Attention Basics, Efficient Attention.
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
- 3Blue1Brown’s neural network series. Animated explanations. The lessons closest to LLMs are But what is a Neural Network?, Transformers, the tech behind LLMs, Attention in transformers, step-by-step and How might LLMs store facts. Pair with: Neural Network Basics, Attention Basics, Transformer Block.
- The Illustrated Transformer (Jay Alammar). A picture-by-picture tour of the Transformer; the top of the page lists two Simplified Chinese translations. Pair with: Attention Basics, Positional Encoding.
- Lil’Log (Lilian Weng). Long-form study notes; these posts line up with pages here:
- Prompt Engineering (2023): Prompt Engineering.
- LLM Powered Autonomous Agents (2023): Agents and Tool Calling.
- Extrinsic Hallucinations in LLMs (2024): Hallucination and Calibration.
- Adversarial Attacks on LLMs (2023): Prompt Injection and Jailbreaks.
- Reward Hacking in Reinforcement Learning (2024): Reward Models.
- Why We Think (2025, on thinking time, chain of thought and reinforcement learning): Test-Time Compute.
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.
- Hugging Face Transformers. A model-definition framework for text, vision, audio and multimodal models, usable for both inference and training. Pair with: Transformer Block.
- vLLM. A high-throughput, memory-efficient inference and serving engine for LLMs. Pair with: LLM Inference Serving, KV Cache.
- FlashAttention. Fast and memory-efficient exact attention. Pair with: Efficient Attention.
- Megatron-LM (NVIDIA). Ongoing research code for training Transformer models at scale. Pair with: Distributed Training.
- TRL. A library for training Transformer language models with reinforcement learning. Pair with: Preference Optimization, Reinforcement Learning for Reasoning.
- alignment-handbook. The repository describes it as robust recipes to align language models with human and AI preferences. Pair with: Preference Optimization.
- GPU MODE lectures. The material that goes with the GPU MODE lectures. Pair with: GPUs and the Roofline Model.
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
- 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.
- 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.
- 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.
- 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:
- 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.
- 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.
- 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.
- 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.