Downloads · 30 days
0
alanamarzoev/american-stories-tokenizer
american-stories-tokenizer is a machine learning model from alanamarzoev. 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 mit.
BPE tokenizer trained on the American Stories dataset for use with nanochat models.
Downloads · 30 days
0
Access
Public
Updated Jan 28, 2026
Repo size
264 KB
Likes
0
Public
Click a slice to open those files.
.pt264 KB · 99%
From the Hugging Face model README
BPE tokenizer trained on the American Stories dataset for use with nanochat models.
import torch
from huggingface_hub import hf_hub_download
# Download
tokenizer_path = hf_hub_download(repo_id="alanamarzoev/american-stories-tokenizer", filename="token_bytes.pt")
# Load (requires nanochat)
from nanochat.tokenizer import Tokenizer
tokenizer = Tokenizer.from_file(tokenizer_path)
# Encode/decode
tokens = tokenizer.encode("Hello world")
text = tokenizer.decode(tokens)