-
Notifications
You must be signed in to change notification settings - Fork 172
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
Fix vLLM generation with sampling params #578
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
@@ -138,6 +139,8 @@ def vllm( | |||
generation_parameters = GenerationParameters.from_dict(config) | |||
else: | |||
generation_parameters = GenerationParameters.from_model_args(model_args) | |||
# We slice out generation_parameters from model_args to avoid double-counting in the VLLMModelConfig | |||
model_args = re.sub(r"generation_parameters=\{.*?\},?", "", model_args).strip(",") |
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.
This is a bit hacky, so am open to other ideas!
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.
Works for me for now, I trust you debuggued it - but can you create an issue so we don't forget to upgrade to something more robust?
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.
Issue here! #579
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.
LGTM - indeed a bit hackish but since it's urgent I'rm ok with it :)
Just remove the prints or pass them through the logger instead
feel free to merge once tests are go again :) |
This PR fixes a bug where it was not possible to pass
generation_parameters
tolighteval vllm
due to:The root cause was due to
model_args
containinggeneration_parameters
after we extracted them.