From 086032cbca0ca983e92578f2bdde62bb342baa59 Mon Sep 17 00:00:00 2001 From: Elie Michel Date: Mon, 9 Mar 2026 22:40:25 +0100 Subject: [PATCH] Fix error message in gguf_quantizer.py --- src/diffusers/quantizers/gguf/gguf_quantizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffusers/quantizers/gguf/gguf_quantizer.py b/src/diffusers/quantizers/gguf/gguf_quantizer.py index 15f39dd9605e..d5211c81cc12 100644 --- a/src/diffusers/quantizers/gguf/gguf_quantizer.py +++ b/src/diffusers/quantizers/gguf/gguf_quantizer.py @@ -84,7 +84,7 @@ def check_quantized_param_shape(self, param_name, current_param, loaded_param): inferred_shape = _quant_shape_from_byte_shape(loaded_param_shape, type_size, block_size) if inferred_shape != current_param_shape: raise ValueError( - f"{param_name} has an expected quantized shape of: {inferred_shape}, but received shape: {loaded_param_shape}" + f"{param_name} has an expected quantized shape of: {current_param_shape}, but received shape: {inferred_shape} (inferred from byte shape {loaded_param_shape})" ) return True