-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
Add guided decoding for OpenAI API server #2819
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
Merged
Merged
Changes from 18 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
cd3b3bb
first pass for JSON and regex
felixzhu555 e589bd0
tiny refactor
felixzhu555 5f55e6a
Added support for guided decoding in `api_server` by integrating _out…
br3no 3a051cf
refactor/combine breno's PR with mine
felixzhu555 54217ba
fix type check
felixzhu555 c9c6f4f
fix try-except
felixzhu555 b82dedb
fix import bug
felixzhu555 ba92cb2
add outlines v0.0.27 requirement
felixzhu555 da2f5b8
fix dummy_llm
felixzhu555 b090c18
start adding tests
felixzhu555 9093c5e
add more tests
felixzhu555 1efd64d
fix pytest fixtures scope
felixzhu555 736ca31
remove guided decoding from vllm api server
felixzhu555 4d1b049
refactor + add guided_choice
felixzhu555 a46684e
add caching for logit processors
felixzhu555 058fce6
use re.escape
felixzhu555 dc601c7
revert logits processor 2 vs 3 arg fix
felixzhu555 09d2a9c
copy on cache hit
felixzhu555 d774cf6
add separate thread for creating logits processor
felixzhu555 782b1da
add simple cache test
felixzhu555 df3c774
use asyncio
felixzhu555 c74f6bb
add grammar support
felixzhu555 cf8494d
remove grammar
felixzhu555 c30fed0
copy outlines' logits processors code
felixzhu555 33dc082
breno PR comments
felixzhu555 8699039
resolve PR comments
felixzhu555 6bf277e
add unit test for logits processors
felixzhu555 b45942e
PR comments
felixzhu555 3169b63
Merge branch 'main' of github.com:vllm-project/vllm into add_structur…
felixzhu555 c176dab
fix
felixzhu555 bfbbce3
format with yapf and ruff
felixzhu555 9655b6e
fix global pool
simon-mo 0c3d475
Apply suggestions from code review
simon-mo 0793fc7
Merge branch 'main' of github.com:vllm-project/vllm into add_structur…
simon-mo ce9c07a
some minor fix
simon-mo 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
|
felixzhu555 marked this conversation as resolved.
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.