Tokenizer Comparison: Your 128K Context Is Not One Size

Is 128K tokens the same amount of text on every model?

No, and a reader found out the hard way. @murasametech gave Inkling 2 Mini a long Japanese document he expected to be about 120K tokens, on Strata v0.2.20 with a 131,072-token context. Inkling's tokenizer counted 156,072 tokens, and the request came back as an error. The same setup handled a document of about 60K tokens without trouble, recalling three facts from far-apart places in it.

A context window is counted in tokens, and every model cuts text into tokens its own way. So we took the same texts and ran each through seven models' own tokenizers, the files the models ship with on Hugging Face. Every tokenizer turned its count back into the exact original text, so nothing was lost or mangled on the way.

The short version: in English the seven models land within 9.9% of each other. In Japanese the gap is 37.8%. A 131,072-token window holds about 232K characters of a Japanese novel on Qwen 3.8 and about 168K on Inkling 2 Mini.

The numbers: tokens per 1,000 characters

Lower is better: fewer tokens for the same text means more of it fits in the window.

Model English Code Japanese Chinese Arabic
Qwen 3.8 283 319 566 881 383
DeepSeek V4.1 Flash 1017 269 308 681 863 428
Gemma 4 290 336 599 915 407
Muse Glimmer 264 296 652 934 430
Hy4 Flash 266 304 707 915 456
Inkling 2 Mini 285 350 780 991 407
GLM 5.3 Flash 265 297 709 1013 456

The texts: 150,000 characters of our own English articles, 150,000 characters of our own code, and public-domain literary prose: 162,480 characters of Japanese, 142,495 of classical Chinese and an Arabic text counted as everyday Arabic is written, without vowel marks (99,338 characters). The vowelled print is a story of its own, further down.

The same window, different amounts of text

Turned around, this is how many characters of each text a 131,072-token window holds:

Model English Code Japanese Chinese Arabic
Qwen 3.8 463K 411K 232K 149K 343K
DeepSeek V4.1 Flash 1017 487K 426K 193K 152K 306K
Gemma 4 453K 390K 219K 143K 322K
Muse Glimmer 497K 443K 201K 140K 305K
Hy4 Flash 492K 431K 185K 143K 288K
Inkling 2 Mini 460K 374K 168K 132K 322K
GLM 5.3 Flash 494K 441K 185K 129K 288K

Japanese: about 38% between best and worst

Qwen 3.8 used 91,988 tokens for the Japanese text. Inkling 2 Mini used 126,790, 37.8% more. The other five sit in between, from Gemma 4 at 599 tokens per 1,000 characters to GLM 5.3 Flash at 709. That is the gap @murasametech ran into: a document that would have fit on one model overflows the same window on another.

English barely moves

On English prose the fewest tokens came from Muse Glimmer (39,547) and the most from Gemma 4 (43,443), 9.9% apart. If you only work in English, the window your model advertises is close to the window you get, whichever of these seven you run.

Code

On our code, Muse Glimmer (44,403 tokens) and GLM 5.3 Flash (44,602) were the leanest and Inkling 2 Mini (52,560) the heaviest, 18.4% apart. For a coding agent that feeds whole files into context, that is the difference between a repository fitting or not.

Chinese and Arabic

In Chinese the field was tighter, 17.4% between DeepSeek V4.1 Flash 1017 (122,969 tokens) and GLM 5.3 Flash (144,388). Arabic without vowel marks was close to that: Qwen 3.8 needed 38,005 tokens and Hy4 Flash 45,285, 19.2% more, with GLM 5.3 Flash (45,261) right beside it.

A second Arabic text: an early grammar treatise

To check that the Arabic result was not an accident of one text, we added a second one: an early grammar treatise from the second century of the hijrah, 283,382 characters without vowel marks. It gave the same ranking, with a slightly wider gap. Qwen 3.8 needed 100,681 tokens and Hy4 Flash 123,384, 22.5% more, against 19.2% on the first text.

The treatise was not more expensive. Per word it cost about the same or slightly less on every model but Inkling 2 Mini, likely because a grammar treatise repeats its technical vocabulary: 4,605 to 5,094 distinct words per 19,860-word stretch, against 6,619 in the first text.

Both Arabic texts without vowel marks, lower is better:

Model Treatise, tokens per 1,000 characters First text, tokens per 1,000 characters Treatise, tokens per word First text, tokens per word
Qwen 3.8 355 383 1.84 1.91
Gemma 4 372 407 1.93 2.04
Inkling 2 Mini 394 407 2.04 2.03
DeepSeek V4.1 Flash 1017 411 428 2.13 2.14
Muse Glimmer 412 430 2.14 2.15
GLM 5.3 Flash 435 456 2.26 2.28
Hy4 Flash 435 456 2.26 2.28

Vowel marks: up to 2.67x the tokens

Arabic can be written with its short vowels marked above and below the letters, or without them. Most written Arabic leaves them out; religious texts, children's books, works for learners and classical works printed for the public carry them in full. Our Arabic text, a 1937 print, is fully vowelled: the marks are 55,289 of its 154,627 characters, 35.8%.

The marks cost far more than their share of the characters. Qwen 3.8 needed 68,098 tokens for the vowelled text against 38,005 for the same words plain, 1.79x. GLM 5.3 Flash needed 120,824 against 45,261, 2.67x. On vowelled text the gap between best and worst model is 77%; on plain text it is 19%. If your documents are Quranic, classical or teaching texts, measure them as they are, marks included.

A bigger vocabulary is not the answer

It is tempting to read efficiency off the vocabulary size. It does not work. Gemma 4 has the largest vocabulary of the seven, 262,144 tokens, and it is the heaviest on English. Hy4 Flash has the smallest, 120,832, and sits close to the best on English. What matters is what the vocabulary was built from, not how big it is.

What it means for your context and your VRAM

Two practical points.

Size your window in the model's own tokens. If your work is Japanese, code or vowelled Arabic, a "128K" setting holds very different amounts of your documents depending on the model. Count with the tokenizer of the model you will actually run, or leave a margin.

Tokens are what fill memory. The KV cache grows with every token the model keeps in context, so the same document takes more cache on a model that cuts it into more tokens. Our VRAM calculator sizes the cache by tokens; feed it the token count of your own documents on your own model. If you are choosing hardware for a long-context workload, what LLM can I run checks the whole catalogue against your card, and our Inkling 2 Mini page covers that model's memory at long context.

How we measured

Each model's tokenizer.json came from its own Hugging Face repository: Qwen/Qwen3.8-27B (the same file as Qwen 3.8 Flash Next), deepseek-ai/DeepSeek-V4.1-Flash-1017, google/gemma-4-31b-it, meta-models/Muse-Glimmer-30B, tencent/Hy4-Flash, thinkingmachines/Inkling-2-Mini and zai-org/GLM-5.3-Flash. We counted tokens without special tokens, then decoded every count back and compared it with the original text: every pair matched exactly. The plain Arabic is the vowelled text with its marks removed (short vowels, shadda, sukun, dagger alif and tatweel), so both versions hold the same words.

The limits, plainly: one text per language, two for Arabic. The Chinese is a classical novel, the Arabic an 8th-century prose work and an early grammar treatise, the Japanese a 1914 novel. Modern web text, chat logs or technical writing may land differently, and the ranking holds for these texts, not as a universal constant. The literary texts are in the public domain; the English and the code are our own.

FAQ

Why do models count the same text differently?

Each model ships its own tokenizer, built from the text its makers trained on. A tokenizer that saw a lot of Japanese learns longer Japanese pieces and needs fewer tokens per sentence; one that saw little splits the same sentence into more, smaller pieces.

Which model fits the most Japanese or Arabic text in its window?

In our test, Qwen 3.8: about 232K characters of Japanese and 343K of plain Arabic in a 131,072-token window. For Chinese, DeepSeek V4.1 Flash 1017 held the most, about 152K characters.

Do Arabic vowel marks change the token count?

A lot. The same Arabic text took 1.79x more tokens with its vowel marks on Qwen 3.8 and 2.67x more on GLM 5.3 Flash. Measure vowelled texts as they are.

Does a larger vocabulary mean fewer tokens?

Not on its own. Gemma 4 has the largest vocabulary of the seven models we tested, 262,144 tokens, and it used the most tokens on English.

Does this change how much VRAM a long document needs?

Yes. The KV cache grows with every token kept in context, so a document that becomes more tokens on one model needs more cache memory on that model.

Sources

  • Our measurement, 23 November 2026: seven tokenizers, five texts, a second Arabic text and the plain Arabic versions, counts and method kept with the study.
  • @murasametech, Inkling 2 Mini on Strata v0.2.20, 23 November 2026. https://x.com/murasametech/status/2124802643898105940
  • Tokenizer files: each model's Hugging Face repository, named above.
  • Arabic diacritics and where full vowelling is used: Wikipedia, "Arabic diacritics".