Downloads · 30 days
0
jonasaise/oellm_tokenizer_262k_v2
oellm_tokenizer_262k_v2 is a machine learning model from jonasaise. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is the second version of the OpenEuroLLM project's custom tokenizer, oellm-262k-v2. It is a highly multilingual SentencePiece BPE (Byte-Pair Encoding) tokenizer designed for processing a wide range of European la…
Downloads · 30 days
0
Access
Public
Updated Sep 12, 2025
Repo size
5.2 MB
Likes
0
Public
Click a slice to open those files.
.model5.2 MB · 100%
From the Hugging Face model README
This is the second version of the OpenEuroLLM project's custom tokenizer, oellm-262k-v2. It is a highly multilingual SentencePiece BPE (Byte-Pair Encoding) tokenizer designed for processing a wide range of European languages.
This tokenizer was trained with the specific goal of aligning with the strategy of modern, high-performance models like Google's Gemma. It features:
This tokenizer is a foundational component intended for use in training large language models within the OpenEuroLLM project and for the broader research community.
The tokenizer was trained on a ~200 GB (1 billion line) subset of a larger 800 GB text corpus. This data was curated from several sources available on the LUMI supercomputer, primarily consisting of:
The corpus contains a wide variety of European languages, with the data distribution reflecting the contents of these source datasets.
The tokenizer was trained on the LUMI supercomputer using Google's sentencepiece library. The training was performed on a largemem node with 950GB of RAM and took approximately 46 hours to complete.
The key training parameters were:
<s> (BOS), </s> (EOS), <pad>, <unk>You can use this tokenizer directly from the Hugging Face Hub with the transformers library.
from transformers import AutoTokenizer
# Load the tokenizer from the Hub
tokenizer = AutoTokenizer.from_pretrained("jonasaise/oellm_tokenizer_262k_v2")
# Example usage
text = "Hej, detta är ett test av den nya OpenEuroLLM-tokeniseraren."
encoded_ids = tokenizer.encode(text)
print(f"Original text: {text}")
print(f"Encoded token IDs: {encoded_ids}")
decoded_text = tokenizer.decode(encoded_ids)
print(f"Decoded text: {decoded_text}")
# The tokenizer automatically adds a BOS token
# >>> Decoded text: <s> Hej, detta är ett test av den nya OpenEuroLLM-tokeniseraren.
This tokenizer is intended to be used for pre-training and fine-tuning large language models on multilingual European text. Its performance is expected to be strong on the languages well-represented in the HPLT and FineWeb datasets.
The tokenizer's behavior and biases are a reflection of its training data. Users should be aware that the data is primarily sourced from the web and may contain noise, biases, or offensive content.
This tokenizer is released under the Apache 2.0 license.
If you use this tokenizer in your research, please cite it as follows:
@misc{lind_2025_oellm_tokenizer_v2,
author = {Jonas Lind and the OpenEuroLLM Contributors},
title = {OpenEuroLLM Tokenizer v2 (oellm-262k-v2)},
year = {2025},
publisher = {Hugging Face},
journal = {Hugging Face repository},
howpublished = {\url{[https://huggingface.co/jonasaise/oellm_tokenizer_262k_v2](https://huggingface.co/jonasaise/oellm_tokenizer_262k_v2)}}
}