Skip to content

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

enable flash attention for gemma4 (#15296)

Daniel Hiltgenc8e0878814b4
diff --git a/fs/ggml/ggml.go b/fs/ggml/ggml.go
index 9788297cc..e23d345cd 100644
--- a/fs/ggml/ggml.go
+++ b/fs/ggml/ggml.go
@@ -890,6 +890,7 @@ func (f GGML) FlashAttention() bool {
return slices.Contains([]string{
"bert",
"gemma3",
+ "gemma4",
"glm4moelite",
"glmocr",
"gptoss", "gpt-oss",