[PR #13597] Use top_k instead of argsort_top_k #76578

Open
opened 2026-05-05 09:12:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13597
Author: @inforithmics
Created: 1/1/2026
Status: 🔄 Open

Base: mainHead: UseTopk


📝 Commits (2)

  • 3d00d68 Use top_k instead of argsort_top_k
  • 25cdd21 Merge remote-tracking branch 'upstream/main' into UseTopk

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 ml/backend/ggml/ggml.go (+1 -1)

📄 Description

With newest Vendor sync top_k is now well supported on all backends so enabling it with this pull request.
Draft until next vendor sync https://github.com/ollama/ollama/pull/13832.
argsort_top_k was initially used becuase there where some initial performance problems with top_k


🔄 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/13597 **Author:** [@inforithmics](https://github.com/inforithmics) **Created:** 1/1/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `UseTopk` --- ### 📝 Commits (2) - [`3d00d68`](https://github.com/ollama/ollama/commit/3d00d68344f233bdafb79eea4bab2c5692914fd8) Use top_k instead of argsort_top_k - [`25cdd21`](https://github.com/ollama/ollama/commit/25cdd21eae9368033adca1915d4d92ad59391f62) Merge remote-tracking branch 'upstream/main' into UseTopk ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `ml/backend/ggml/ggml.go` (+1 -1) </details> ### 📄 Description With newest Vendor sync top_k is now well supported on all backends so enabling it with this pull request. Draft until next vendor sync https://github.com/ollama/ollama/pull/13832. argsort_top_k was initially used becuase there where some initial performance problems with top_k --- <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 09:12:57 -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#76578