Module 6 · Why it goes wrong, by mechanism

Why it is worse in Hindi, and costs more

In this lesson

  • 9 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 10 of 10 in this chapter

This chapter’s goalDiagnose a wrong or unreliable answer by naming the mechanism behind it (sampling, training signal, tokenisation, knowledge conflict, position, version change or data share) run the two-minute test that confirms the diagnosis, and choose the mitigation that acts on that mechanism rather than on the prompt.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
Share of a web-derived pretraining corpusEnglish49Other European languages27Chinese5.2Japanese2.4Hindi0.60All other Indian languagestogether0.50% of documentsSeveral hundred million Hindi speakers, and well under one per cent of the documents. Fewer exposuresmean weaker facts, thinner idiom and a safety training set that was mostly English too, which is whyan English benchmark score is not a Hindi score and has to be measured again in the language youactually serve.
Several hundred million Hindi speakers, and well under one per cent of the documents. Fewer exposures mean weaker facts, thinner idiom and a safety training set that was mostly English too, which is why an English benchmark score is not a Hindi score and has to be measured again in the language you actually serve.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

Start with the bill

Take one paragraph, write it in English and in Hindi, and count the tokens each way.

Python
from transformers import AutoTokenizer
tok = AutoTokenizer.from_pretrained("meta-llama/Llama-2-7b-hf")
en = "The train to Lucknow leaves at six tomorrow morning."
hi = "लखनऊ की ट्रेन कल सुबह छह बजे निकलती है।"
print(len(tok.encode(en)), len(tok.encode(hi)))

On tokenizers from the 2020 to 2023 generation the Hindi version costs three to eight times as many tokens for the same content. On the newer, larger vocabularies (the 128,000-entry and 200,000-entry tokenizers that shipped with 2024 models) the ratio has come down to somewhere between one and a half and two and a half. Tamil, Bengali, Telugu and Kannada behave similarly, and some are worse.

Everything else in this lesson follows from that ratio, so it is worth being clear about why it exists.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the AI, Actually Explained exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘Why it is worse in Hindi, and costs more’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/language-imbalance (Accessed: 29 November 2026).