Downloads · 30 days
0
assemsabry/traum-tokenizer
traum-tokenizer is a token classification model from assemsabry. Use it when you need labels on individual words, such as names. The card lists the license as mit.
Traum Tokenizer is a high-performance, specialized tokenizer designed for next-generation Large Language Models (LLMs) and specifically optimized for the Flash - SLM project. Developed after extensive research into ex…
Downloads · 30 days
0
Access
Public
Updated Apr 2, 2026
Repo size
570 KB
Likes
2
Public
Click a slice to open those files.
.json4.6 MB · 89%
From the Hugging Face model README
Traum Tokenizer is a high-performance, specialized tokenizer designed for next-generation Large Language Models (LLMs) and specifically optimized for the Flash - SLM project. Developed after extensive research into existing tokenizers like GPT-2 and BERT, Traum Tokenizer addresses the critical need for a balanced approach between compression efficiency, training speed, and linguistic understanding.
A tokenizer's efficiency is paramount to a model's performance. Traum Tokenizer utilizes a Byte-Level BPE (Byte-Pair Encoding) algorithm, which ensures that no unknown or encoding error tokens are produced, making it robust across diverse text types.
Traum Tokenizer has been benchmarked against GPT-2 and LLaMA tokenizers across multiple domains. The performance metrics focus on the compression ratio (Characters per Token), where higher values indicate more efficient tokenization.
| Benchmark Category | Traum Tokenizer | GPT-2 Tokenizer | LLaMA Tokenizer |
|---|---|---|---|
| English Text | 2.80 | 2.80 | 2.33 |
| Mathematical Logic | 1.00 | 1.00 | 0.83 |
| Code Syntax | 2.57 | 2.57 | 2.57 |
| Chain-of-Thought (CoT) | 7.00 | 3.50 | 3.11 |
The chart below visualizes the comparative efficiency of Traum Tokenizer across different test sets.

Traum Tokenizer is the foundational component for a series of upcoming open-source AI models designed for high-efficiency reasoning. These models will be released on the official account. Based on community interest and feedback, the tokenizer architecture may be fully open-sourced for broad use in the future.
Load the tokenizer via the Hugging Face Transformers library:
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("assemsabry/traum-tokenizer")
# Example usage
text = "The quick brown fox jumps over the lazy dog."
tokens = tokenizer.encode(text)
print(f"Encoded tokens: {tokens}")
print(f"Decoded text: {tokenizer.decode(tokens)}")
tokenizer.json: Core BPE tokenizer configuration and vocabulary.tokenizer_config.json: Metadata and configuration for the Transformers/Tokenizers library.traum_chart.png: Benchmark visualization.README.md: System documentation and benchmarks.Assem Sabry is an Egyptian AI Engineer & Researcher and the founder of Token AI (founded in 2025).