mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
[chore] remove extra validation check in determine_device_map (#12176)
remove extra validation check in determine_device_map
This commit is contained in:
@@ -112,9 +112,6 @@ def _determine_device_map(
|
||||
device_map_kwargs["max_memory"] = max_memory
|
||||
device_map = infer_auto_device_map(model, dtype=target_dtype, **device_map_kwargs)
|
||||
|
||||
if hf_quantizer is not None:
|
||||
hf_quantizer.validate_environment(device_map=device_map)
|
||||
|
||||
return device_map
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user