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

[chore] If Transformers 4.46.0, use processing_class instead of tokenizer when saving #3038

Merged

Conversation

tomaarsen
Copy link
Collaborator

Follow-up of #3026

Hello!

Pull Request overview

  • If Transformers 4.46.0, use processing_class instead of tokenizer when saving

Details

If we use tokenizer with Transformers v4.46.0+, then we'll get this twice every time that a model is checkpointed

Trainer.tokenizer is now deprecated. You should use Trainer.processing_class instead
  • Tom Aarsen

@tomaarsen tomaarsen merged commit 5bccba3 into UKPLab:master Nov 6, 2024
9 checks passed
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.

1 participant