Skip to content

Commit 04604a4

Browse files
committed
Minor logging improvement
1 parent 1acb9f4 commit 04604a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/llama-quant.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,9 @@ static void llama_model_quantize_impl(const std::string & fname_inp, const std::
798798
const std::vector<tensor_quantization> & tensor_types = *static_cast<const std::vector<tensor_quantization> *>(params->tensor_types);
799799
for (const auto & [tname, qtype] : tensor_types) {
800800
if (std::regex pattern(tname); std::regex_search(tensor->name, pattern)) {
801-
LLAMA_LOG_DEBUG("(overriding %s -> %s), ", ggml_type_name(new_type), ggml_type_name(qtype));
801+
if (qtype != new_type) {
802+
LLAMA_LOG_DEBUG("(overriding %s -> %s), ", ggml_type_name(new_type), ggml_type_name(qtype));
803+
}
802804
new_type = qtype;
803805
break;
804806
}

0 commit comments

Comments
 (0)