Skip to content

Conversation

@NielsRogge
Copy link

What does this PR do?

When training Dreambooth + Flux and specifying to train the text encoder, I got an error stating that the text_ids were still on CPU. This is because of text_ids = torch.zeros(batch_size, prompt_embeds.shape[1], 3).to(device=device, dtype=dtype) which had device=None.

This PR fixes that.

cc @linoytsaban

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@linoytsaban
Copy link
Collaborator

Thanks @NielsRogge! :) there's an open PR for the dreambooth script here:#9257
if that's ok with you, I'll add your changes there and we can close this one?

@NielsRogge
Copy link
Author

Sure, I'll close this one :)

@NielsRogge NielsRogge closed this Aug 26, 2024
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