Downloads · 30 days
0
DinoResearch/EspBPE-49K
EspBPE-49K is a text generation model from DinoResearch. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
EspBPE-49K is a custom, hyper-optimized 49,152-vocabulary Byte-Level Byte Pair Encoding (BPE) tokenizer built specifically for modern Spanish Large Language Models (LLMs).
Downloads · 30 days
0
Access
Public
Updated Aug 4, 2026
Repo size
—
Likes
2
Public
Click a slice to open those files.
.json3.5 MB · 100%
From the Hugging Face model README
EspBPE-49K is a custom, hyper-optimized 49,152-vocabulary Byte-Level Byte Pair Encoding (BPE) tokenizer built specifically for modern Spanish Large Language Models (LLMs).
Trained across a massive multi-domain Spanish dataset mixture, EspBPE-49K achieves an extraordinary compression ratio (~4.8 to 5.1 characters per token), preserving contextual length and embedding space efficiency across formal encyclopedic text, technical documentation, sports commentary, and regional internet conversations.
You can load EspBPE-49K directly using the Hugging Face transformers library:
from transformers import AutoTokenizer
# Load EspBPE-49K directly from Hugging Face Hub
tokenizer = AutoTokenizer.from_pretrained("DinoResearch/EspBPE-49K")
# Sample text
text = "Estamos entrenando un tokenizer en español super rápido y eficiente con 49,152 de vocabulario! 🚀"
# Encode text into token IDs
input_ids = tokenizer.encode(text)
tokens = tokenizer.convert_ids_to_tokens(input_ids)
print(f"Total Tokens: {len(input_ids)}")
print("Tokens:", tokens)
print("Decoded:", tokenizer.decode(input_ids))
| Text Type | Character Count | Token Count | Compression Ratio |
|---|---|---|---|
| Sports Commentary | 142 chars | 28 tokens | ~5.07 chars / token |
| Encyclopedic History (Wikipedia) | 245 chars | 49 tokens | ~5.00 chars / token |
| General Spanish Sentence | 107 chars | 22 tokens | ~4.86 chars / token |
EspBPE-49K was trained on a carefully balanced multi-source Spanish corpus:
spa_Latn): Modern, high-quality web crawl text.20231101.es): Encyclopedic knowledge baseline.es): Filtered, clean multilingual web data (OSCAR + mC4).pysentimiento): Informal dialogue, regional accents, and modern social media slang.inconstitucionalidad, extraordinariamente, descentralización, afortunadamente, and Rehabilitación map directly to single Token IDs.á, é, í, ó, ú, ñ) without producing <unk> errors.🤪, 😌, 🇵🇷, 🟢) are learned as native single-token lookup entries.javascript, tensor, Unix, coaxial) alongside regional slang across Spanish-speaking countries.49k)Ġ (ByteLevel space representation)To evaluate real-world web performance, EspBPE-49K was benchmarked head-to-head against OpenAI's o200k_base tokenizer (used in GPT-4o) across 500 unfiltered Spanish web documents (2,292,109 raw characters) from the FineWeb-2 (spa_Latn) dataset stream.
| Metric | 🦖 EspBPE-49K | 🌐 o200k_base (GPT-4o) | Advantage / Delta |
|---|---|---|---|
| Vocabulary Size | 49,152 | 200,019 | ~4x Smaller Table |
| Total Encoded Tokens | 484,581 | 520,509 | -35,928 Tokens (-6.90%) |
| Compression Ratio | 4.730 chars/token | 4.404 chars/token | +0.326 chars/token |
| Document Match Wins | 441 / 500 (88.2%) 🥇 | 50 / 500 (10.0%) | Landslide Victory |
| Draws / Ties | 9 / 500 (1.8%) | 9 / 500 (1.8%) | — |
o200k_base's vocabulary size, saving tens of millions of embedding parameters during pretraining.