Awesome Testing

Lesson 02 · Text becomes tokens

What exact sequence reaches the neural network?

Unfinished prompt

The animal did not cross the street because it was too

01 · Smallest useful mechanism

Text becomes model-sized pieces

Before a model can process text, a tokenizer turns it into vocabulary entries called tokens. A token may be a whole word, part of a word, punctuation, whitespace, or part of an emoji. Each token receives a numeric ID used as a lookup address; the number itself carries no meaning. Boundaries come from the tokenizer vocabulary and rules, not grammar. A familiar word may fit in one token while an unusual name, code identifier, or underrepresented language needs several. Tokenization happens before transformer computation. It determines the sequence the model actually sees and affects how much text fits in the context window, how usage is counted, and which pieces later layers must combine.

The model receives reusable token pieces and IDs—not words.

02 · Experiment

Test the prediction

Calculate by hand · compare with local AI

Guided rules are illustrative. The optional pinned Qwen3.6 tokenizer is the vocabulary used by Bonsai; it is not the GPT-2 course trace.

Loading the experiment…

03 · Production-minded practice

Audit a tokenizer boundary

Commit to a written claim and evidence plan. The Lab stores the draft locally and never sends it to a server.

Your learning artifact

Write the argument you would defend

Stored only in this browser. No account required; course reset does not delete it.

04 · Check your understanding

What does token ID 42 tell us by itself?

Optional referenceDeep dive / reference chapterOpen the complete essay, diagrams, mathematics, exercises, glossary, and sources when you want more depth.

Next: IDs are still only addresses. The next step looks up a learned vector for each address and adds position.