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

error when loading model with newer version of transformers #24

Closed
chrisrude opened this issue Jul 26, 2023 · 1 comment
Closed

error when loading model with newer version of transformers #24

chrisrude opened this issue Jul 26, 2023 · 1 comment
Assignees
Milestone

Comments

@chrisrude
Copy link
Owner

https://github.com/huggingface/transformers/blob/1689aea73346816b936b84932e12b774974e61a6/src/transformers/utils/logging.py#L291
The transformer package now monkey-patches the global Logger object, which gets undone when we initialize our own logging. Do a quick fix to at least let their specific attributes continue to work.

When this error occurs, you would see this when trying to load a model into Oobabooga, only when oobabot-plugin is loaded:

line 135, in init logger.warning_once( AttributeError: ‘Logger’ object has no attribute ‘warning_once’
@chrisrude chrisrude self-assigned this Jul 26, 2023
@chrisrude
Copy link
Owner Author

fixed in 84017e7

Going to push 0.2.2 soon to distribute the fix, as it's a severe regression.

@chrisrude chrisrude added this to the 0.2.2 milestone Jul 26, 2023
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

No branches or pull requests

1 participant