We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03be15e commit f2e5b6eCopy full SHA for f2e5b6e
src/diffusers/training_utils.py
@@ -339,7 +339,8 @@ def offload_models(
339
original_devices = [next(m.parameters()).device for m in modules]
340
else:
341
assert len(modules) == 1
342
- original_devices = modules[0].device
+ # For DiffusionPipeline, wrap the device in a list to make it iterable
343
+ original_devices = [modules[0].device]
344
# move to target device
345
for m in modules:
346
m.to(device)
0 commit comments