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

[PEFT / Tests] Add peft slow tests on push #5419

Merged

Conversation

younesbelkada
Copy link
Contributor

What does this PR do?

As per title.

Currently PEFT slow tests are not being tested on main push. This PR adds a new job in the slow tests workflow to make sure we test PEFT slow tests on main

cc @patrickvonplaten @DN6 @sayakpaul

I am also happy to push this change on a dummy branch on hf repo to test the implementation

@sayakpaul sayakpaul requested a review from DN6 October 17, 2023 11:44
@patrickvonplaten
Copy link
Contributor

@DN6 can you check here?

@sayakpaul
Copy link
Member

@DN6 gentle ping.

python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
-s -v -k "not Flax and not Onnx" \
--make-reports=tests_peft_cuda \
tests/lora/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Under lora we have the test suite that doesn't utilize peft. Do we wanna include them here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but they're going to be skipped thanks to this decorator: https://github.com/huggingface/diffusers/blob/main/tests/lora/test_lora_layers_old_backend.py#L1883 being set everywhere

Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this works for me!

@patrickvonplaten
Copy link
Contributor

patrickvonplaten commented Oct 25, 2023

Reping @DN6

Copy link
Collaborator

@DN6 DN6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏽

@patrickvonplaten patrickvonplaten merged commit 8f3100d into huggingface:main Oct 30, 2023
11 checks passed
@younesbelkada younesbelkada deleted the add-peft-slow-test-ci branch October 30, 2023 13:34
kashif pushed a commit to kashif/diffusers that referenced this pull request Nov 11, 2023
* add peft slow tests workflow

* Update .github/workflows/push_tests.yml

---------

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
* add peft slow tests workflow

* Update .github/workflows/push_tests.yml

---------

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
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.

4 participants