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

[textual_inversion] unwrap_model text encoder before accessing weights #1816

Merged
merged 3 commits into from
Dec 23, 2022

Conversation

patil-suraj
Copy link
Contributor

For mult-gpu training, the model should be unwrapped before calling any method on it. This PR fixes the call to text_encoder.get_input_embeddings() by first unwrapping the text_encoder.

cc @patrickvonplaten @williamberman @pcuenca

@patil-suraj patil-suraj merged commit 9be94d9 into main Dec 23, 2022
@patil-suraj patil-suraj deleted the fix-ti-multi-gpu branch December 23, 2022 15:46
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Dec 23, 2022

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

Birch-san added a commit to Birch-san/diffusers-play that referenced this pull request Dec 24, 2022
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

2 participants