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

Parallel VAE fails when the degree of parallelism > 1 #271

Closed
gty111 opened this issue Sep 19, 2024 · 0 comments
Closed

Parallel VAE fails when the degree of parallelism > 1 #271

gty111 opened this issue Sep 19, 2024 · 0 comments
Assignees

Comments

@gty111
Copy link
Contributor

gty111 commented Sep 19, 2024

When generating images with --use_parallel_vae, the program hangs. Because only the last rank of PP or SP execute self.vae.decode , while all the ranks are expected.

if is_dp_last_group():
if output_type == "latent":
image = latents
else:
latents = (
latents / self.vae.config.scaling_factor
) + self.vae.config.shift_factor
image = self.vae.decode(latents, return_dict=False)[0]
image = self.image_processor.postprocess(image, output_type=output_type)

@gty111 gty111 changed the title CFG parallel fail when the degree of parallelism > 1 Parallel VAE fails when the degree of parallelism > 1 Sep 21, 2024
@gty111 gty111 closed this as completed Sep 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

No branches or pull requests

2 participants