Downloads · 30 days
0
mkshing/novelai-tokenizer-v1
novelai-tokenizer-v1 is a machine learning model from mkshing. 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 gpl-2.0.
This repository is exactly the same as NovelAI/nerdstash-tokenizer-v1, but the config has been changed to address the following points (the sp model itself is not changed).
Downloads · 30 days
0
Access
Public
Updated Aug 14, 2023
Repo size
1 MB
Likes
0
Public
Click a slice to open those files.
.model1 MB · 100%
From the Hugging Face model README
This repository is exactly the same as NovelAI/nerdstash-tokenizer-v1, but the config has been changed to address the following points (the sp model itself is not changed).
additional_special_tokens, so if skip_special_tokens=True when decoding, the digits are also skipped.)
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("mkshing/novelai-tokenizer-v1", use_fast=False)
text = "1+1=3"
tokenizer.decode(tokenizer.encode(text), skip_special_tokens=True)
# '1+1=3'