From 87a801e24d381d7ea3cbdfeb5957ab1a769db19a Mon Sep 17 00:00:00 2001 From: Disty0 Date: Fri, 30 May 2025 13:54:49 +0300 Subject: [PATCH] SDNQ remove memory fix hijack --- modules/model_quant_sdnq.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/model_quant_sdnq.py b/modules/model_quant_sdnq.py index 5b728ead8..a40faee58 100644 --- a/modules/model_quant_sdnq.py +++ b/modules/model_quant_sdnq.py @@ -681,8 +681,6 @@ class SDNQQuantizer(DiffusersQuantizer): state_dict: Dict[str, Any], **kwargs, ): - if shared.opts.device_map != "gpu": - param_value.data = param_value.clone() # safetensors is unable to release the cpu memory without this if param_name.endswith(".weight"): split_param_name = param_name.split(".") if param_name not in self.modules_to_not_convert and not any(param in split_param_name for param in self.modules_to_not_convert):