A
262,144-token SentencePiece BPE tokenizer
designed for efficient tokenization across all EU official languages and additional European languages. Trained on 173 GB of curated multilingual text from the OpenEuroLLM data catalogue on LUMI HPC.
Key Results
Best fertility (tokens per word) on 26 out of 38 European languages
, outperforming Llama 3.2, Gemma 3, GPT-OSS, EuroLLM, Qwen 2.5, DeepSeek V3, and Mistral v0.3
Lowest average fertility overall: 2.12
across 38 languages
Particularly strong on lower-resource EU languages: Lithuanian (31% fewer tokens than Llama), Hungarian (22%), Icelandic (26%), Maltese (25%)
English fertility (1.58) within 5% of best (GPT-OSS, 1.51) — no trade-off
Usage
from transformers import AutoTokenizer
tok = AutoTokenizer.from_pretrained("openeurollm/tokenizer-256k")
text = "Hello world! Bonjour le monde. Hej världen!"
ids = tok(text)["input_ids"]
decoded = tok.decode(ids, skip_special_tokens=True)
print(f"Tokens: {len(ids)}")
print(f"Decoded: {decoded}")
Batch encoding
texts = [
"The quick brown fox jumps over the lazy dog.",
"Der schnelle braune Fuchs springt über den faulen Hund.",
"Le rapide renard brun saute par-dessus le chien paresseux.",
]
batch = tok(texts, padding=True, return_tensors="pt")
print(batch["input_ids"].shape) # (3, max_len)
Special Tokens
Token
ID
Purpose
<unk>
0
Unknown
<bos>
1
Beginning of sequence
<eos>
2
End of sequence
<start_of_turn>
3
Chat turn start
<end_of_turn>
4
Chat turn end
<start_of_image>
5
Image start
<end_of_image>
6
Image end
<image_soft_token>
7
Image placeholder
<fim_prefix>
8
Fill-in-middle prefix
<fim_middle>
9
Fill-in-middle middle
<fim_suffix>
10
Fill-in-middle suffix
<tool_call>
11
Tool call start
</tool_call>
12
Tool call end
<unused_0>
–
<unused_99>
13–112
Reserved for future use
<pad>
262,144
Padding
Training Details
Parameter
Value
Algorithm
BPE (SentencePiece)
Vocabulary size
262,144
Training data
173 GB multilingual corpus
Data mix
70% English, 10% code/math, 20% other languages (37 languages)
Character coverage
0.9995
Normalization
Identity (lossless)
Byte fallback
Enabled
Digit splitting
Enabled
Max piece length
16
Trained on
LUMI HPC (CSC, Finland)
Training time
~9 hours (32 CPUs, 128 GB RAM)
Data Sources
The training corpus aggregates cleaned/deduplicated text from: C4, FineWeb-2, Nemotron-CC, MADLAD-400, HPLT, FinePDFs, German-Commons, StarCoder, Proof-Pile-2, Cosmopedia-v2, and FineMath.
Languages (37 + English)
EU Official (23):
bg, hr, cs, da, nl, et, fi, fr, de, el, hu, ga, it, lv, lt, mt, pl, pt, ro, sk, sl, es, sv
Additional European (14):
sq, eu, bs, ca, gl, is, lb, mk, no, ru, sr, tr, uk, cy
Fertility Evaluation
Average tokens per word across 38 European languages (lower = better), evaluated on 200 Wikipedia articles per language:
tokenizer-256k huggingface.co is an AI model on huggingface.co that provides tokenizer-256k's model effect (), which can be used instantly with this openeurollm tokenizer-256k model. huggingface.co supports a free trial of the tokenizer-256k model, and also provides paid use of the tokenizer-256k. Support call tokenizer-256k model through api, including Node.js, Python, http.
tokenizer-256k huggingface.co is an online trial and call api platform, which integrates tokenizer-256k's modeling effects, including api services, and provides a free online trial of tokenizer-256k, you can try tokenizer-256k online for free by clicking the link below.
openeurollm tokenizer-256k online free url in huggingface.co:
tokenizer-256k is an open source model from GitHub that offers a free installation service, and any user can find tokenizer-256k on GitHub to install. At the same time, huggingface.co provides the effect of tokenizer-256k install, users can directly use tokenizer-256k installed effect in huggingface.co for debugging and trial. It also supports api for free installation.