Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sampling: Don't consider -infinity values in top_n_sigma #13344

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
May 6, 2025

Conversation

oobabooga
Copy link
Contributor

@oobabooga oobabooga commented May 6, 2025

This PR makes top_n_sigma work even when the logits contain -inf values, which may happen eg if logit_bias is used to set some token IDs to false.

@CISC CISC merged commit 91a86a6 into ggml-org:master May 6, 2025
46 checks passed
@lcarrere lcarrere mentioned this pull request May 6, 2025
4 tasks
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.

2 participants