From Words to Vectors: How a Model Turns Text into Numbers
Before attention can let words look at each other, each word has to become numbers. A math-free tour of vocabularies, token IDs, and the embedding lookup — built on a 12-word toy vocabulary you can run in PyTorch.