Back to the lesson libraryMECHANISM · 13 MIN
M14.4 CONNECT THE MECHANISM

How text becomes tokens

A language model never sees your letters. See how text is chopped into pieces and swapped for numbers, and why "東京" can cost three times as many bytes as it has characters.

LESSON OVERVIEW13 min lesson

Lesson overview

A language model never sees your letters. See how text is chopped into pieces and swapped for numbers, and why "東京" can cost three times as many bytes as it has characters.

What you’ll explore

  • Distinguish text units from token IDs and diagnose the effects of a tokenizer mismatch.
Suggest a correction

A precise note can make an explanation better.

Choose the scene and describe what needs attention. Download a feedback file to share through a channel you already use. This page does not send feedback or connect you with a reviewer.

The file includes this note, the scene title, and lesson metadata. Your saved progress and quiz responses are excluded. Download before leaving or reloading to keep your note.