Skip to content
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 into
mainfrom
autopr/43
Closed

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

Conversation

@github-actions

@github-actions github-actions Bot commented Apr 11, 2023

Copy link
Copy Markdown
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:

  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

@github-actions github-actions Bot changed the title Replace GPT2TokenizerFast with tiktoken Replace GPT2TokenizerFast with tiktoken and update function calls Apr 11, 2023
@github-actions github-actions Bot changed the title Replace GPT2TokenizerFast with tiktoken and update function calls Replace GPT2TokenizerFast with tiktoken Apr 11, 2023
@github-actions github-actions Bot changed the title Replace GPT2TokenizerFast with tiktoken Replace GPT2TokenizerFast with tiktoken-based tokenizer (#44) Apr 11, 2023
@irgolic irgolic closed this Nov 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant