-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 guided decoding with tokenizer mode mistral #11046
Merged
simon-mo
merged 13 commits into
vllm-project:main
from
wallashss:fix_guided_dec_with_mistral_tokenizer_mode
Dec 18, 2024
Merged
Changes from 7 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
83ea81c
[Bugfix] Fix guided decoding with tokenizer mode mistral
wallashss a9a1e3c
Merge branch 'main' into fix_guided_dec_with_mistral_tokenizer_mode
wallashss 710fcc9
revert tokenizer.get_vocab_size
wallashss 9792cee
reverted tokenizer get_vocab_size and adjusted tests
wallashss b3cb571
fix linting
wallashss 4ce6b28
minor refactor on xgrammar_decoding
wallashss d7c7161
code cleanup
wallashss d61257d
answering to reviews suggestion
wallashss b674647
Merge branch 'main' into fix_guided_dec_with_mistral_tokenizer_mode
wallashss 78e7dc2
applying PR suggestions
wallashss bfedea7
fix import tokenizer_data on test
wallashss 0173c2d
set lark to 1.2.2
wallashss b98f633
Merge branch 'main' into fix_guided_dec_with_mistral_tokenizer_mode
wallashss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
can you revert this change?
This is being used for offline use case, with LLM, where as get_guided_decoding_logit_processor is being used for online usecase.
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.
I reviewed what I did and checked that it was not so good based on the difference of implementation of the methods
get_local_outlines_guided_decoding_logits_processor
andget_outlines_guided_decoding_logits_processor
. But I tried something a little bit difference to not revert everything, just to avoid code duplication. See if you agree, if not I won't insist I can revert with no problem. Also I updated the tests to check the offline and online version to pass all over these code paths, considering the offline path.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.
I think this is even more confusing now that there are three functions. I would prefer a revert as it seems you have no other changes to this file? We can consider refactor in another PR