Skip to content

Commit cb0b3ed

Browse files
committed
up
1 parent 04cd5cc commit cb0b3ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/diffusers/loaders/transformer_flux.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
ImageProjection,
1818
MultiIPAdapterImageProjection,
1919
)
20-
from ..models.modeling_utils import _LOW_CPU_MEM_USAGE_DEFAULT, load_model_dict_into_meta
20+
from ..models.model_loading_utils import load_model_dict_into_meta
21+
from ..models.modeling_utils import _LOW_CPU_MEM_USAGE_DEFAULT
2122
from ..utils import is_accelerate_available, is_torch_version, logging
2223
from ..utils.torch_utils import empty_device_cache
2324

src/diffusers/models/modeling_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,6 @@ def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.P
961961
disable_mmap = kwargs.pop("disable_mmap", False)
962962

963963
is_parallel_loading_enabled = os.environ.get("HF_ENABLE_PARALLEL_LOADING", "").upper() in ENV_VARS_TRUE_VALUES
964-
965964
if is_parallel_loading_enabled and not low_cpu_mem_usage:
966965
raise NotImplementedError("Parallel loading is not supported when not using `low_cpu_mem_usage`.")
967966

0 commit comments

Comments
 (0)