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

Add ChatML special tokens to GPT-4 tokenizer #689

Closed
wants to merge 1 commit into from

Conversation

samhavens
Copy link
Contributor

It might be possible to do this in general for arbitrary additional special tokens... but tiktoken does NOT make it easy. So I add this special case. LMK if I need to approach this another way.

@samhavens samhavens requested review from bcui19 and dakinggg October 24, 2023 00:40
Copy link
Contributor

@bcui19 bcui19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but will wait for Daniel to approve

@samhavens
Copy link
Contributor Author

closing in lieu of #695 which fixes the underlying issue preventing one from adding special tokens at instantiation time

@samhavens samhavens closed this Oct 26, 2023
@samhavens samhavens deleted the chatml-tiktoken branch October 26, 2023 02:39
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

Successfully merging this pull request may close these issues.

2 participants