- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 11k
 
[Bugfix] Fix Mistral guided generation using xgrammar #15704
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] Fix Mistral guided generation using xgrammar #15704
Conversation
Signed-off-by: Julien Denize <julien.denize@mistral.ai>
| 
           👋 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  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  🚀  | 
    
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.
@russellb do we not have a test case for Mistral on V1? @juliendenize maybe we could add a test case to tests/v1/entrypoints/llm/test_struct_output_generate.py?
Also a user in the issue reports a failure for V0 as well (#15551 (comment)), can this be resolved too?
Signed-off-by: Julien Denize <julien.denize@mistral.ai>
| 
           This pull request has merge conflicts that must be resolved before it can be  | 
    
Signed-off-by: Julien Denize <julien.denize@mistral.ai>
          
 I pushed tests for the V1 version, had to merge with main. Concerning the V0 I'll investigate :)  | 
    
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.
Great work! We can cover the V0 issue in another PR if this is ready to merge
| 
           Can you fix the merge conflict?  | 
    
Signed-off-by: Julien Denize <julien.denize@mistral.ai>
Signed-off-by: Julien Denize <julien.denize@mistral.ai>
Head branch was pushed to by a user without write access
          
 Done, kuddos on whoever reduced the testing of the structured output BTW 😄  | 
    
| 
           thanks for fixing and merging 🙏 !  | 
    
…5704) Signed-off-by: Julien Denize <julien.denize@mistral.ai> Signed-off-by: xinyuxiao <xinyuxiao2024@gmail.com>
…5704) Signed-off-by: Julien Denize <julien.denize@mistral.ai> Signed-off-by: Louis Ulmer <ulmerlouis@gmail.com>
…5704) Signed-off-by: Julien Denize <julien.denize@mistral.ai>
…5704) Signed-off-by: Julien Denize <julien.denize@mistral.ai>
…5704) Signed-off-by: Julien Denize <julien.denize@mistral.ai> Signed-off-by: Mu Huai <tianbowen.tbw@antgroup.com>
This PR aims to fix guided generation for mistral models based on the tekken tokenizer.
FIX #15551