-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Improve setup.py and add dependency check #5826
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
Conversation
@@ -0,0 +1,117 @@ | |||
# Copyright 2020 The HuggingFace Team. All rights reserved. |
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.
Copied from transformers
Thanks for adding the check. There probably needs to be an option to toggle this check off so that we can run CI on |
Tend to agree with this. Otherwise, we won't be able to catch issues. What's the plan for that, @patrickvonplaten? |
} | ||
|
||
|
||
def _compare_versions(op, got_ver, want_ver, requirement, pkg, hint): |
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.
Nice. Then we should totally use it remove functions like compare_torch_versions()
.
Good point! |
New functionality if PEFT > 0.6.2 is installed:
will fail
won't fail |
That works for me! |
Thanks for adding the switch. The PEFT GH workflow requires it to be set to avoid failing the version check. |
Will update this in #5838 ! |
* put peft in requirements * correct peft * correct installs * make style * make style
* put peft in requirements * correct peft * correct installs * make style * make style
What does this PR do?
This PR makes sure that when PEFT is installed but it doesn't match what's written in the setup.py it fails gracefully.
The following will fail:
and
with: