-
Notifications
You must be signed in to change notification settings - Fork 117
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 transformers v4.42.0 compatibility #793
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
@@ -681,6 +681,7 @@ def _inner_training_loop( | |||
def save_model( | |||
self, | |||
output_dir: Optional[str] = None, | |||
_internal_call: bool = False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Thanks
"optimum~=1.20", | ||
"transformers>=4.36.0,<4.43.0", | ||
"optimum @ git+https://github.com/huggingface/optimum.git", | ||
# "optimum>=1.21.2,<1.22.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optimum>=1.21.2,<1.22.0
needed to include huggingface/optimum#1938
* fix transformers v4.42.0 compatibility * fix inc modeling * update setup * add missing argument * fix patching * format * fix num quant op * remove incompatible transformers generation * udpate setup
Fixes #792
Can be merged after transformers next patch release huggingface/transformers#31755