Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
xu-song
/
tokenizer-arena
like
56
Running
App
Files
Files
Community
1
3030d21
tokenizer-arena
/
vocab
/
baichuan
/
demo.py
xu-song
add more tokenizers
f4973d4
12 months ago
raw
Copy download link
history
blame
Safe
106 Bytes
from
vocab.baichuan
import
tokenizer
id1 = tokenizer.encode(
"<pad>"
)
token1 = tokenizer.decode(
125696
)