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

FLUX.1-dev run in MultiNodes error #409

Closed
etersin opened this issue Dec 25, 2024 · 1 comment · Fixed by #413
Closed

FLUX.1-dev run in MultiNodes error #409

etersin opened this issue Dec 25, 2024 · 1 comment · Fixed by #413

Comments

@etersin
Copy link

etersin commented Dec 25, 2024

env: machine A (4090 24G *2) machine B(4090 24G *2)

CMD (machine A):
torchrun --nproc_per_node=2 --nnodes=2 --node_rank=0 --master_addr=127.0.0.1 --master_port=6000 ./examples/flux_example.py --model=/cfs/dit/FLUX.1-dev/ --ulysses_degree=1 --ring_degree=1 --pipefusion_parallel_degree=4 --height=1024 --width=1024 --no_use_resolution_binning --output_type=latent --num_inference_steps 28 --warmup_steps=0 '--prompt=brown dog laying on the ground with a metal bowl in front of him.'
CMD (machine B):
torchrun --nproc_per_node=2 --nnodes=2 --node_rank=1 --master_addr=ip_a --master_port=6000 ./examples/flux_example.py --model=/cfs/dit/FLUX.1-dev/ --ulysses_degree=1 --ring_degree=1 --pipefusion_parallel_degree=4 --height=1024 --width=1024 --no_use_resolution_binning --output_type=latent --num_inference_steps 28 --warmup_steps=0 '--prompt=brown dog laying on the ground with a metal bowl in front of him.'

Error:
RuntimeError: split_with_sizes expects split_sizes to sum exactly to 4096 (input tensor's size at dimension -2), but got split_sizes=[4096, 4096, 4096, 4096]

Logging info:

image
image
image

@feifeibear
Copy link
Collaborator

Please ensure you are using Diffusers version 0.31.0. If you are currently using version 0.32.0, you may encounter errors. We are actively working to resolve these issues and will release a fix for version 0.32.0 as soon as possible.

Thank you for your patience and understanding.

@feifeibear feifeibear linked a pull request Dec 26, 2024 that will close this issue
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 a pull request may close this issue.

2 participants