-
Notifications
You must be signed in to change notification settings - Fork 710
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
Support top n sigma sampling #2192
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. I left a few comments.
…wdar/sglang into support_top_n_sigma_sampling
OK. All of these have completed. Could you please view it again? |
I will close this for now. |
So if the custom logit processer could be supported,then any other sampling codes will not be merged into sglang (considering sharing the custom samping to other people by the sglang itself)? |
Motivation
Support a more complete samling options for decoding, especialy for openai compatible api.
Modifications
top_n_sigma
> 0. The batch processing has been implemented.top-k
,min-p
andtop_n_sigma
params for openai compatible api server (Note, please add these three params byextra_body
when using openai SDK)client example:
Checklist