Skip to content

sampling: support parallel top-p sampling #213

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 4 commits into from
Apr 25, 2024
Merged

sampling: support parallel top-p sampling #213

merged 4 commits into from
Apr 25, 2024

Conversation

yzh119
Copy link
Collaborator

@yzh119 yzh119 commented Apr 25, 2024

Add a new API ParallelTopPSamplingFromProb, which enables sampling from the same distribution multiple times, and allowing user to specify batch-specific top_p.

cc @MasterJH5574

@yzh119 yzh119 merged commit b3f1ffb into main Apr 25, 2024
yzh119 added a commit that referenced this pull request Apr 25, 2024
follow up of #213 , add the parallel version of parallel sampling
without top-p restriction.
@MasterJH5574 MasterJH5574 deleted the top-p-multiple-prob branch May 28, 2024 20:32
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