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.
This commit is contained in:
ddh0 2026-05-01 12:55:55 -05:00 committed by GitHub
parent 2098fd6169
commit b97ebdc98f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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;
}
}
}