Part 1 · Understand LLMs Chapter 1
Getting Started
New to large language models? Build an end-to-end picture first, then pick one of four study routes (weekend crash course, application development, engineering or research), and see how this wiki is organized and meant to be read.
After this chapter you will be able to
- Tell, along one storyline, the stages from text to answer: tokens, the Transformer, pre-training, alignment and inference.
- Tell pre-training, post-training and inference apart by the problem each one solves, and know where the cost of each stage sits.
- Pick a study route for your own goal (weekend crash course, applications, engineering or research) and see how the four parts and twelve chapters fit together.
On this page
This chapter does not teach any specific algorithm. It answers two questions: what a large language model actually is, and what you should learn first and what can wait.
Who this chapter is for
- Engineers, students and product managers who have heard of ChatGPT, DeepSeek or Llama but have never studied how LLMs work.
- Application developers who already call model APIs and want to understand what happens inside.
- Anyone moving into the LLM field who needs a study plan they can actually follow.
How to read this wiki
The wiki is arranged in learning order, in four parts and twelve chapters: first what an LLM is made of, then how to train one, then deployment and applications, and finally evaluation, safety and the frontier. The full table of contents is on the wiki home page, and each chapter landing page shows that chapter’s roadmap and learning goals. Not sure where to start? The learning roadmap lays out four routes (a weekend crash course, application developer, LLM engineer and LLM researcher) week by week, and the knowledge map draws every page and its prerequisites on one canvas: hover or focus a page to highlight what comes before and after it.
Every page can be read on its own, but they share a layout: “After this page you will be able to” and the prerequisites at the top, and “Summary and exercises” at the end, with a quick self-test first, then exercises, with reference answers folded away. Most pages come with experiments you can run or widgets whose parameters you can drag, so work through them as you read; terms are in the glossary and the Python experiments that go with each article are under companion code; to pair the wiki with public courses and books, see the Learning Resources Map; when you need to estimate parameters, compute, memory or decoding speed, open the cheat sheet. “Mark as read” on a page is stored only in your own browser, and is used to show your progress in the table of contents.
After this chapter, start with Foundations and follow the chapters down.
Chapter roadmap
- 1.1
What Is a Large Language Model? From Next-Word Prediction to General Assistants
A large language model (LLM) is a neural network, usually a Transformer, trained on huge amounts of text to predict the next token; pre-training, post-training and inference decoding turn it into an assistant that can chat, write code and reason.
- 1.2
LLM Learning Roadmap: A Map of the Wiki and Four Study Paths
See how the wiki's four parts and twelve chapters fit together, then pick a path by goal: a 10-hour weekend crash course, an 8-week application path, a 14-week engineering path or a 16-week research path, each with weekly reading, exercises and deliverables.
Prerequisites1.1What Is a Large Language Model? From Next-Word Prediction to General Assistants
- 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.
Prerequisites1.2LLM Learning Roadmap
- 1.4
LLM Cheat Sheet: Estimating Parameters, Compute, Memory and Decoding Speed
One page for the estimates you reuse most: counting parameters, training compute (about 6ND), memory for weights, training state and the KV cache, the bandwidth bound on decoding speed, and the LoRA and pass@k formulas, each with a standard-library script checked against published numbers.
Prerequisites1.1What Is a Large Language Model? From Next-Word Prediction to General Assistants