Skip to content

TST Update diffusers hotswap tests#2619

Merged
BenjaminBossan merged 3 commits intohuggingface:mainfrom
BenjaminBossan:tst-update-hotswap-diffusers-tests
Jul 2, 2025
Merged

TST Update diffusers hotswap tests#2619
BenjaminBossan merged 3 commits intohuggingface:mainfrom
BenjaminBossan:tst-update-hotswap-diffusers-tests

Conversation

@BenjaminBossan
Copy link
Copy Markdown
Member

When the diffusers hotswap tests were added to PEFT in #2120, the diffusers test was marked as xfail because hotswapping was not yet implemented in diffusers. This has long been achieved but the test was not updated.

This PR now updates the diffusers test in PEFT and removes the xfail. The new test is basically a copy of the corresponding test in diffusers. Moreover, I enhanced the test according to #2611 to also ensure that there are no CUDA graph re-records.

Note:

When the diffusers hotswap tests were added to PEFT in huggingface#2120, the
diffusers test was marked as xfail because hotswapping was not yet
implemented in diffusers. This has long been achieved but the test was
not updated.

This PR now updates the diffusers test in PEFT and removes the xfail.
The new test is basically a copy of the corresponding test in diffusers.
Moreover, I enhanced the test according to huggingface#2611 to also ensure that
there are no CUDA graph re-records.
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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.

Copy link
Copy Markdown
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.

It looks good. If you want to remove these tests since we test them in diffusers any way, we can do that too.

@BenjaminBossan
Copy link
Copy Markdown
Member Author

If you want to remove these tests since we test them in diffusers any way, we can do that too.

I think it's better to keep the tests as otherwise, we might otherwise add changes to PEFT that break hot-swapping in diffusers.

@BenjaminBossan BenjaminBossan merged commit 180777e into huggingface:main Jul 2, 2025
10 of 14 checks passed
@BenjaminBossan BenjaminBossan deleted the tst-update-hotswap-diffusers-tests branch July 2, 2025 14:56
efraimdahl pushed a commit to efraimdahl/peft that referenced this pull request Jul 12, 2025
When the diffusers hotswap tests were added to PEFT in huggingface#2120, the
diffusers test was marked as xfail because hotswapping was not yet
implemented in diffusers. This has long been achieved but the test was
not updated.

This PR now updates the diffusers test in PEFT and removes the xfail.
The new test is basically a copy of the corresponding test in diffusers.
Moreover, I enhanced the test according to huggingface#2611 to also ensure that
there are no CUDA graph re-records.
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.

3 participants