Repository navigation
Add SGLang backend for native token logprob scoring - #12
Merged
MorrisZJ merged 1 commit intoOct 7, 2026
Merged
Conversation
Collaborator
|
Thanks @shentonyan, and sorry for the wait; 0.3.0 landed in between. We ran this against a real server: SGLang 0.5.10, Qwen2.5-7B-Instruct,
Could you:
We'll rerun the same checks and merge. |
Score the requested ids at the position after the prompt: send the prompt ids alone with max_new_tokens=0, return_logprob and token_ids_logprob, and read meta_info.output_token_ids_logprobs[0] by token id. The tests use the real response shape and need no transformers.
shentonyan
force-pushed
the
feat/sglang-backend
branch
from
October 7, 2026 14:11
961d18a to
63c0575
Compare
Contributor
Author
|
Thanks @MorrisZJ, and thanks for running it against a real server. I pushed an update: one commit on top of current main (f82fe03).
|
MorrisZJ
added a commit
that referenced
this pull request
Oct 7, 2026
- CREDITS / CHANGELOG: @shentonyan (SGLang backend, #12), @tak-bro (vLLM missing-label report, #13) - ROADMAP / README (EN, zh): SGLang done, off the help-wanted list - VLLMBackend docs: vLLM's default raw logprobs can leave a label out (seen on 0.17.1 with Nemotron-H); recommend --logprobs-mode processed_logprobs (docs only)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
SGLangBackendusing SGLang's native/generateAPI.token_ids_logprobandmax_new_tokens=0to score requested tokens without sampling.HFBackend.Validation