Downloads · 30 days
43
31% of all-time downloads
ryanscottbarrett/braille256-v3
braille256-v3 is a text generation model from ryanscottbarrett. Use it when you need the model to write or continue text. The card lists the license as mit.
A 27.8M parameter language model trained natively on Braille Unicode using SentencePiece Unigram tokenization for superior compression.
Downloads · 30 days
43
31% of all-time downloads
All-time downloads
139
Public
Repo size
112 MB
Likes
0
Public
Click a slice to open those files.
.bin111 MB · 100%
From the Hugging Face model README
A 27.8M parameter language model trained natively on Braille Unicode using SentencePiece Unigram tokenization for superior compression.
| Token | Braille | Languages |
|---|---|---|
| 15 | ⠞⠓⠑ (the) | English |
| 22 | ⠟⠥⠑ (que) | Spanish/French/Portuguese |
| 23 | ⠁⠝⠙ (and) | English |
| 25 | ⠕⠋ (of) | English |
| 17 | ⠙⠑ (de) | Spanish/French/Italian/Portuguese |
| 18 | ⠇⠁ (la) | Spanish/French/Italian |
| Metric | Value |
|---|---|
| Parameters | 27.8M |
| Vocabulary | 4096 (Unigram) |
| Training Steps | 15,000 |
| Final Loss | 2.17 |
| Training Time | 3h 22m (MPS) |
| Corpus | 32M Braille chars (7 languages) |
Hidden Size: 512
Layers: 8
Attention Heads: 8
Max Sequence Length: 1024
Tokenizer: SentencePiece Unigram
from braille_unigram_model import Braille256UnigramModel, BrailleUnigramTokenizer
model = Braille256UnigramModel.from_pretrained("ryanscottbarrett/braille256-v3")
tokenizer = BrailleUnigramTokenizer.from_pretrained("ryanscottbarrett/braille256-v3/tokenizer")
# Encode Braille text
text = "⠞⠓⠑⠀⠟⠥⠊⠉⠅⠀⠃⠗⠕⠺⠝⠀⠋⠕⠭"
tokens = tokenizer.encode(text)
print(f"Compression: {len(text)}/{len(tokens)} = {len(text)/len(tokens):.2f}x")
This model is part of the Grade Infinity Braille research project:
@misc{braille256v3,
author = {Ryan Barrett},
title = {Braille256-v3: Grade Infinity Universal Braille Model},
year = {2024},
publisher = {HuggingFace},
url = {https://huggingface.co/ryanscottbarrett/braille256-v3}
}
MIT