Tokenization
Tokenizer algorithms, token boundaries, and related reference pages about how models split text into tokens.
Module type
Model
- BERT model
An encoder-only transformer that learns bidirectional text representations through masked language modeling pretraining.
- Gemma
Open model family from Google DeepMind with Gemma 4 as the current main line, spanning Effective 2B and 4B edge checkpoints through 12B, 26B mixture-of-experts, and 31B dense variants with native text, image, and audio input, thinking-mode reasoning, and Apache 2.0 licensing.
- Qwen3-0.6B
The smallest dense Qwen3 open-weight checkpoint: a 0.6-billion-parameter causal language model with 32,768-token context, Apache 2.0 licensing, and post-training for reasoning and instruction following.
- T5
An encoder-decoder transformer from Google Research that reformulates every NLP task as reading text and writing text in a shared token space.
Module
- Byte Pair Encoding
A subword tokenizer that learns frequent text pieces by repeatedly merging common neighboring symbols.
- Byte-Level Tokenization
A tokenizer design that starts from bytes so models can represent arbitrary text without unknown-character gaps.
- CLIP Image Tokenization
A vision tokenizer that turns fixed-size image patches into embedding vectors for transformer-style image encoders.
- SentencePiece
A tokenizer system that learns subword pieces directly from raw text, including spaces, without requiring word splitting first.
- Tokenizer mismatch
A failure mode where text is split, labeled, or wrapped differently from what the model was trained or served to expect.
- Unigram Tokenizer
A subword tokenizer that keeps a candidate vocabulary and picks the highest-scoring whole segmentation instead of replaying merge rules.
- WordPiece
A subword tokenizer that grows a vocabulary of reusable pieces and usually tokenizes each word with the longest matching subword sequence.
Concept
Paper
- BERT Paper
The paper that introduced deep bidirectional transformer encoders trained with masked language modeling and fine-tuned for language understanding tasks.
- GPT-2 Report
A technical report that introduced GPT-2 as a large decoder-only language model trained with broad next-token pretraining and byte-level BPE tokenization.