From b97ebdc98f6053604a19d861c08d8087601b96e0 Mon Sep 17 00:00:00 2001 From: ddh0 Date: Fri, 1 May 2026 12:55:55 -0500 Subject: [PATCH] llama-quant : fix `--tensor-type` when default `qtype` is overriden (#22572) fix #22544 (my fault!) Credit to @Anai-Guo, ref #22559 - since that one was closed due to the new contributor policy I am taking the liberty of re-submitting that PR here. --- src/llama-quant.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/llama-quant.cpp b/src/llama-quant.cpp index 25a333b4a..2f0f70b73 100644 --- a/src/llama-quant.cpp +++ b/src/llama-quant.cpp @@ -683,9 +683,9 @@ static ggml_type llama_tensor_get_type(quantize_state_impl & qs, const llama_mod LLAMA_LOG_WARN("%s: %-36s - applying manual override: %s -> %s\n", __func__, tensor_name.c_str(), ggml_type_name(new_type), ggml_type_name(qtype)); new_type = qtype; - manual = true; - break; } + manual = true; + break; } } }