From 3211a847ef3c153fe499aeb259e2a6f996c6e75d Mon Sep 17 00:00:00 2001 From: ddh0 Date: Wed, 11 Feb 2026 20:58:52 -0600 Subject: [PATCH] logic error --- src/llama-quant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama-quant.cpp b/src/llama-quant.cpp index 76581f8b4b..c411d41153 100644 --- a/src/llama-quant.cpp +++ b/src/llama-quant.cpp @@ -980,7 +980,7 @@ static void llama_model_quantize_impl(const std::string & fname_inp, const std:: } } } - if (tensor_requires_imatrix(params, tensor, new_type)) { + if (tensor_requires_imatrix(params, tensor, new_type) && !imatrix) { LLAMA_LOG_ERROR("\n\n============================================================\n"); LLAMA_LOG_ERROR("Missing importance matrix for tensor %s in a very low-bit quantization\n", tensor->name); LLAMA_LOG_ERROR("The result will be garbage, so bailing out\n");