Skip to content

Conversation

@jeffbolznv
Copy link
Collaborator

Based on #17365. Ready for review, but Draft until that lands.

ggerganov and others added 7 commits November 20, 2025 10:29
Each pass launches workgroups that each sort 2^N elements (where N is usually 7-10)
and discards all but the top K. Repeat until only K are left. And there's a fast
path when K==1 to just find the max value rather than sorting.
@jeffbolznv jeffbolznv marked this pull request as draft November 21, 2025 00:02
@jeffbolznv jeffbolznv mentioned this pull request Nov 21, 2025
5 tasks
@github-actions github-actions bot added testing Everything test related Vulkan Issues specific to the Vulkan backend ggml changes relating to the ggml tensor library for machine learning Apple Metal https://en.wikipedia.org/wiki/Metal_(API) labels Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Apple Metal https://en.wikipedia.org/wiki/Metal_(API) ggml changes relating to the ggml tensor library for machine learning testing Everything test related Vulkan Issues specific to the Vulkan backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants