-
Notifications
You must be signed in to change notification settings - Fork 6.1k
[tests] unbloat tests/lora/utils.py
#11845
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
base: main
Are you sure you want to change the base?
Conversation
@@ -103,34 +103,6 @@ def get_dummy_inputs(self, with_generator=True): | |||
|
|||
return noise, input_ids, pipeline_inputs | |||
|
|||
@unittest.skip("Not supported in AuraFlow.") |
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.
These are skipped appropriately from the parent method. I think it's okay in this case, because it eases things a bit.
tests/lora/utils.py
tests/lora/utils.py
I haven't checked the PR yet, but I was wondering: When I do bigger refactors of tests, I always check the line coverage before and after the refactor and ensure that they're the same (in PEFT we use |
Indeed, it's important. Do you have any more guidelines for me to do that? |
So you can install
It can be a bit difficult to parse what has changed, but basically, you want the |
What does this PR do?
We take the following approach:
parameterized
to combine similar flavored tests.peft>=0.15.0
a mandate. So, I removed@require_peft_version_greater
decorator.In a follow-up PR, I will attempt to improve tests from the LoRA test suite that take the most amount of time.