Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Replace GPT2TokenizerFast with tiktoken-based tokenizer (#44)#44

Closed
github-actions[bot] wants to merge 4 commits intomainfrom
autopr/43
Closed

Replace GPT2TokenizerFast with tiktoken-based tokenizer (#44)#44
github-actions[bot] wants to merge 4 commits intomainfrom
autopr/43

Conversation

Copy link
Contributor

github-actions bot commented Apr 11, 2023 *
edited
Loading

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:

  1. Implement tiktoken-based tokenizer in autopr.utils.tokenizer
  2. Update tokenizer usage in autopr/utils/repo.py
  3. Update tokenizer usage in autopr/repos/completions_repo.py
  4. Add tests for the new tiktoken-based tokenizer

bkowshik reacted with heart emoji
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 04afa8a to f082ab3 Compare April 11, 2023 22:12
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 f082ab3 to 325fa16 Compare April 11, 2023 22:59
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 2995f85 to a218b25 Compare April 11, 2023 23:19
irgolic closed this Nov 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant