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

[dreambooth] fix multi on gpu. #2088

Merged
merged 1 commit into from
Jan 24, 2023
Merged

[dreambooth] fix multi on gpu. #2088

merged 1 commit into from
Jan 24, 2023

Conversation

patil-suraj
Copy link
Contributor

@patil-suraj patil-suraj commented Jan 24, 2023

When using multi GPU, the model becomes an instance of DistributedDataParallel, and we need to unwrap the model to access any property/methods of the model. This PR unwraps the model before accessing dtype arg.
cc @williamberman

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jan 24, 2023

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

Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for fixing!

Copy link
Contributor

@patrickvonplaten patrickvonplaten left a comment

Choose a reason for hiding this comment

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

Ah yeah good point! Thanks for fixing.

@chjose
Copy link

chjose commented Jan 24, 2023

Thanks for fixing this!

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.

5 participants