[PR #15561] [MERGED] backport gemma4 renderer changes #77500

Closed
opened 2026-05-05 10:10:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15561
Author: @drifkin
Created: 4/13/2026
Status: Merged
Merged: 4/13/2026
Merged by: @drifkin

Base: release_v0.20.7Head: drifkin/backport


📝 Commits (3)

📊 Changes

4 files changed (+427 additions, -65 deletions)

View changed files

📝 model/renderers/gemma4.go (+0 -4)
📝 model/renderers/gemma4_reference_test.go (+83 -61)
📝 model/renderers/testdata/gemma4_31b_chat_template.jinja2 (+0 -0)
model/renderers/testdata/gemma4_e2b_chat_template.jinja2 (+344 -0)

📄 Description

Trying to get this out ahead of the next release off of main


🔄 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/15561 **Author:** [@drifkin](https://github.com/drifkin) **Created:** 4/13/2026 **Status:** ✅ Merged **Merged:** 4/13/2026 **Merged by:** [@drifkin](https://github.com/drifkin) **Base:** `release_v0.20.7` ← **Head:** `drifkin/backport` --- ### 📝 Commits (3) - [`c2762b5`](https://github.com/ollama/ollama/commit/c2762b5a0d8f42bfe558794fad83a231029b436e) Revert "gemma4: add nothink renderer tests (#15554)" (#15555) - [`90e2ac0`](https://github.com/ollama/ollama/commit/90e2ac0c4195a763bc8400474ca978e1fc945d02) Revert "gemma4: fix nothink case renderer (#15553)" (#15556) - [`2b456af`](https://github.com/ollama/ollama/commit/2b456af80488923ad11496dc4a2ba37dda267906) gemma4: restore e2b-style nothink prompt (#15560) ### 📊 Changes **4 files changed** (+427 additions, -65 deletions) <details> <summary>View changed files</summary> 📝 `model/renderers/gemma4.go` (+0 -4) 📝 `model/renderers/gemma4_reference_test.go` (+83 -61) 📝 `model/renderers/testdata/gemma4_31b_chat_template.jinja2` (+0 -0) ➕ `model/renderers/testdata/gemma4_e2b_chat_template.jinja2` (+344 -0) </details> ### 📄 Description Trying to get this out ahead of the next release off of main --- <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-05-05 10:10:14 -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#77500