Skip to content

FluxInpaintPipeline error when im using DataParallel to use multiple gpus #10640

@Himasnhu-AT

Description

@Himasnhu-AT

Describe the bug

line 175, in forward
for t in chain(self.module.parameters(), self.module.buffers()):
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/tensorflow/lib/python3.12/site-packages/diffusers/configuration_utils.py", line 143, in getattr
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
AttributeError: 'FluxFillPipeline' object has no attribute 'parameters'

Reproduction

if torch.cuda.device_count() > 1:
pipe = torch.nn.DataParallel(pipe)
pipe = pipe.to("cuda")

Logs

System Info

Ubuntu AWS deep learning AMI

g5.12xlarge
4A10 GPUS

Who can help?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions