pints-ai/Expository-Prose-V1
Viewer • Updated • 6.67M • 41 • 20
How to use pszemraj/bytebpe-tokenizer-32k-mlm-uncased with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("pszemraj/bytebpe-tokenizer-32k-mlm-uncased", device_map="auto")uncased BPE tokenizer for encoders/MLM objective with byte-pair fallback:
pints-ai/Expository-Prose-V1; this tokenizer is primarily for English and code.model_max_length is set to 1e9 to not cause hidden issues. Set tokenizer.model_max_length to your model's max position embeddings when training.