Skip to content

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

Merged
CISC merged 1 commit intoggml-org:masterfrom
oobabooga:top_n_sigma-fix
May 6, 2025
Merged

sampling: Don't consider -infinity values in top_n_sigma#13344
CISC merged 1 commit intoggml-org:masterfrom
oobabooga:top_n_sigma-fix

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
timwu pushed a commit to timwu/llama.cpp that referenced this pull request Dec 20, 2025
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