Lab · c24.s02.L1
Tokeniser
The token is the unit of prediction: a tokeniser fitted to text decides where the sentence is cut, and each token becomes one training example.
Question: What does a model learn from, and what objective does it use?
Frame 1 of 6: Task 4 of 5Task 4 of 5. The 4 solid chips before the ring spell the context, the ringed chip is the token to produce ("next"), and the dashed chips after it lie outside this task. The lab opens here: 6 tokens give 5 prediction tasks, and each task asks for one whole token worth 5.17 characters.
Task 4 of 5. Task 4 of 5. The 4 solid chips before the ring spell the context, the ringed chip is the token to produce ("next"), and the dashed chips after it lie outside this task. The lab opens here: 6 tokens give 5 prediction tasks, and each task asks for one whole token worth 5.17 characters.
Keyboard: Space plays or pauses, Left and Right step, Home goes to the first frame, End goes to the last frame.
Text description of this lab
A sentence appears as a row of chips, one per token. Chips before the gold-ringed target are solid navy; chips after it are dashed; a short underline marks a leading space. A slider sets how many letter merges the tokeniser has applied: a sentence becomes twenty-six single characters at zero merges or six whole words at twenty-four, so its tasks fall from twenty-five to five. The earlier chips spell the context and the next token sits in a box.
Return to the section that hosts this lab
Caption status: synthetic. Every lab declares one of published, re-simulated, schematic, synthetic or interpolated.