mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-07-21 18:28:31 +00:00
quantize : fix minor logic flaw in --tensor-type (#14572)
This commit is contained in:
@ -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 (std::regex pattern(tname); std::regex_search(tensor_name, pattern)) {
|
||||||
if (qtype != new_type) {
|
if (qtype != new_type) {
|
||||||
LLAMA_LOG_DEBUG("(overriding %s) ", ggml_type_name(new_type));
|
LLAMA_LOG_DEBUG("(overriding %s) ", ggml_type_name(new_type));
|
||||||
new_type = qtype;
|
new_type = qtype; // if two or more types are specified for the same tensor, the last match wins
|
||||||
break; // if two or more types are specified for the tensor, first match wins
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user