Run this model with HF Jobs

Run orucexe/ulduz-tokenizer-128k on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/orucexe/ulduz-tokenizer-128k. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/orucexe/ulduz-tokenizer-128k on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

⭐ Ulduz Tokenizer 128k (ulduz-tokenizer-128k)

Ulduz-Tokenizer-128k is a 131,072-vocabulary ($2^{17}$), 100% lossless Byte-Level BPE tokenizer built Azerbaijani-first while covering 204 world languages across all major writing systems.

  • Pure Rust / Fast JSON (trust_remote_code=False): Works natively in transformers, vLLM, SentenceTransformers, llama.cpp, and ONNX.
  • Morphology-Guided Hybrid Training: Trained on 55% AZ (65% pre-segmented via a 29-State Azerbaijani Finite-State Morphotactic Automaton + 88,516 verified roots / 35% natural text) + 25% EN/RU/TR + 20% 200 world languages.
  • Clean Vocabulary: 0.000% multi-word space junk, single-digit number splitting (0–9), 0.00% <unk>, and 32 special tokens for both Embedding/Reranker (<cls>, <sep>, <mask>) and Chat LLMs (<|im_start|>, <|im_end|>).
  • Need maximum runtime morphological root isolation (90.7% precision)? See companion model orucexe/ulduz-morph-128k.

Quick Start

from transformers import AutoTokenizer

tok = AutoTokenizer.from_pretrained("orucexe/ulduz-tokenizer-128k")

text = "Azərbaycanın mikroiqtisadiyyatımızdakı inkişafı və 144.2-ci maddəsi"
ids = tok.encode(text, add_special_tokens=False)
print([tok.decode([i]) for i in ids])
# ['Azərbaycanın', ' mikro', 'iqtisadiyyat', 'ımız', 'dakı', ' inkişafı', ' və', ' ', '1', '4', '4', '.', '2', '-', 'ci', ' maddəsi']

Official Benchmark

Evaluated on Meta AI facebook/belebele (azj_Latn, 900 items), Cohere CohereForAI/include-base-44 (Azerbaijani test, 548 items), and Wikimedia Wikipedia (EN, RU, TR, + 74 world languages):

Tokenizer Vocab Belebele-AZ ↓ INCLUDE-44 AZ ↓ %Pure ↑ Morph Prec ↑ Root Intact ↑ EN ↓ RU ↓ TR ↓ World-74 B/Tok ↑ Lossless ↑
orucexe/ulduz-tokenizer-128k 131,072 1.534 3.737 75.6% 64.6% 78.7% 1.51 2.06 1.81 4.34 100.0%
orucexe/ulduz-morph-128k 131,072 1.784 3.776 46.5% 90.7% 90.4% 1.52 2.05 2.07 4.37 100.0%
allmalab/aLLMA-2-tokenizer 32,000 1.572 4.326 72.4% 56.4% 75.5% 2.27 3.94 2.65 1.43 100.0%
nijatzeynalov/gpt2-azerbaijani-small 50,257 1.489 4.228 78.4% 58.1% 80.2% 2.08 3.16 2.53 1.55 100.0%
LocalDoc/az-en-unigram-tokenizer-50k 50,001 1.507 2.891* 75.2% 68.9% 79.6% 1.48 2.14 2.66 5.44* 24.2%
LocalDoc/LocRet-small 250,002 1.867 2.978* 49.6% 62.5% 61.8% 1.54 1.95 1.87 5.93* 25.1%
hajili/roberta-base-azerbaijani 250,002 1.867 2.978* 49.6% 62.5% 61.8% 1.54 1.95 1.87 5.93* 25.1%
BAAI/bge-m3 250,002 1.867 2.978* 49.6% 62.5% 61.8% 1.54 1.95 1.87 5.93* 25.1%
Alibaba-NLP/gte-multilingual-base 250,002 1.867 2.978* 49.6% 62.5% 61.8% 1.54 1.95 1.87 5.93* 25.1%
Qwen/Qwen2.5-7B-Instruct 151,665 3.533 4.487 9.1% 25.2% 24.3% 1.43 2.77 2.66 2.47 100.0%

*Non-lossless tokenizers drop/normalize whitespace or emit <unk> (LocalDoc-50k has 29.3% <unk> on World-74; XLM-R 250k models have 2.4% <unk>). Both ulduz tokenizers achieve 0.00% <unk> and 100.0% lossless reconstruction.

License

Apache-2.0

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support