Computers and Language
Why a machine that only understands numbers needs an entire pipeline before it can touch a sentence.
By the end of this chapter, you'll be able to:
- Explain why a CPU cannot operate on words directly
- Name every stage a sentence passes through before a model can reason about it
- Know which chapter to read next based on what's still unfamiliar
A CPU executes one kind of instruction: arithmetic on numbers stored in registers. It has no circuit for "noun," no instruction for "meaning." When you type a sentence into anything backed by a language model, that sentence has to be converted into numbers before any of the ideas in this handbook — attention, transformers, GPT — become relevant at all.
This chapter is a map. It doesn't go deep on any single stage — each one gets its own chapter — but it shows the whole route once, so the rest of the handbook has something to hang on.
The full pipeline
Every arrow above is a chapter in this handbook, and every one answers exactly one question:
- Unicode — how does a single character become a number?
- Tokenization — how does a sentence get split into meaningful pieces?
- Vocabulary — how does each piece get a stable numeric identity?
- Embeddings — how does a meaningless ID become a vector that can learn?
- Training — how does that vector go from random noise to something meaningful?
- Weights and Bias — how does a single neuron turn numbers into a prediction?
- Attention — how does a token decide which other tokens matter to it?
- GPT — how do all of these pieces stack into something that can write?
Nothing here is optional
You cannot skip a stage and still have the later ones make sense. Attention operates on embeddings; embeddings are looked up by vocabulary ID; vocabulary IDs are assigned to tokens; tokens are built from Unicode code points. Every layer is a strict prerequisite for the one above it — which is exactly why the handbook is ordered this way.
Why start with the constraint, not the network
Most introductions to AI start with a diagram of a neural network — circles, arrows, layers — and treat the journey from text to numbers as a preprocessing footnote. This handbook does the opposite deliberately. The "preprocessing footnote" is where most of the actual design decisions live: how you tokenize determines your vocabulary size, your vocabulary determines your embedding table, and all of that is decided before a single weight gets trained. Understanding the network without understanding this pipeline is like understanding an engine without understanding what fuel it burns.
Check your understanding
1. What is the very first transformation a piece of text undergoes before anything else in this pipeline?
2. Why can't attention operate directly on vocabulary IDs, skipping embeddings entirely?