CONCEPT 51 / Language and Transformers / Interactive study
Tokenization.
Split text into subword puzzle pieces and look up each piece's ID number in English, Persian, and code.
Text → Subword pieces → Vocabulary IDs
Begin with the loaded example. Change one control and watch the diagram and numbers update together.
51 / LIVE LABORATORYLoaded example
All calculations shown here run in the browser from the visible controls and bundled examples.
Inside the calculation
Why it matters
Models read token IDs, not raw letters; how text is split controls how much context a prompt uses.
All calculations shown here run in the browser from the visible controls and bundled examples.