Downloads · 30 days
7
6% of all-time downloads
ggunio/B2NL-v6.1.1
B2NL-v6.1.1 is a machine learning model from ggunio. 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.
A revolutionary tokenizer that doesn't need vocabulary files! - Called "tokenizer" for easy understanding - Actually: Intelligent byte grouping system - Replaces traditional tokenizers completely
Downloads · 30 days
7
6% of all-time downloads
All-time downloads
111
Public
Repo size
1.2 GB
Likes
0
Public
Click a slice to open those files.
.bin1.2 GB · 100%
From the Hugging Face model README
A revolutionary tokenizer that doesn't need vocabulary files!
Traditional Tokenizers:
B2NL (Tokenizer-Free):
text = "안녕하세요. 오늘 날씨가 좋네요."
# GPT Tokenizer: ~15 tokens
# B2NL Current: 18 embeddings (improving)
# B2NL Target: 4 embeddings (word-level)
# B2NL Ultimate: 2-3 embeddings (phrase-level)
| Language | Current | Target | Ultimate | vs GPT-4 |
|---|---|---|---|---|
| Korean | 2.4:1 | 11:1 | 20:1 | 3x better |
| Chinese | 3.0:1 | 10:1 | 15:1 | 3x better |
| Japanese | 3.0:1 | 10:1 | 15:1 | 3x better |
| Arabic | 1.8:1 | 7:1 | 10:1 | 2x better |
| English | 1.0:1 | 3:1 | 5:1 | Similar |
| Spanish | 1.0:1 | 3:1 | 5:1 | Similar |
from b2nl import B2NLTokenizer
tokenizer = B2NLTokenizer()
# No vocabulary loading needed!
text = "안녕하세요. 오늘 날씨가 좋네요."
tokens = tokenizer.encode(text) # Returns grouped embeddings
decoded = tokenizer.decode(tokens) # Perfect reconstruction
print(f"Compression: {len(text.encode('utf-8'))/len(tokens):.1f}x")
# Current: 2.4x, Target: 11x
Current limitations:
B2NL: The last tokenizer you'll ever need - because it's not a tokenizer, it's intelligence.