Skip to content

sampling : when top-k <= 0 -> noop #13173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025
Merged

sampling : when top-k <= 0 -> noop #13173

merged 1 commit into from
Apr 29, 2025

Conversation

ggerganov
Copy link
Member

fix #13171

When top_k <= 0 the sampler does nothing.

@ggerganov ggerganov merged commit d9d398f into master Apr 29, 2025
56 checks passed
@ggerganov ggerganov deleted the gg/top-k-fix branch April 29, 2025 17:23
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misc. bug: top_k=0 Abysmal Performance
2 participants