Tokens, vocabulary and learned representations 00:00:01 A label at the parts counter A customer hands Nia a spare-part label that says “repack.” It fits on one sticker, so she leaves one blank position in the machine. The feed stops after just two letters. What did the machine count? In this miniature teaching vocabulary the available pieces are “re,” “pa,” and “ck.” The printed word therefore travels on three slips. A different tokenizer could give the entire word a single slip, even though the customer's sticker never changed. Those pieces have identifiers eighteen, fifty-four and ninety-two. The numbers let the machine look up rows. A piece with identifier nineteen has no automatic relationship in meaning to the one at eighteen. 00:00:50 How pieces get chosen Watch a tokenizer learn pieces from a collection of labels. In a simple byte-pair example the pair r and e becomes “re.” A different rule joins p and a. The ordered merge rules learned in training govern what can be joined when new text arrives. Now feed the machine the digits four and two, then try a leading space and the same digits. One encoding may treat the two strings differently. Count the actual identifiers after applying the model’s own message template. A unigram tokenizer can consider several ways to divide the same letters. Suppose “ab” is available as one piece and also as two pieces. The choice can depend on the model’s piece probabilities, rather than a sequence of pair merges. 00:01:46 The bank of learned rows Each of Nia's three identifiers selects a row from an embedding table. If every row holds two hundred fifty-six values, the lookup returns three vectors of that width. The identifiers stay discrete. The row contents were learned. Eight thousand possible pieces times two hundred fifty-six values is two million forty-eight thousand parameters in this one table. Double the vocabulary at the same width and this table needs another two million forty-eight thousand values. Imagine two labels that both say “bank.” A sentence about cash and a sentence about a river can start from the same token embedding for that word. Position and neighboring words allow later layers to represent it differently. 00:02:34 Budget for a whole manual Two translated repair manuals contain the same instruction. The first takes fifteen hundred tokens and the second twenty-two hundred. Nia has room for two thousand tokens of manual in this request. Predict which version might lose the final warning. The second version runs two hundred tokens over the allowance. Check which passage was truncated. A poorer answer on that version could come from losing the warning before the model ever saw it. At the parts counter, a sticker counts printed words, the tokenizer counts positions, and the embedding table supplies learned values. Use the deployed tokenizer to budget a request. Use a suitable encoder and a measured similarity test when the question is meaning.