AlgoViz

Tokens, vocabulary and learned representations

easy 8 min

The input pipeline changes representation twice.

Trace the example

Follow the evidence through each stage, then test a change in the case.

Why one rare part number consumes three positions

Why one rare part number consumes three positions. Selected component: Part catalog inside Input text.
Open full-size diagram

Input text

“repack”

Use a teaching vocabulary with the pieces re, pa and ck. The real split depends on the deployed tokenizer and its learned merge rules.

Two token IDs differ by only one. What would support a claim that the words are semantically close?