Skip to content

Commit 4c81c96

Browse files
committed
make style
1 parent e736b09 commit 4c81c96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/diffusers/models/model_loading_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,9 @@ def _expand_device_map(device_map, param_names):
567567
def _caching_allocator_warmup(model, expanded_device_map: Dict[str, torch.device], dtype: torch.dtype) -> None:
568568
"""
569569
This function warm-ups the caching allocator based on the size of the model tensors that will reside on each
570-
device. It allows to have one large call to Malloc, instead of recursively calling it later when loading
571-
the model, which is actually the loading speed bottleneck.
572-
Calling this function allows to cut the model loading time by a very large margin.
570+
device. It allows to have one large call to Malloc, instead of recursively calling it later when loading the model,
571+
which is actually the loading speed bottleneck. Calling this function allows to cut the model loading time by a
572+
very large margin.
573573
"""
574574
# Remove disk and cpu devices, and cast to proper torch.device
575575
accelerator_device_map = {

0 commit comments

Comments
 (0)