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

Explicit torch/flax dependency check #5673

Merged
merged 4 commits into from
Nov 7, 2023

Conversation

DN6
Copy link
Collaborator

@DN6 DN6 commented Nov 7, 2023

What does this PR do?

Dependency tests aren't catching import issues caused when certain soft dependencies are introduced via Mixins (see #5668)

This PR tests soft dependencies when either torch or flax is installed, so that these import issues can be be caught.

Fixes # (issue)

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@DN6 DN6 changed the title [WIP] explicit torch dependency check [WIP] explicit torch/flax dependency check Nov 7, 2023
@DN6 DN6 changed the title [WIP] explicit torch/flax dependency check Explicit torch/flax dependency check Nov 7, 2023
@DN6
Copy link
Collaborator Author

DN6 commented Nov 7, 2023

FYI, adding these checks adds 2 mins to the PR tests. We can speed it up by adding a dedicated image for dependency testing.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 7, 2023

The documentation is not available anymore as the PR was closed or merged.

@sayakpaul
Copy link
Member

Hmm adding 2 mins extra for fast tests seems to be long. But the proposed solution works for me.

@patrickvonplaten
Copy link
Contributor

Ok for now! Let's clean up the tests after the release

@patrickvonplaten
Copy link
Contributor

Thanks for the fix!

@patrickvonplaten patrickvonplaten merged commit 97c8199 into main Nov 7, 2023
12 of 13 checks passed
kashif pushed a commit to kashif/diffusers that referenced this pull request Nov 11, 2023
* explicit torch dependency check

* update

* update

* update
@kashif kashif deleted the dependency-test-improvements branch December 5, 2023 08:59
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
* explicit torch dependency check

* update

* update

* update
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.

None yet

4 participants