LESSON 8.05 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Special tokens and chat templates
Watch two chats become one padded batch of token IDs.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 8.05 · TOKENIZER BAY2 CHATS · 4 MESSAGES
01
Stage 1 of 6 · The messages
A chat is a list of messages. Each message has a role and text.
Explain it simply
You see two short chats, A and B. Each card is one message, with its role on the left. The role says who speaks: the user or the assistant.
Two chats, A and B. Each has a user message and an assistant answer.
wordsspecial tokensUNKPADtoken IDs, targets, next token
Toy: 2 chats, a 24-token word vocabulary
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each message pairs a role with its text.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.