A Field Map and How to Read This Book
Chapter 1 separated model development from request execution. This chapter places the rest of the book around those two processes. It explains what each part is for, which relationships are dependencies rather than reading order, how strongly different kinds of claims are supported, and where a reader can enter the book without first reading every preceding chapter.
The resulting structure is not one pipeline. Some parts describe stages in a model's lifecycle. Others describe runtime components, evidence, physical constraints, or operating conditions. Treating all of them as consecutive steps would hide the relationships this book is meant to explain.
Two processes and several cross-cutting concerns
The model-development process produces and revises a deployable model. It includes data preparation, base-model formation, post-training, evaluation, and release. The request-execution process begins after deployment. It includes serving, model calls, tool use, observations, and user-facing results. Reasoning methods can affect either process: some change training, while others allocate more computation during a model call.
Several concerns apply across both processes. Compute infrastructure limits what can be trained and served. Evaluation supplies evidence about behavior. Safety and governance define permitted behavior and required controls. Economics changes which designs are sustainable. Operations turns those choices into service objectives, incident procedures, and feedback for the next release.
In this chapter, a dependency means that one design needs an artifact or property supplied by another. A feedback relationship means that downstream evidence or cost changes an earlier decision. Neither one specifies the order in which the corresponding chapters must be read.
Where the twelve parts fit
Figure 2.1 shows selected dependencies among Parts I through XII. It is deliberately not a complete system diagram: drawing every evaluation, safety, economic, and operational relationship would make the figure unreadable. The table after the figure states the role of every part directly.
| Part | Central question | Role in the book |
|---|---|---|
| I. Base Model Formation | How do data and compute produce a useful base model? | An scaling law, an empirical formula that predicts loss from model size, data, and compute, can inform run planning. The part then covers data, tokenization, architecture, distributed training, and mid-training (Chapter 5, Chapter 11). |
| II. Generative and Multimodal Architectures | How do models generate images, audio, video, and other modalities? | Extends beyond autoregressive text models to diffusion, flow matching, and multimodal systems (Chapter 12, Chapter 15). |
| III. Post-Training | How does a base model become an assistant with specified behavior? | Covers demonstrations, preference learning, rewards, safety tuning, and synthetic data (Chapter 17, Chapter 19). |
| IV. Reasoning and Test-Time Compute | Where can additional computation improve difficult tasks? | Separates training methods from runtime search, verification, and routing (Chapter 24, Chapter 30). |
| V. Inference and Serving | How are model weights exposed as a responsive, affordable service? | Develops batching, cache management, faster decoding, quantization, and long-context serving (Chapter 31, Chapter 32). |
| VI. Orchestration | How are model calls combined with tools, memory, retrieval, and context? | Describes agent runtimes and the systems surrounding model calls (Chapter 38, Chapter 46). |
| VII. Evaluation | What evidence supports a capability or release claim? | Covers benchmarks, uncertainty, human evaluation, model-based judges, agent evaluation, and release gates (Chapter 47, Chapter 53). |
| VIII. Safety, Interpretability, and Governance | What behavior is permitted, observable, and controllable? | Examines internal analysis, oversight, authorization, runtime defenses, privacy, and policy (Chapter 54, Chapter 56). |
| IX. Infrastructure and Compute | Which hardware and systems constraints shape training and serving? | Covers accelerators, networks, frameworks, compilers, clusters, silicon, power, and failure recovery (Chapter 62, Chapter 68). |
| X. Frontiers and Limits | Where do data, measurement, and verification stop supporting stronger claims? | Studies limits to learning, capability measurement, and verification (Chapter 70, Chapter 72). |
| XI. Ecosystem and Economics | Which external conditions affect technical choices? | Covers model access, artifacts, standards, costs, market structure, adoption, and data rights (Chapter 73, Chapter 76). |
| XII. Practice and Operations | How is a complete system chosen, deployed, supervised, and improved? | Applies earlier mechanisms to model selection, deployment, human oversight, production data, and operating contracts (Chapter 81, Chapter 91, Chapter 93). |
The book's numbering is an editorial sequence; the figure shows dependencies. Part IX, for example, appears below Part I because hardware constrains model training even though the infrastructure chapters come later. Parts VII and VIII are drawn near deployed systems, but evaluation and safety also constrain data, training, and release decisions. Part XII comes last because it combines the earlier material, not because operations begins only after development ends.
Two feedback relationships recur throughout the book. First, expected runtime demand can affect model-development choices. For models that meet the same quality target, a design with higher training cost but lower serving cost may be preferable above some serving volume. That conclusion depends on workload, hardware utilization, input and output lengths, and model lifetime; it is not a universal instruction to train smaller models longer (Sardana et al. 2024). Chapter 1 gives the lifecycle-cost model and its break-even condition.
Second, evaluation and operations influence later releases. A failed task can expose a missing test, an unsafe permission, an inadequate training example, or a serving limit. The appropriate response depends on the cause. Retraining the model will not fix a runtime authorization error, and changing a benchmark will not fix an incomplete product requirement.
A constraint arrow names a specific dependency and its direction. Ask four questions: what property is required, which component supplies it, under what conditions the dependency holds, and what evidence supports it. The answer may point upstream or downstream. Serving demand feeding back into model selection is a downstream-to-upstream relationship; accelerator memory limiting model placement is an upstream-to-downstream relationship.
How strong is a claim?
Technical writing becomes confusing when definitions, measurements, and hypotheses are presented with the same certainty. This book uses three broad categories.
| Kind of claim | What supports it | How to read it |
|---|---|---|
| Specified mechanism | Equations, algorithms, protocols, or code define what the component does. | Check the assumptions and follow the mechanism. A Transformer layer or a key-value cache can be described this way even when implementations differ. |
| Empirical regularity | Measurements show a recurring relationship within a stated range. | Look for the dataset, hardware, metric, uncertainty, and range of observation. Extrapolation beyond that range is a new claim. |
| Open interpretation or design question | Available evidence permits more than one explanation or no design dominates across workloads. | Treat the alternatives as positions to test, not as facts settled by confident wording. |
Scaling laws are an important example of the second category. Kaplan et al. reported approximate power-law relationships between language-model loss and model size, data, and training compute across the regimes they studied (Kaplan et al. 2020). A simple compute-only fit can be written as
Here is the training compute measured over the fitted range; is the validation cross-entropy loss after training with compute ; is a fitted lower asymptote; sets the scale of the reducible loss; and is the fitted scaling exponent. The equation summarizes measured behavior under a particular data distribution, architecture family, and training procedure. It does not guarantee the same exponent after those conditions change.
The interactive figure isolates the normalized reducible term , with and , so that the slope is easy to see. is normalized reducible loss; the other symbols retain the definitions above. This is a shape illustration, not a forecast for a real training run.
Three examples show how open questions are handled later in the book.
- Reasoning training. DeepSeek-R1-Zero showed that reinforcement learning without a preliminary supervised fine-tuning stage can improve reported reasoning performance and produce recognizable reasoning behaviors (Guo et al. 2025). That result does not by itself determine whether training created new task-relevant capability, made existing capability easier to elicit, or did both (Chapter 28).
- Mechanistic interpretability. Sparse autoencoders can recover features that are easier to label than individual activations (Bricken et al. 2023). Cross-layer transcoders can then support partial, prompt-specific attribution graphs in an approximate replacement model (Ameisen et al. 2025). Whether these representations are causally faithful, stable, and sufficiently complete remains open (Chapter 54).
- Agent design. Memory, tool interfaces, context management, and multi-agent decomposition solve different problems and can be combined. Their value depends on the task, failure cost, latency budget, and available evaluation (Chapter 39, Chapter 43).
Scope and complementary references
This book is for readers who want to understand how model, systems, product, and operating decisions affect one another. It develops enough mechanism to make those dependencies precise, but it is not a substitute for a full course on implementing a language model or programming an accelerator cluster. A reader new to Transformers should read Chapter 7 and Chapter 8 before the serving, reasoning, and orchestration parts.
Several references go deeper on narrower tasks.
| Goal | Complementary resource |
|---|---|
| Implement a compact GPT-style model end to end | Raschka, Build a Large Language Model (From Scratch) (Raschka 2024) |
| Learn language-model implementation through assignments | Stanford CS336, Language Modeling from Scratch (Hashimoto and Liang 2025) |
| Understand distributed training and accelerator performance | Austin et al., How to Scale Your Model (Austin et al. 2025), and the Ultra-Scale Playbook (Tazi et al. 2025) |
| Build applications on foundation models | Huyen, AI Engineering (Huyen 2025), and Pai, Designing Large Language Model Applications (Pai 2025) |
The focus here is the connection between those specialties. A serving workload can change model economics. An evaluation protocol can change what post-training rewards. A permission boundary can rule out an otherwise capable agent design. Hardware capacity, energy supply, and cost can narrow the set of models a team can operate. These are influences with explicit conditions, not single causes that determine an entire system.
How to use the chapters
The chapters do not follow one rigid heading template. They do, however, return to the same questions:
- What problem or constraint motivates this component?
- How does the mechanism work, and what assumptions does it make?
- Which evidence supports it, and which claims remain uncertain?
- What does it cost in capability, efficiency, or operational complexity?
- Which earlier choices constrain it, and which later choices does it affect?
A What's contested callout identifies an unresolved interpretation or design choice. A Constraint arrow callout identifies a dependency that crosses chapter boundaries. Neither callout replaces evidence in the surrounding text.
Capability, efficiency, and trust are three evaluation questions, not a fixed budget that every technique divides. Capability asks whether the system can complete the intended task. Efficiency asks which resources and latency that result requires. Trust asks what evidence, controls, and recovery mechanisms justify relying on the result. An intervention may improve more than one dimension, harm one, or leave it unchanged.
Choose a reading route
| If your goal is... | Suggested route |
|---|---|
| Build the full conceptual picture | Read in book order. The part introductions and summaries provide the handoffs. |
| Understand model development | Part I, then Parts III and IV; use Parts VII and VIII to evaluate and constrain the resulting behavior. |
| Build an application or agent | Start with Part V, continue through Part VI, then read Parts VII, VIII, and XII before deployment. |
| Understand infrastructure and operating cost | Start with Part IX, connect it to Part V and Part XI, then use Part XII for deployment and operations. |
| Investigate limits or a disputed capability claim | Start with Part VII and Part X, then follow references back to the mechanism being measured. |
When entering in the middle, keep four questions visible: which process or cross-cutting concern is involved, what it depends on, what evidence supports the claim, and what downstream choice or upstream feedback it can change. Those questions are more useful than memorizing a single linear stack.
Further reading
- Huyen, Chip. AI Engineering: Building Applications with Foundation Models. O'Reilly Media, 2025. oreilly.comChip Huyen's book covers AI engineering: building production applications on top of foundation models, including evaluation, adaptation techniques, and serving.
- Raschka, Sebastian. Build a Large Language Model (From Scratch). Manning Publications, 2024. manning.comA hands-on book guiding readers to implement LLM attention mechanisms and GPT-style transformer architectures from scratch, covering training, fine-tuning, and instruction following.
- Pai, Suhas. Designing Large Language Model Applications: A Holistic Approach. O'Reilly Media, 2025. oreilly.comAn O'Reilly book by Suhas Pai covering practical design patterns and engineering decisions for building production LLM applications in enterprises.
- Tazi et al., “The Ultra-Scale Playbook: Training LLMs on GPU Clusters,” 2025. huggingface.coA Hugging Face Nanotron guide focused specifically on training large language models on large GPU clusters, with an accompanying PDF and interactive web version.
- Hashimoto & Liang, “CS336: Language Modeling from Scratch,” 2025. cs336.stanford.eduStanford's implementation-heavy language-modeling course walks through tokenizer construction, Transformer implementation, systems optimization, scaling laws, data processing, evaluation, and alignment.
- Austin et al., “How to Scale Your Model,” 2025. jax-ml.github.ioA DeepMind/JAX systems book that explains LLM scaling on real TPU and GPU hardware, including rooflines, sharding, training, inference, serving, and profiling.
Comments
Log in to comment