Skip to content

Fix invocation of some slow Flax tests #3058

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

Merged
merged 2 commits into from
Apr 11, 2023
Merged

Fix invocation of some slow Flax tests #3058

merged 2 commits into from
Apr 11, 2023

Conversation

pcuenca
Copy link
Member

@pcuenca pcuenca commented Apr 11, 2023

I saw this while working on the test for #2889.

We use __call__ rather than pmapping the generation function ourselves because the number of static arguments is different now.

I also saw precision differences in other slow tests, but did not modify them in case the results are different in the CI TPU because of specific software versions.

We use __call__ rather than pmapping the generation function ourselves
because the number of static arguments is different now.
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Apr 11, 2023

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

@patrickvonplaten
Copy link
Contributor

Looks good to me! Let's just make sure to fix the code quality check :-)

Copy link
Contributor

@williamberman williamberman left a comment

Choose a reason for hiding this comment

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

nice!

@pcuenca pcuenca merged commit e3095c5 into main Apr 11, 2023
@pcuenca pcuenca deleted the flax-slow-tests branch April 11, 2023 21:21
w4ffl35 pushed a commit to w4ffl35/diffusers that referenced this pull request Apr 14, 2023
* Fix invocation of some slow tests.

We use __call__ rather than pmapping the generation function ourselves
because the number of static arguments is different now.

* style
dg845 pushed a commit to dg845/diffusers that referenced this pull request May 6, 2023
* Fix invocation of some slow tests.

We use __call__ rather than pmapping the generation function ourselves
because the number of static arguments is different now.

* style
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
* Fix invocation of some slow tests.

We use __call__ rather than pmapping the generation function ourselves
because the number of static arguments is different now.

* style
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