Downloads · 30 days
0
theschoolofai/BrahmicTokenizer-131K
BrahmicTokenizer-131K is a feature extraction model from theschoolofai. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as apache-2.0.
A 131,072-vocabulary byte-level BPE tokenizer that closes the Brahmic compression gap at the 131K-vocabulary class while preserving the English, EU-language, and code compression of OpenAI's o200kbase. Drop-in replace…
Downloads · 30 days
0
Access
Public
Updated May 29, 2026
Repo size
—
Likes
5
Public
Click a slice to open those files.
.json8 MB · 100%
From the Hugging Face model README
A 131,072-vocabulary byte-level BPE tokenizer that closes the Brahmic compression gap at the 131K-vocabulary class while preserving the English, EU-language, and code compression of OpenAI's o200k_base. Drop-in replacement for any o200k_base training pipeline: same byte-level BPE algorithm, same GPT-2 ByteLevel pre-tokenizer, same decoder, same vocabulary file format.
The model was presented in the paper BrahmicTokenizer-131K: An Indic-Capable Drop-In Replacement for o200k_base.
@misc{shravan2026brahmictokenizer,
title={BrahmicTokenizer-131K: An Indic-Capable Drop-In Replacement for o200k\_base},
author={Rohan Shravan},
year={2026},
eprint={2605.29379},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2605.29379}
}
On 27 million documents of public Indic pretraining text (2.84 billion words, 46.21 GB):
On non-Indic content (FLORES-200, HumanEval, MBPP, GSM8K):
On FLORES-200 dev+devtest Brahmic fertility (rank 4 of 11 publicly downloadable tokenizers):
Across the 14-tokenizer benchmark, BrahmicTokenizer-131K is the only tokenizer simultaneously competitive on Brahmic, English, EU, code, and math at the 131K vocabulary budget.
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("theschoolofai/BrahmicTokenizer-131K")
# Hindi
print(tokenizer.encode("भारत एक देश है", add_special_tokens=False))
# -> [66526, 2420, 13092, 732]
# Digit grouping (inherited bit-identically from o200k_base)
print(tokenizer.encode("1234567890", add_special_tokens=False))
# -> [4660, 14932, 23133, 26]
# Decoded: ['123', '456', '789', '0']
Vocabulary: 131,072 tokens. Specials: 356 added tokens including the standard EOS (<|end_of_text|>, ID 36), BOS (<|begin_of_text|>, ID 130725), PAD (<|pad|>, ID 130726), UNK (<|unk|>, ID 130727), FIM, multimodal, and reserved-slot markers.
Two-stage surgical retrofit of o200k_base:
o200k_cropped.o200k_cropped with high-frequency Brahmic content, allocated across the 9 Brahmic scripts by linear-programming optimization on a 1.045-billion-token audit corpus.The pre-tokenizer, decoder, and English/EU/code merge rules are inherited unchanged from o200k_base. The vocabulary content differs in 40,717 of 131,072 slots, but the tokenizer-side interface (algorithm, pre-tokenizer regex, decoder, special-token format, JSON schema) is identical.
These two properties make BrahmicTokenizer-131K and o200k_cropped the only two of 14 publicly-available tokenizers we benchmarked to satisfy both constraints simultaneously, which matters for byte-pooled embedding architectures with a fixed per-token-byte budget.
tokenizer.json — the BPE artifact (8.0 MB, vocab 131,072, merges 301,398, added tokens 356)tokenizer_config.json — HuggingFace AutoTokenizer configurationspecial_tokens_map.json — BOS/EOS/PAD/UNK declarationsLICENSE — Apache 2.0The reproduction scripts (verification, fertility evaluation, 27M-corpus tokenization, 23-test audit) live in the GitHub repository: https://github.com/theschoolofai/BrahmicTokenizer-131K.
Apache License 2.0. This work is a derivative of OpenAI's o200k_base tokenizer, released through the MIT-licensed tiktoken repository; Apache 2.0 is compatible with incorporating MIT-licensed material. The bundled Brahmic-script fonts referenced in the paper (NotoSansDevanagari, NotoSansBengali, NotoSansOriya, NotoSansTamil) are redistributed under the SIL Open Font License 1.1.