Skip to content

Conversation

@patrickvonplaten
Copy link
Contributor

@patrickvonplaten patrickvonplaten commented Aug 29, 2022

Since the change of having pipelines default to CPU, lots of tests are currently running on CPU even if GPU is available which leads to test_pipelines taking >20min . This PR brings testing time on GPU down to ~2min

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Aug 29, 2022

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

Copy link
Member

@anton-l anton-l left a comment

Choose a reason for hiding this comment

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

Thanks for looking into it, glad to have these tests back to the old speed!

Comment on lines +100 to +101
scheduler = DDPMScheduler(num_train_timesteps=10)

Copy link
Member

Choose a reason for hiding this comment

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

Nice!

@patrickvonplaten patrickvonplaten merged commit 9e1b1ca into main Aug 29, 2022
@patrickvonplaten patrickvonplaten deleted the move_pipeline_to_gpu branch August 29, 2022 13:58
natolambert pushed a commit that referenced this pull request Sep 7, 2022
* [Tests] Make sure tests are on GPU

* move more models

* speed up tests
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