Skip to content

sampling: simplify min-p sampling#713

Merged
yzh119 merged 3 commits into
mainfrom
simplify-min-p
Jan 3, 2025
Merged

sampling: simplify min-p sampling#713
yzh119 merged 3 commits into
mainfrom
simplify-min-p

Conversation

@yzh119
Copy link
Copy Markdown
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