Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
xu-song
/
tokenizer-arena
like
58
Running
App
Files
Files
Community
1
f4973d4
tokenizer-arena
/
vocab
/
gpt_4
/
test.py
xu-song
update
751936e
over 1 year ago
raw
Copy download link
history
blame
Safe
91 Bytes
"""
详见 gpt_35_turbo
"""
import
tiktoken
enc = tiktoken.encoding_for_model(
"gpt-4"
)