The same sentence in English, Spanish, Hindi, and Japanese. Predict the token ratio on o200k_base for each.
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Take the same semantic content (say a 100-word English passage) and translate it to Spanish, Hindi, and Japanese. Tokenize each translation with o200k_base. Predict the approximate ratio of token counts for each language relative to English (English baseline = 1.0). Then briefly explain why these ratios improved on o200k_base versus cl100k_base.
On o200k_base: English 1.0, Spanish ~1.2, Hindi 2-3, Japanese 1.5-2. Better than cl100k_base because o200k_base added dedicated CJK and Devanagari tokens. Validate with tiktoken on real samples.
Imagine four people from different countries trying to send the same message using a shared shorthand notebook. The notebook was designed mostly with English in mind. The English speaker writes the message in a few quick squiggles. The Spanish speaker is also pretty fast because their alphabet is similar. The Hindi and Japanese speakers find that their writing systems are not really in the notebook, so they have to spell things out in tiny pieces, which takes much more space. A newer notebook (o200k_base) added shortcuts for Hindi, Japanese, and Chinese characters, so they now spell things out in fewer pieces than before, but they are still slower than English. The numbers: English baseline of 1, Spanish about 1.2, Hindi about 2.5, Japanese about 1.7. These ratios determine how much you pay per message in each language.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Lead with the ratios: English 1.0, Spanish ~1.2, Hindi 2-3, Japanese 1.5-2 on o200k_base. Explain that o200k_base doubled vocabulary to 200K and allocated heavily to multilingual coverage (dedicated Devanagari and CJK tokens). Quote the improvement vs cl100k_base (Hindi halved, Japanese dropped from 3x to ~1.7x). Cover the operational implications: per-language cost multipliers, context-window math, the fairness angle. Close with validation discipline: tiktoken on real samples per language.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Assuming a single 'tokens per word' multiplier applies across all languages, when fertility varies 1.0 to 3.0 within o200k_base alone.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.