Downloads · 30 days
0
vuiseng9/bpe-10.0k-tinystories
bpe-10.0k-tinystories is a machine learning model from vuiseng9. 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 Byte-Pair Encoding (BPE) tokenizer trained on the TinyStories dataset with a vocabulary size of 10,000 tokens.
Downloads · 30 days
0
Access
Public
Updated Dec 18, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json688 KB · 99%
From the Hugging Face model README
A Byte-Pair Encoding (BPE) tokenizer trained on the TinyStories dataset with a vocabulary size of 10,000 tokens.
<|endoftext|>: BOS/EOS/UNK token<|padding|>: Padding tokenTraining tokenizer on all samples...
[Info] Tokenizer 10000 vocabs saved to './bpe-10.0k-tinystories'
--- Test ---
Input: Once upon a time, there was a tiny dragon.
Tokens: [7013, 2402, 247, 673, 13, 627, 369, 247, 5888, 10295, 15]
Decoded: Once upon a time, there was a tiny dragon.
from transformers import PreTrainedTokenizerFast
tokenizer = PreTrainedTokenizerFast.from_pretrained("vuiseng9/bpe-10.0k-tinystories")
# Encode text
text = "Once upon a time, there was a tiny dragon."
tokens = tokenizer.encode(text)
print(tokens)
# Decode tokens
decoded = tokenizer.decode(tokens)
print(decoded)
# Full training on entire dataset
python train_bpe.py --real
# see more options
python train_bpe.py -h