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
44c3329
tokenizer-arena
/
vocab
/
gpt_4
/
test.py
xu-song
update
751936e
about 1 year ago
raw
Copy download link
history
blame
Safe
91 Bytes
"""
详见 gpt_35_turbo
"""
import
tiktoken
enc = tiktoken.encoding_for_model(
"gpt-4"
)