Skip to content
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

sampling: simplify min-p sampling #713

Merged
merged 3 commits into from
Jan 3, 2025
Merged

sampling: simplify min-p sampling #713

merged 3 commits into from
Jan 3, 2025

Conversation

yzh119
Copy link
Collaborator

@yzh119 yzh119 commented Jan 3, 2025

As suggested by @aikitoria and @rolandtannous in #710 , we don't need rejection algorithm for min-p sampling, this PR simplifies the design.

There is a breaking change on API: we no longer returns success array for min-p sampling because there is no risk of rejecting the samples. In later PRs, we will also remove the success array in top-p/top-k sampling APIs.

@yzh119 yzh119 merged commit 0f80329 into main Jan 3, 2025
yzh119 added a commit that referenced this pull request Jan 4, 2025
#713 didn't update the function signature of min-p API in AOT pybind
file, this PR fixes the issue.
@yzh119 yzh119 deleted the simplify-min-p branch January 7, 2025 03:45
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.

1 participant