logic error

This commit is contained in:
ddh0 2026-02-11 20:58:52 -06:00
parent ea8da0503c
commit 3211a847ef
1 changed files with 1 additions and 1 deletions

View File

@ -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");