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

Use getattr instead of __getattribute__ to get tokenizer args #73

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

tomaarsen
Copy link
Owner

Resolves #70

Hello!

Pull Request overview

  • Use getattr instead of getattribute to get tokenizer args

Details

It seems that __getattribute__ does not work anymore, likely due to an update on the transformers side in 4.47.X where they (also) started using a bit of a hackish approach for exposing the pad_token_id attribute.

  • Tom Aarsen

@tomaarsen tomaarsen merged commit e98d690 into main Jan 8, 2025
8 checks passed
@tomaarsen tomaarsen deleted the tokenizer_getattr branch January 8, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant