Skip to content

Commit d4f5ec0

Browse files
committed
address review comment
1 parent ac74eed commit d4f5ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/hooks/group_offloading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def _onload_from_disk(self):
185185

186186
with context:
187187
# Load to CPU (if using streams) or directly to target device, pin, and async copy to device
188-
device = self.onload_device if self.stream is None else "cpu"
188+
device = str(self.onload_device) if self.stream is None else "cpu"
189189
loaded_tensors = safetensors.torch.load_file(self.safetensors_file_path, device=device)
190190

191191
if self.stream is not None:

0 commit comments

Comments
 (0)