Skip to content

Commit 27709ef

Browse files
authored
Merge branch 'main' into refactor-lora-save-weights
2 parents 36fe94f + 4fcd0bc commit 27709ef

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/diffusers/models/model_loading_utils.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ def _determine_device_map(
112112
device_map_kwargs["max_memory"] = max_memory
113113
device_map = infer_auto_device_map(model, dtype=target_dtype, **device_map_kwargs)
114114

115-
if hf_quantizer is not None:
116-
hf_quantizer.validate_environment(device_map=device_map)
117-
118115
return device_map
119116

120117

0 commit comments

Comments
 (0)