Reversing Claude's tokenizer: not BPE, vocab shrunk to ~16k as token costs rose 40%
anpaure · x · 2026-12-05
Sander Land reverse-engineered Claude's mysterious tokenizer (open-sourced as ctok), following a 40%+ token cost increase for basic English text. Key findings: it's not standard byte-level BPE — the Hangul syllable 최 is one token whose UTF-8 prefix/suffix aren't tokens anywhere else, matching MinGram/PathPiece-style minimum-piece tokenization; vocabulary appears to have shrunk from 49k (Claude v3–v4.6) to 16k; and it uniquely wraps word-like spans in boundary markers.
More from Models
- Hugging Face's Most-Downloaded Model Is a Tiny Embedding Model, Not an LLM — AccBalanced · 2026-12-05
- Princeton open-sources Goedel-Prover-V3: 27B model hits research-level math on one GPU — danqi_chen · 2026-12-05
- The hilarious saga of Qwen4-35B: a model the community pressured into existence — alejandroll10 · 2026-12-05
- OpenAI published an AI math paper hiding a harder result nobody noticed — danintheory · 2026-12-05
- OpenAI vs Anthropic progress charts aren't directly comparable, datasets and units differ — omarsar0 · 2026-12-05
- Dev says Neon with Claude as a strict reviewer is the best model — shawnup · 2026-12-05