Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
ggml: Disable flash attention for gemma2
Jesse Gross29ddfc2cab7f
diff --git a/fs/ggml/ggml.go b/fs/ggml/ggml.goindex 57476a9a8..6b582b499 100644--- a/fs/ggml/ggml.go+++ b/fs/ggml/ggml.go@@ -883,6 +883,10 @@ func (f GGML) SupportsFlashAttention() bool {return false}+ if arch := f.KV().Architecture(); slices.Contains([]string{"gemma2"}, arch) {+ return false+ }+// Check head counts match and are non-zeroheadCountK := f.KV().EmbeddingHeadCountK()headCountV := f.KV().EmbeddingHeadCountV()