From c25d15398fca39d5e085f12f3359a7c0b5c1fef5 Mon Sep 17 00:00:00 2001 From: Disty0 Date: Thu, 26 Jun 2025 01:48:01 +0300 Subject: [PATCH] SDNQ pre-mode don't quant if weights_dtype == 'none' --- modules/model_quant.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/model_quant.py b/modules/model_quant.py index c8fd0f9b7..307707708 100644 --- a/modules/model_quant.py +++ b/modules/model_quant.py @@ -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