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

Replaces DIFFUSERS_TEST_DEVICE backend list with trying device #4673

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

vvvm23
Copy link
Contributor

@vvvm23 vvvm23 commented Aug 18, 2023

This is a better method than comparing against a list of supported backends as it allows for supporting any number of backends provided they are installed on the user's system. This should have no effect on the behaviour of tests in Huggingface's CI workers. See transformers#25506 where this approach has already been added.

What does this PR do?

Changes method of verifying provided test device (via DIFFUSERS_TEST_DEVICE) is valid by simply trying to create the device. This approach is now also used in transformers#25506.

Before submitting

Who can review?

@patrickvonplaten @sayakpaul

This is a better method than comparing against a list of supported backends as it allows for supporting any number of backends provided they are installed on the user's system.
This should have no effect on the behaviour of tests in Huggingface's CI workers.
See transformers#25506 where this approach has already been added.
@sayakpaul sayakpaul requested a review from DN6 August 18, 2023 15:28
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Collaborator

@DN6 DN6 left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏽

@DN6 DN6 merged commit e34d9aa into huggingface:main Aug 22, 2023
@DN6
Copy link
Collaborator

DN6 commented Aug 22, 2023

Nice work @vvvm23 💪🏽

@vvvm23 vvvm23 deleted the change-diffusers-test-device branch August 22, 2023 08:37
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
…gingface#4673)

This is a better method than comparing against a list of supported backends as it allows for supporting any number of backends provided they are installed on the user's system.
This should have no effect on the behaviour of tests in Huggingface's CI workers.
See transformers#25506 where this approach has already been added.
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
…gingface#4673)

This is a better method than comparing against a list of supported backends as it allows for supporting any number of backends provided they are installed on the user's system.
This should have no effect on the behaviour of tests in Huggingface's CI workers.
See transformers#25506 where this approach has already been added.
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