[PR #12348] [MERGED] gemma: fix rope scaling for qat models #13794

Closed
opened 2026-04-13 00:36:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12348
Author: @pdevine
Created: 9/19/2025
Status: Merged
Merged: 9/19/2025
Merged by: @pdevine

Base: mainHead: pdevine/gemma-rope


📝 Commits (2)

  • 7c540a7 gemma: fix rope scaling for qat models
  • ff90032 gofumpt yourself

📊 Changes

2 files changed (+6 additions, -3 deletions)

View changed files

📝 model/models/gemma2/model.go (+1 -1)
📝 model/models/gemma3/model_text.go (+5 -2)

📄 Description

The rope scaling factor in the gemma3 QAT weights is set to 8 instead of 1. There was an update to read in the scaling factor which caused weird output for the each of the QAT weight models. This change just forces the scaling factor back to 1.


🔄 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/12348 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 9/19/2025 **Status:** ✅ Merged **Merged:** 9/19/2025 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `pdevine/gemma-rope` --- ### 📝 Commits (2) - [`7c540a7`](https://github.com/ollama/ollama/commit/7c540a73f368af410d6f9a33a38ecd473123fdf7) gemma: fix rope scaling for qat models - [`ff90032`](https://github.com/ollama/ollama/commit/ff90032d6ba4ee29454834d7b0e7f8a603e2e2ac) gofumpt yourself ### 📊 Changes **2 files changed** (+6 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `model/models/gemma2/model.go` (+1 -1) 📝 `model/models/gemma3/model_text.go` (+5 -2) </details> ### 📄 Description The rope scaling factor in the gemma3 QAT weights is set to 8 instead of 1. There was an update to read in the scaling factor which caused weird output for the each of the QAT weight models. This change just forces the scaling factor back to 1. --- <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 00:36:44 -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#13794