[PR #9880] [MERGED] templates: add autotemplate for gemma3 #38956

Closed
opened 2026-04-22 23:36:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9880
Author: @pdevine
Created: 3/19/2025
Status: Merged
Merged: 3/20/2025
Merged by: @pdevine

Base: mainHead: pdevine/gemma3-autotemplate


📝 Commits (3)

📊 Changes

7 files changed (+46 additions, -1 deletions)

View changed files

📝 server/model.go (+1 -1)
template/gemma3-instruct.gotmpl (+13 -0)
template/gemma3-instruct.json (+6 -0)
📝 template/index.json (+4 -0)
template/testdata/gemma3-instruct.gotmpl/system-user-assistant-user (+10 -0)
template/testdata/gemma3-instruct.gotmpl/user (+4 -0)
template/testdata/gemma3-instruct.gotmpl/user-assistant-user (+8 -0)

📄 Description

This change allows the gemma3 template to be autodetected during ollama create.


🔄 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/9880 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 3/19/2025 **Status:** ✅ Merged **Merged:** 3/20/2025 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `pdevine/gemma3-autotemplate` --- ### 📝 Commits (3) - [`c29028f`](https://github.com/ollama/ollama/commit/c29028fb52a7818e6fa76d5bb836b468debaefcd) templates: add autotemplate for gemma3 - [`6010351`](https://github.com/ollama/ollama/commit/601035152644f4b46017ebe2f08ebe1563e00246) comments - [`de2054d`](https://github.com/ollama/ollama/commit/de2054d2ff274470bd8e5c8d4ec36a5a43d76aa4) more comments ### 📊 Changes **7 files changed** (+46 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `server/model.go` (+1 -1) ➕ `template/gemma3-instruct.gotmpl` (+13 -0) ➕ `template/gemma3-instruct.json` (+6 -0) 📝 `template/index.json` (+4 -0) ➕ `template/testdata/gemma3-instruct.gotmpl/system-user-assistant-user` (+10 -0) ➕ `template/testdata/gemma3-instruct.gotmpl/user` (+4 -0) ➕ `template/testdata/gemma3-instruct.gotmpl/user-assistant-user` (+8 -0) </details> ### 📄 Description This change allows the gemma3 template to be autodetected during `ollama create`. --- <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-22 23:36:25 -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#38956