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

[Import] Don't force transformers to be installed #5035

Merged
merged 2 commits into from
Sep 14, 2023

Conversation

patrickvonplaten
Copy link
Contributor

What does this PR do?

Fixes #5022

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.

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

Super nice. Now I get it why we wrap the types in quotes here. Thanks!

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Sep 14, 2023

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

@patrickvonplaten patrickvonplaten merged commit 8dc93ad into main Sep 14, 2023
@patrickvonplaten patrickvonplaten deleted the allow_unet2d_model_import_no_transformers branch September 14, 2023 09:42
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 👍🏽

patrickvonplaten added a commit that referenced this pull request Sep 14, 2023
* [Import] Don't force transformers to be installed

* make style
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* [Import] Don't force transformers to be installed

* make style
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
* [Import] Don't force transformers to be installed

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

Importing UNet2DModel from diffusers in version 0.21.0 causes error name 'PreTrainedTokenizer' is not defined
4 participants