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

Support logit bias for OpenAI API #3027

Merged
merged 8 commits into from
Feb 27, 2024
Merged

Conversation

dylanwhawk
Copy link
Contributor

This PR leverages PR #1469 to implement logit bias for completions/chat completions in the OpenAI entry point

@simon-mo simon-mo requested a review from esmeetu February 26, 2024 18:39
vllm/entrypoints/openai/protocol.py Outdated Show resolved Hide resolved
@dylanwhawk
Copy link
Contributor Author

@esmeetu I just added to ChatCompletionRequest and resolved conflicts

@esmeetu
Copy link
Collaborator

esmeetu commented Feb 27, 2024

@dylanwhawk LGTM! Thanks for adding this feature!

@esmeetu esmeetu merged commit e0ade06 into vllm-project:main Feb 27, 2024
17 of 22 checks passed
xjpang pushed a commit to xjpang/vllm that referenced this pull request Mar 4, 2024
@yuchenlin
Copy link

Thanks! Is there an example where we can use the feature in non API mode (i.e., the regular python function call for llm.generate)? Thanks!

Temirulan pushed a commit to Temirulan/vllm-whisper that referenced this pull request Sep 6, 2024
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.

4 participants