[PR #14537] [MERGED] runner: add repeat based sampling to ollama runner #14717

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14537
Author: @jmorganca
Created: 3/1/2026
Status: Merged
Merged: 3/2/2026
Merged by: @jmorganca

Base: mainHead: jmorganca/repeat-sampling


📝 Commits (3)

  • 0d9e6bc runner: add repeat based sampling to ollama runner
  • 006c4be update default repeat penalty
  • d0745a6 address comments

📊 Changes

8 files changed (+193 additions, -15 deletions)

View changed files

📝 api/types.go (+1 -1)
📝 docs/modelfile.mdx (+3 -1)
📝 runner/ollamarunner/runner.go (+18 -0)
📝 sample/samplers.go (+39 -3)
📝 sample/samplers_benchmark_test.go (+4 -4)
📝 sample/samplers_test.go (+6 -6)
📝 sample/transforms.go (+42 -0)
📝 sample/transforms_test.go (+80 -0)

📄 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/14537 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 3/1/2026 **Status:** ✅ Merged **Merged:** 3/2/2026 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/repeat-sampling` --- ### 📝 Commits (3) - [`0d9e6bc`](https://github.com/ollama/ollama/commit/0d9e6bce006ce5f2e65a982cf4c4cd1cf06f6588) runner: add repeat based sampling to ollama runner - [`006c4be`](https://github.com/ollama/ollama/commit/006c4bed4cc6b65969cbeafb738724d6da2804fe) update default repeat penalty - [`d0745a6`](https://github.com/ollama/ollama/commit/d0745a63cc95593a63676a9a9c0c96f54da306db) address comments ### 📊 Changes **8 files changed** (+193 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+1 -1) 📝 `docs/modelfile.mdx` (+3 -1) 📝 `runner/ollamarunner/runner.go` (+18 -0) 📝 `sample/samplers.go` (+39 -3) 📝 `sample/samplers_benchmark_test.go` (+4 -4) 📝 `sample/samplers_test.go` (+6 -6) 📝 `sample/transforms.go` (+42 -0) 📝 `sample/transforms_test.go` (+80 -0) </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:01:17 -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#14717