Skip to content

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

Development

Successfully merging this pull request may close these issues.

AttributeError: 'RobertaTokenizerFast' object has no attribute 'pad_token_id'. Did you mean: 'pad_token_type_id'?

2 participants