Skip to content

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

llm: Support KV cache quantization with gpt-oss

Jesse Gross19e6796eac59
diff --git a/fs/ggml/ggml.go b/fs/ggml/ggml.go
index d34a69138..920eff74a 100644
--- a/fs/ggml/ggml.go
+++ b/fs/ggml/ggml.go
@@ -870,11 +870,6 @@ func (f GGML) SupportsKVCacheType(cacheType string) bool {
return true
}
- if arch := f.KV().Architecture(); slices.Contains([]string{"gptoss", "gpt-oss"}, arch) {
- // gpt-oss uses attention with sinks which does not support quantized cache types
- slog.Warn("model only supports non-quantized cache types", "model", arch)
- return false
- }
return slices.Contains([]string{"q8_0", "q4_0"}, cacheType)
}