[PR #9743] [MERGED] sample: make mutations in transforms explicit #75343

Closed
opened 2026-05-05 07:46:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9743
Author: @ParthSareen
Created: 3/13/2025
Status: Merged
Merged: 3/17/2025
Merged by: @ParthSareen

Base: mainHead: parth/sample-explicit-mutations


📝 Commits (2)

  • 86281d9 sample: make mutations in transforms explicit
  • 3a6e12c revert to no pointers

📊 Changes

3 files changed (+109 additions, -71 deletions)

View changed files

📝 sample/samplers.go (+3 -2)
📝 sample/transforms.go (+11 -26)
📝 sample/transforms_test.go (+95 -43)

📄 Description

  • Add callouts for softmax and temperature to mutate original array
  • Update minP to use early exit with sorting

🔄 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/9743 **Author:** [@ParthSareen](https://github.com/ParthSareen) **Created:** 3/13/2025 **Status:** ✅ Merged **Merged:** 3/17/2025 **Merged by:** [@ParthSareen](https://github.com/ParthSareen) **Base:** `main` ← **Head:** `parth/sample-explicit-mutations` --- ### 📝 Commits (2) - [`86281d9`](https://github.com/ollama/ollama/commit/86281d96f9901109583040814127d0cb7b723462) sample: make mutations in transforms explicit - [`3a6e12c`](https://github.com/ollama/ollama/commit/3a6e12ca2808e07344d6f603ffd7a6a7411a5eab) revert to no pointers ### 📊 Changes **3 files changed** (+109 additions, -71 deletions) <details> <summary>View changed files</summary> 📝 `sample/samplers.go` (+3 -2) 📝 `sample/transforms.go` (+11 -26) 📝 `sample/transforms_test.go` (+95 -43) </details> ### 📄 Description - Add callouts for softmax and temperature to mutate original array - Update minP to use early exit with sorting --- <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 07:46:29 -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#75343