-
-
Notifications
You must be signed in to change notification settings - Fork 11.5k
[Bugfix] Allow --skip-tokenizer-init with echo and return_token_ids
#26238
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] Allow --skip-tokenizer-init with echo and return_token_ids
#26238
Conversation
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
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.
Code Review
This pull request addresses a bug that caused a failure when using --skip-tokenizer-init in combination with echo=True and return_token_ids=True. The fix correctly identifies that detokenization is not required in this specific scenario, as the prompt text is not used for the echoed output. The logic is sound, and the accompanying test modification effectively validates the correction. The changes are well-targeted and resolve the issue as described.
…s` (vllm-project#26238) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: Tomer Asida <57313761+tomeras91@users.noreply.github.com>
…s` (vllm-project#26238) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: Karan Goel <3261985+karan@users.noreply.github.com>
…s` (vllm-project#26238) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
…s` (vllm-project#26238) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
…s` (vllm-project#26238) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
…s` (vllm-project#26238) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
…s` (vllm-project#26238) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
…s` (vllm-project#26238) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Purpose
Oops, I made a mistake in #26216. Actually
request.echohas special handling forrequest.return_token_idsso we should still allow--skip-tokenizer-initwith it.Test Plan
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.