SDNQ pre-mode don't quant if weights_dtype == 'none'

This commit is contained in:
Disty0
2025-06-26 01:48:01 +03:00
parent b6a0332694
commit c25d15398f
+2
View File
@@ -125,6 +125,8 @@ def create_sdnq_config(kwargs = None, allow_sdnq: bool = True, module: str = 'Mo
return kwargs
else:
weights_dtype = shared.opts.sdnq_quantize_weights_mode
if weights_dtype is None or weights_dtype == 'none':
return kwargs
if shared.opts.device_map == "gpu":
quantization_device = devices.device