Skip to content

Commit 58fcfdc

Browse files
a-r-r-o-wSunMarc
andauthored
Update src/diffusers/models/model_loading_utils.py
Co-authored-by: Marc Sun <[email protected]>
1 parent 39f0850 commit 58fcfdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/model_loading_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def load_model_dict_into_meta(
254254
param = param.to(dtype)
255255
set_module_kwargs["dtype"] = dtype
256256

257-
if is_accelerate_version(">=", "1.9.0.dev0"):
257+
if is_accelerate_version(">", "1.8.0"):
258258
set_module_kwargs["non_blocking"] = True
259259
set_module_kwargs["clear_cache"] = False
260260

0 commit comments

Comments
 (0)