Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A character is splited into two tokens #294

Closed
kerlion opened this issue May 10, 2024 · 1 comment
Closed

A character is splited into two tokens #294

kerlion opened this issue May 10, 2024 · 1 comment

Comments

@kerlion
Copy link

kerlion commented May 10, 2024

I found that tiktoken splits a Chinese character into two tokens, is this normal?

@hauntsaninja
Copy link
Collaborator

Yes, this is expected. There are like 150K unicode characters, so if your vocab size is less than that some Unicode character has to be split into multiple tokens.

@hauntsaninja hauntsaninja closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants