Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

fix: quant err message (#5616)

Josh10e768826c7d
diff --git a/llm/llm.go b/llm/llm.go
index f2a5e557a..d24507cce 100644
--- a/llm/llm.go
+++ b/llm/llm.go
@@ -33,7 +33,7 @@ func Quantize(infile, outfile string, ftype fileType) error {
params.ftype = ftype.Value()
if rc := C.llama_model_quantize(cinfile, coutfile, &params); rc != 0 {
- return fmt.Errorf("llama_model_quantize: %d", rc)
+ return fmt.Errorf("failed to quantize model. This model architecture may not be supported, or you may need to upgrade Ollama to the latest version")
}
return nil