Repository navigation
feat(sglang): tokens in/out with logprobs #8119
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 17 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
127a14a
feat: cherry-pick tokenize/detokenize endpoints and token ID support …
Aphoh 49a2140
feat(sglang): support return_tokens_as_token_ids for token-based logp…
Aphoh 5664bf5
feat: wire up return_tokens_as_token_ids for /v1/completions endpoint
Aphoh dba0792
Merge origin/main into warnold/sglang-tokens-inout
Aphoh 1fe3151
style: cargo fmt
Aphoh e8286f9
fix(clippy): collapse nested if-let in local_file_dir
Aphoh d4f7121
fix(completions): honor return_tokens_as_token_ids in logprob tokens
Aphoh c62b803
fix(mypy): annotate token_str as str | None in _extract_logprobs
Aphoh baabe55
feat(sglang): reject logprobs >= 1 unless DYN_SGL_ALLOW_TOP_LOGPROBS set
Aphoh 00553a1
Merge origin/main into warnold/sglang-tokens-inout
Aphoh 7a18d28
Merge origin/main into warnold/sglang-tokens-inout
Aphoh d013b5c
fix(completions): enable logprobs when logprobs=0 (chosen-token only)
Aphoh 5fc8952
feat(completions): propagate SGLang stop_reason to /v1/completions re…
Aphoh ab3eff8
Merge origin/main into warnold/sglang-tokens-inout
Aphoh 31f7bcb
Merge remote-tracking branch 'origin/main' into warnold/sglang-tokens…
Aphoh 316b08b
fix(tests): add return_tokens_as_token_ids: None to test fixtures
Aphoh 6231dab
fix(sglang): trim token logprob branch scope
Aphoh f32b200
fix(openai): format top logprobs as token ids
Aphoh 9f8489f
Merge remote-tracking branch 'origin/main' into warnold/sglang-tokens…
Aphoh fd3c9e9
fix(openai): return stop_reason via nvext
Aphoh 2dc3215
chore(openai): drop vllm logprob changes
Aphoh b9d9fa3
Merge remote-tracking branch 'origin/main' into warnold/sglang-tokens…
Aphoh 0397bef
docs(sglang): link top logprobs upstream fix
Aphoh ce704c1
feat(openai): accept token id stop arrays
Aphoh 4c97a5c
fix(sglang): keep stop reasons in nvext
Aphoh eda50cb
test(openai): encode stop input contract
Aphoh 9de617f
Merge remote-tracking branch 'origin/main' into warnold/sglang-tokens…
Aphoh 3d5b5f8
fix(openai): update echo choice calls
Aphoh 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
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.
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.