]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama-quant : fix `--tensor-type` when default `qtype` is overriden (#22572)
authorddh0 <redacted>
Fri, 1 May 2026 17:55:55 +0000 (12:55 -0500)
committerGitHub <redacted>
Fri, 1 May 2026 17:55:55 +0000 (19:55 +0200)
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

index 25a333b4a7f12a7964d24a4cee89b138973806ed..2f0f70b73b6cc0322bbee3fa59a72d98ebc45885 100644 (file)
@@ -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;
                 }
             }
         }