[Bugfix][Frontend] validate arg priority in frontend LLM class before add request#27596
Conversation
Signed-off-by: Junpu Fan <junpufan@gmail.com>
|
👋 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.
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 <junpufan@gmail.com>
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 <junpufan@gmail.com>
… add request (vllm-project#27596) Signed-off-by: Junpu Fan <junpufan@gmail.com>
… add request (vllm-project#27596) Signed-off-by: Junpu Fan <junpufan@gmail.com>
… add request (vllm-project#27596) Signed-off-by: Junpu Fan <junpufan@gmail.com>
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.