Skip to content

Commit 54a903b

Browse files
SunMarcsayakpaul
andauthored
Update src/diffusers/pipelines/pipeline_utils.py
Co-authored-by: Sayak Paul <[email protected]>
1 parent 0dbca3f commit 54a903b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/pipeline_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def module_is_offloaded(module):
415415
is_pipeline_device_mapped = self.hf_device_map is not None and len(self.hf_device_map) > 1
416416
if is_pipeline_device_mapped:
417417
raise ValueError(
418-
"It seems like you have activated a device mapping strategy on the pipeline which doesn't allow explicit device placement using `to()`. You can call `reset_device_map()` first and then call `to()`."
418+
"It seems like you have activated a device mapping strategy on the pipeline which doesn't allow explicit device placement using `to()`. You can call `reset_device_map()` to remove the existing device map from the pipeline."
419419
)
420420

421421
if device and torch.device(device).type == "cuda":

0 commit comments

Comments
 (0)