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

fix: switch from slow to generic tokenizer class #15122

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

lvwerra
Copy link
Member

@lvwerra lvwerra commented Jan 12, 2022

What does this PR do?

This PR fixes #15077 where the slow tokenizer version is loaded which does not have a train_new_from_iterator method by replacing it with AutoTokenizer that loads the fast version by default.

@lvwerra lvwerra requested a review from LysandreJik January 12, 2022 10:22
Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

LGTM

@LysandreJik LysandreJik merged commit aa0135f into master Jan 12, 2022
@LysandreJik LysandreJik deleted the fix-tokenizer-training-codeparrot branch January 12, 2022 14:12
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.

train_new_from_iterator missing from GPT2Tokenizer
2 participants