Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[ci] enable hotswapping tests on our nightly CI.#11826

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
sayakpaul wants to merge2 commits intomain
base:main
Choose a base branch
Loading
fromfix-hotswapping-ci

Conversation

sayakpaul
Copy link
Member

What does this PR do?

LoRA hotswapping with compilation is a crucial feature which deserves (at least nightly) testing. This PR enables that.

This PR also sets theRUN_SLOW flag inpush_tests.yml for the compilation test job as without it, those tests won't run. Should we enable hotswapping tests in that workflow, too? I am okay if not.

Additionally, a few questions:

  • We have bothpush_tests_fast.yml andpush_tests.yml. I am assuming the tests underpush_tests_fast.yml would have already run before the changes made their way tomain. So, I wonder if we should removepush_tests_fast.yml?
  • Should we allow slow tests to run duringpush_tests? We should most definitely look into how we segregate slow and nightly our tests for this.

I believe this deserves attention as it would help us reduce our CI time.

@sayakpaulsayakpaul requested a review fromDN6June 28, 2025 07:54
env:
HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
RUN_COMPILE: yes
run: |
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile -s -v -k "compile" --make-reports=tests_torch_compile_cuda tests/
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile -s -v -k "hotswap" --make-reports=tests_torch_hotswap_cuda tests/
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this would only run tests with the name hotswap in them and not all compile tests.

I think theis_torch_compile decorator andRUN_COMPILE env variable can only used to skip/include compile tests in the larger test suite. They can't be used to isolate compile tests only.

We should makeis_torch_compile a marker similar to#11786. And then add it to hotswap tests. That way you have more control over how compile tests run (you can include them as part of larger test suite, isolate them or skip them)

run: cat reports/tests_torch_compile_cuda_failures_short.txt
run: |
cat reports/tests_torch_compile_cuda_failures_short.txt
cat reports/tests_torch_hotswap_cuda_failures_short.txt
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can just group hotswap and compile together I think.

@DN6
Copy link
Collaborator

DN6 commentedJul 8, 2025

We don't run slow tests on merge to main. It takes to long to run them on every merge (> 1 hr)
#8870

If we want to run compile tests on merge, we can just make fast test for them?

@DN6
Copy link
Collaborator

DN6 commentedJul 8, 2025

And we can remove push_tests_fast. It's duplicate work now. Think I forgot to remove it.

@sayakpaul
Copy link
MemberAuthor

Discussed it with@DN6 offline. Will change the scope of the PR a bit to maintain consistency in terms of the types of tests being run during each stage (merge, nightly, etc.).

@sayakpaulsayakpaul marked this pull request as draftJuly 9, 2025 15:44
@sayakpaul
Copy link
MemberAuthor

Will club#11773 with it too.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@DN6DN6DN6 left review comments

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@sayakpaul@DN6

[8]ページ先頭

©2009-2025 Movatter.jp