-
Notifications
You must be signed in to change notification settings - Fork 629
[Structured Output] Replace apply_grammar_bitmask() method with that in vllm to avoid maintenance
#2524
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
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.
Code Review
This pull request refactors the code to use the apply_grammar_bitmask function from the upstream vLLM library, removing the local implementation. This is a positive change that reduces code duplication and improves maintainability. The implementation correctly handles the necessary tensor manipulations, such as moving logits to the CPU and handling dtype conversions, which were previously part of the removed method. The changes appear correct and beneficial.
|
👋 Hi! Thank you for contributing to the vLLM Ascend project. The following points will speed up your PR merge:
If CI fails, you can run linting and testing checks locally according Contributing and Testing. |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
adcefcb to
356dc3b
Compare
…ntenance Signed-off-by: shen-shanshan <[email protected]>
|
CC @wangxiyuan |
…t in vllm to avoid maintenance (vllm-project#2524) ### What this PR does / why we need it? Replace `apply_grammar_bitmask()` method with that in vllm to avoid maintenance. - vLLM version: v0.11.0rc3 - vLLM main: https://github.com/vllm-project/vllm/commit/v0.11.0 Signed-off-by: shen-shanshan <[email protected]> Signed-off-by: shaopeng666 <[email protected]>
…t in vllm to avoid maintenance (vllm-project#2524) ### What this PR does / why we need it? Replace `apply_grammar_bitmask()` method with that in vllm to avoid maintenance. - vLLM version: v0.11.0rc3 - vLLM main: https://github.com/vllm-project/vllm/commit/v0.11.0 Signed-off-by: shen-shanshan <[email protected]> Signed-off-by: luolun <[email protected]>
…t in vllm to avoid maintenance (vllm-project#2524) ### What this PR does / why we need it? Replace `apply_grammar_bitmask()` method with that in vllm to avoid maintenance. - vLLM version: v0.11.0rc3 - vLLM main: https://github.com/vllm-project/vllm/commit/v0.11.0 Signed-off-by: shen-shanshan <[email protected]> Signed-off-by: hwhaokun <[email protected]>
…t in vllm to avoid maintenance (vllm-project#2524) ### What this PR does / why we need it? Replace `apply_grammar_bitmask()` method with that in vllm to avoid maintenance. - vLLM version: v0.11.0rc3 - vLLM main: https://github.com/vllm-project/vllm/commit/v0.11.0 Signed-off-by: shen-shanshan <[email protected]> Signed-off-by: nsdie <[email protected]>
What this PR does / why we need it?
Replace
apply_grammar_bitmask()method with that in vllm to avoid maintenance.