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 ac74eed commit d4f5ec0Copy full SHA for d4f5ec0
src/diffusers/hooks/group_offloading.py
@@ -185,7 +185,7 @@ def _onload_from_disk(self):
185
186
with context:
187
# 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"
+ device = str(self.onload_device) if self.stream is None else "cpu"
189
loaded_tensors = safetensors.torch.load_file(self.safetensors_file_path, device=device)
190
191
if self.stream is not None:
0 commit comments