Skip to content

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

ggml: Prevent kv cache quanitization on gpt-oss

Jesse Gross8253ad4d2b2e
diff --git a/fs/ggml/ggml.go b/fs/ggml/ggml.go
index afb90720f..fb993a288 100644
--- a/fs/ggml/ggml.go
+++ b/fs/ggml/ggml.go
@@ -761,6 +761,10 @@ func (f GGML) SupportsFlashAttention() bool {
return false
}
+ if f.KV().Architecture() == "gptoss" {
+ return false
+ }
+
// Check head counts match and are non-zero
headCountK := f.KV().EmbeddingHeadCountK()
headCountV := f.KV().EmbeddingHeadCountV()