This repository was archived by the owner on Mar 5, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 92
Replace GPT2TokenizerFast with tiktoken-based tokenizer (#44)#44
Closed
github-actions[bot] wants to merge 4 commits intomainfrom
Closed
Replace GPT2TokenizerFast with tiktoken-based tokenizer (#44)#44github-actions[bot] wants to merge 4 commits intomainfrom
github-actions[bot] wants to merge 4 commits intomainfrom
Conversation
Contributor
This PR fixes issue #43 by replacing GPT2TokenizerFast with a tiktoken-based tokenizer. The new implementation supports both messages for chat completions models and simple strings for ordinary completions models.
List of commits:
- Implement tiktoken-based tokenizer in autopr.utils.tokenizer
- Update tokenizer usage in autopr/utils/repo.py
- Update tokenizer usage in autopr/repos/completions_repo.py
- Add tests for the new tiktoken-based tokenizer
github-actions
bot
changed the title
Replace GPT2TokenizerFast with tiktoken
Replace GPT2TokenizerFast with tiktoken and update function calls
Apr 11, 2023
github-actions
bot
force-pushed
the
autopr/43
branch
from
April 11, 2023 22:12
04afa8a to
f082ab3
Compare
github-actions
bot
changed the title
Replace GPT2TokenizerFast with tiktoken and update function calls
Replace GPT2TokenizerFast with tiktoken
Apr 11, 2023
github-actions
bot
force-pushed
the
autopr/43
branch
from
April 11, 2023 22:59
f082ab3 to
325fa16
Compare
github-actions
bot
changed the title
Replace GPT2TokenizerFast with tiktoken
Replace GPT2TokenizerFast with tiktoken-based tokenizer (#44)
Apr 11, 2023
github-actions
bot
force-pushed
the
autopr/43
branch
from
April 11, 2023 23:19
2995f85 to
a218b25
Compare
AutoPR
added 3 commits
April 11, 2023 23:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.