Skip to content

Commit 962483b

Browse files
committed
clarify more.
1 parent 0bd70de commit 962483b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/modeling_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ def _load_pretrained_model(
14101410
low_cpu_mem_usage: bool = True,
14111411
dtype: Optional[Union[str, torch.dtype]] = None,
14121412
keep_in_fp32_modules: Optional[List[str]] = None,
1413-
device_map: Dict[Union[str, int, torch.device], Union[int, str, torch.device]] = None,
1413+
device_map: Union[str, int, torch.device, Dict[str, Union[int, str, torch.device]]] = None,
14141414
offload_state_dict: Optional[bool] = None,
14151415
offload_folder: Optional[Union[str, os.PathLike]] = None,
14161416
dduf_entries: Optional[Dict[str, DDUFEntry]] = None,

0 commit comments

Comments
 (0)