Downloads · 30 days
0
chhatramani/nyayalm-SentencePiece_BPE-64k
nyayalm-SentencePiece_BPE-64k is a text generation model from chhatramani. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A production-grade 64 000-vocab SentencePiece BPE tokenizer trained for Nepali (Devanagari), Romanized Nepali, and English, with special focus on legal and institutional text.
Downloads · 30 days
0
Access
Public
Updated Aug 10, 2026
Repo size
2.6 MB
Likes
0
Public
Click a slice to open those files.
.json8.3 MB · 77%
From the Hugging Face model README
A production-grade 64 000-vocab SentencePiece BPE tokenizer trained for Nepali (Devanagari), Romanized Nepali, and English, with special focus on legal and institutional text.
This is the SentencePiece_BPE tokenizer, trained on the exact same corpus and vocabulary budget for fair comparison with BPE only Tokenizer.
| Property | Value |
|---|---|
| Vocabulary size | 64 000 |
| Algorithm | SentencePiece BPE + byte_fallback |
| Scripts | Devanagari + Latin |
| Languages | Nepali, Romanized Nepali, English |
| Special tokens | Qwen3 style (high IDs) |
| EOS | `< |
| PAD / document sep. | `< |
| BOS | None (Qwen-style) |
| Character coverage | 0.9995 |
| License | Apache 2.0 |
from transformers import AutoTokenizer
tok = AutoTokenizer.from_pretrained("chhatramani/nyayalm-SentencePiece_BPE-64k")
text = "नेपालको संविधान २०७२ ले मौलिक हकको ग्यारेन्टी गर्दछ।"
ids = tok.encode(text, add_special_tokens=False)
print(len(ids), tok.decode(ids))
messages = [
{"role": "system", "content": "You are a helpful legal assistant for Nepal."},
{"role": "user", "content": "नेपालको संविधानमा मौलिक हक के-के छन्?"},
]
print(tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True))
@misc{nyayalm_tokenizer_64k_bpe,
title = {NyayaLM 64K SentencePiece-BPE Tokenizer for Nepali, Romanized Nepali, and English},
author = {Chhatramani Yadav},
year = {2026},
howpublished = {\url{https://huggingface.co/chhatramani/nyayalm-SentencePiece_BPE-64k}},
}
Apache License 2.0.