-
-
Couldn't load subscription status.
- Fork 10.9k
[Bugfix][Frontend] validate arg priority in frontend LLM class before add request #27596
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
[Bugfix][Frontend] validate arg priority in frontend LLM class before add request #27596
Conversation
Signed-off-by: Junpu Fan <[email protected]>
|
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run You ask your reviewers to trigger select CI tests on top of Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add If you have any questions, please reach out to us on Slack at https://slack.vllm.ai. 🚀 |
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.
Code Review
This pull request addresses a bug where the priority argument in the llm.generate function was not validated for length against the prompts argument, leading to an IndexError. The fix adds a check to ensure that the lengths of prompts and priority are the same, raising a ValueError if they differ. Additionally, a test case has been added to verify this validation.
Signed-off-by: Junpu Fan <[email protected]>
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 @junpuf!
I guess we don't support priority here being a single int shared by all the requests?
Looks like so, for now if |
|
Sorry I didn't see your latest merge |
Branch is up to date with main, thanks for checking in. |
… add request (vllm-project#27596) Signed-off-by: Junpu Fan <[email protected]> Signed-off-by: Bhagyashri <[email protected]>
Purpose
FIX #27595
Now:
After fix:
Test Plan
pytest -s -v tests/entrypoints/llm/test_generate.py
Test Result
Unit Test
Pass
Full CI Test:
test_chat_utils.py::test_resolve_content_format_fallbacks[deepseek-ai/deepseek-vl2-tiny-stringwhich is fixed by [Bugfix][CI] Fix config resolving logic with remote models #27610Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.