AI Interview Prep

AI Interview Prep

LLM System Design Interview #1 - The Tokenizer Trap

Why reusing a general tokenizer can quietly 16x your compute bill - and how to avoid it.

Hao Hoang's avatar
Hao Hoang
Nov 05, 2025
∙ Paid

You’re in an AI Engineer interview at Anthropic and the interviewer asks:

“We’re training a new model for the legal and medical domain. What’s the production risk of just using a standard, pre-trained Llama 3 tokenizer, and what’s your fix?”

Most candidates say: “It’s not optimal, but the tokenizer will just use subwords for the OOV (out-of-vocabulary) terms like ‘aneurysm’. The model will eventually learn the combinations during fine-tuning.”

Wrong. This answer ignores the real production bottleneck: compute cost.

The reality is that tokenization is a 𝐥𝐞𝐚𝐤𝐲 𝐚𝐛𝐬𝐭𝐫𝐚𝐜𝐭𝐢𝐨𝐧.

User's avatar

Continue reading this post for free, courtesy of Hao Hoang.

Or purchase a paid subscription.
© 2026 Hao Hoang · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture