Repository navigation
Allow untokenized output from apply_transcription_request - #49944
Merged
Merged
Conversation
Add a `tokenize` argument to the chat-template-based ASR processors so that inference engines, which run the processor themselves, can get the formatted prompts. Also make VibeVoice-ASR's `extract_speaker_dict` keep the complete segments of truncated output instead of raising. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Member
Author
|
With |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Contributor
|
[For maintainers] Suggested jobs to run (before merge) run-slow: audioflamingo3, canary, fun_asr_nano, glmasr, moss_transcribe_diarize, qwen3_asr, vibevoice_asr |
eustlb
force-pushed
the
transcription-request-tokenize
branch
from
October 30, 2026 14:10
ddea27f to
e20017b
Compare
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.
What does this PR do?
Lets inference engines that run the processor themselves (e.g. vLLM's Transformers backend) use
apply_transcription_requestto build ASR prompts. This is a step towards serving/v1/audio/transcriptionsthrough vLLM's Transformers backend instead of per-model native implementations such as vllm-project/vllm#62398 (VibeVoice-ASR).tokenizeargument: added toapply_transcription_requestin AudioFlamingo3, Canary, FunASR-Nano, GLM-ASR, MOSS-Transcribe-Diarize, Qwen3-ASR and VibeVoice-ASR. Defaults toTrue(unchanged). WithFalse, the formatted prompts are returned aslist[str]with unexpanded audio placeholders, to be processed later together with the audio. Voxtral already supports this.extract_speaker_dictraisedJSONDecodeErrorwhen generation stopped mid-segment (e.g. atmax_new_tokens). It now keeps the complete segments and logs a warning, in line with its "returning original text on failure" contract.This overlaps with #49869 on the same signatures; whichever lands second needs a trivial rebase.
Tests: new VibeVoice-ASR processor tests check that
processor(text=prompts, audio=audio)on the untokenized prompts matches the tokenized output, and that truncated output keeps its complete segments. Also checked against themicrosoft/VibeVoice-ASR-HFprocessor: identicalinput_ids. The processor suites of all 7 models have the same results asmain.AI assistance (Claude Code) was used for this PR.
@eustlb @ebezzam