TRANSFORMERS & LLMs • 40 / 397
Follow text from characters to tokens, attention, transformers and generation.

Tokenizer

A tokenizer is the component that converts text to token IDs and token IDs back to text.

Think of it like

Think of Tokenizer as part of a very fast reader that repeatedly decides what information matters and what should come next.

Real life

Autocomplete, translation and chat assistants depend on concepts such as Tokenizer.

SRE lens

Different models can count the same prompt differently because tokenizers differ.

Remember thisA tokenizer is the component that converts text to token IDs and token IDs back to text.
AIForSREJump to a concept
Search is optional. The main journey is simply ↓ Next.