[PR #15214] [MERGED] Add support for gemma4 #15080

Closed
opened 2026-04-13 01:09:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15214
Author: @dhiltgen
Created: 4/2/2026
Status: Merged
Merged: 4/2/2026
Merged by: @dhiltgen

Base: mainHead: dhiltgen/newmodel


📝 Commits (10+)

  • e38b606 bench: add prompt calibration, context size flag, and NumCtx reporting
  • f6b69f3 integration: improve vision test robustness and add thinking tests
  • ea3c6a3 gemma4: add Gemma 4 GGML model support
  • 356c0b8 gemma4: add audio support with USM conformer encoder
  • eb5df80 integration: add gemma4 audio tests including OpenAI API coverage
  • ebd70f7 gemma4: add OpenAI audio API support and capability detection
  • 570c538 gemma4: add audio input support for run command
  • 82437d6 gemma4: add transcribe command (ollama transcribe MODEL)
  • 5bad871 gemma4: add parser, renderer, and integration test plumbing
  • 7fdc051 gemma4: fix renderer to emit BOS token

📊 Changes

52 files changed (+7196 additions, -51 deletions)

View changed files

📝 api/types.go (+1 -0)
📝 cmd/bench/bench.go (+61 -8)
📝 cmd/cmd.go (+5 -1)
📝 cmd/interactive.go (+13 -8)
📝 cmd/interactive_test.go (+30 -0)
📝 convert/convert.go (+2 -0)
convert/convert_gemma4.go (+574 -0)
convert/convert_gemma4_test.go (+318 -0)
📝 convert/convert_test.go (+2 -2)
📝 convert/reader.go (+3 -0)
📝 convert/reader_safetensors.go (+3 -3)
📝 fs/ggml/ggml.go (+1 -0)
integration/audio_test.go (+259 -0)
integration/audio_test_data_test.go (+9 -0)
📝 integration/context_test.go (+2 -0)
📝 integration/llm_image_test.go (+4 -4)
integration/thinking_test.go (+155 -0)
📝 integration/tools_test.go (+1 -0)
📝 integration/utils_test.go (+3 -0)
📝 integration/vision_test.go (+54 -17)

...and 32 more files

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/15214 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 4/2/2026 **Status:** ✅ Merged **Merged:** 4/2/2026 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `dhiltgen/newmodel` --- ### 📝 Commits (10+) - [`e38b606`](https://github.com/ollama/ollama/commit/e38b606e8b79f0fb675b3a99d6fadd4c4bada1d3) bench: add prompt calibration, context size flag, and NumCtx reporting - [`f6b69f3`](https://github.com/ollama/ollama/commit/f6b69f3f285d54aef5208a7a822725a8a7d119fb) integration: improve vision test robustness and add thinking tests - [`ea3c6a3`](https://github.com/ollama/ollama/commit/ea3c6a3cbeddc95401f88b4dcd2e40d55d23c836) gemma4: add Gemma 4 GGML model support - [`356c0b8`](https://github.com/ollama/ollama/commit/356c0b8e345261e7cfdf6291800505ba95a008b3) gemma4: add audio support with USM conformer encoder - [`eb5df80`](https://github.com/ollama/ollama/commit/eb5df8073339bfb95a5e50413bc9d2e7d19039cb) integration: add gemma4 audio tests including OpenAI API coverage - [`ebd70f7`](https://github.com/ollama/ollama/commit/ebd70f73b75e9272d9a504dc427df1d63294588d) gemma4: add OpenAI audio API support and capability detection - [`570c538`](https://github.com/ollama/ollama/commit/570c53859d6f9ff58c6002cfd3c7c639444857e2) gemma4: add audio input support for run command - [`82437d6`](https://github.com/ollama/ollama/commit/82437d620aff87086355a3c38ddc636861468537) gemma4: add transcribe command (ollama transcribe MODEL) - [`5bad871`](https://github.com/ollama/ollama/commit/5bad8712416d1c4d74cb226a482b11919898104d) gemma4: add parser, renderer, and integration test plumbing - [`7fdc051`](https://github.com/ollama/ollama/commit/7fdc051091fdfce34d6ed8bfb929301e8c75ef39) gemma4: fix renderer to emit BOS token ### 📊 Changes **52 files changed** (+7196 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+1 -0) 📝 `cmd/bench/bench.go` (+61 -8) 📝 `cmd/cmd.go` (+5 -1) 📝 `cmd/interactive.go` (+13 -8) 📝 `cmd/interactive_test.go` (+30 -0) 📝 `convert/convert.go` (+2 -0) ➕ `convert/convert_gemma4.go` (+574 -0) ➕ `convert/convert_gemma4_test.go` (+318 -0) 📝 `convert/convert_test.go` (+2 -2) 📝 `convert/reader.go` (+3 -0) 📝 `convert/reader_safetensors.go` (+3 -3) 📝 `fs/ggml/ggml.go` (+1 -0) ➕ `integration/audio_test.go` (+259 -0) ➕ `integration/audio_test_data_test.go` (+9 -0) 📝 `integration/context_test.go` (+2 -0) 📝 `integration/llm_image_test.go` (+4 -4) ➕ `integration/thinking_test.go` (+155 -0) 📝 `integration/tools_test.go` (+1 -0) 📝 `integration/utils_test.go` (+3 -0) 📝 `integration/vision_test.go` (+54 -17) _...and 32 more files_ </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 01:09:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#15080