From: Ed Addario Date: Sun, 13 Jul 2025 16:02:17 +0000 (+0100) Subject: quantize : fix minor logic flaw in --tensor-type (#14572) X-Git-Tag: upstream/0.0.6073~183 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=982e347255723fe6d02e60ee30cfdd0559c884c5;p=pkg%2Fggml%2Fsources%2Fllama.cpp quantize : fix minor logic flaw in --tensor-type (#14572) --- diff --git a/src/llama-quant.cpp b/src/llama-quant.cpp index 4dbd1e30..a00af7a1 100644 --- a/src/llama-quant.cpp +++ b/src/llama-quant.cpp @@ -884,8 +884,7 @@ static void llama_model_quantize_impl(const std::string & fname_inp, const std:: if (std::regex pattern(tname); std::regex_search(tensor_name, pattern)) { if (qtype != new_type) { LLAMA_LOG_DEBUG("(overriding %s) ", ggml_type_name(new_type)); - new_type = qtype; - break; // if two or more types are specified for the tensor, first match wins + new_type = qtype; // if two or more types are specified for the same tensor, the last match wins } } }