Bangla tokenizer tax

bangla-llm-bench, live edition

What Bangla costs in tokens

Type or paste Bangla. Each tokenizer splits it in your browser using the same vocabulary files the benchmark measured, and shows how many tokens it needs compared with the same sentence in English, and how many written syllables (aksharas such as ক্ষু) its tokens cut apart.

Presets are the 24 hand-written Bangla / English pairs in fixtures/parallel.jsonl.

Text going into the tokenizers
Normalization settings

Tokenizers

Vocabulary files load when you switch one on. Sizes are the minified tokenizer.json.

Cost against English

Bangla tokens ÷ English tokens for your text. The ring marks each tokenizer's result on the 488 Belebele passages.

Live metrics per tokenizer
Tokenizer Bangla tokens English tokens Cost × Tokens / word Chars / token Aksharas cut Mid-codepoint splits

Reading the token strips

  • টোকেন one token, shaded alternately so neighbours are distinguishable.
  • া red left edge: this token starts inside an akshara, so a written syllable is split.
  • E0 A6 dashed: the token is raw bytes of a character, not a whole character. Hover or focus it to see which one.
  • ␣আর ␣ marks a space that belongs to the token.

About this demo

This page runs the tokenizer part of bangla-llm-bench in the browser. What is different from the repository: