Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
eson
/
tokenizer-arena
like
53
Running
App
Files
Files
Community
1
0ce6477
tokenizer-arena
/
vocab
/
gpt_4
/
test.py
eson
update
751936e
about 1 year ago
raw
Copy download link
history
blame
No virus
91 Bytes
"""
详见 gpt_35_turbo
"""
import
tiktoken
enc = tiktoken.encoding_for_model(
"gpt-4"
)