Skip to content

[Bugfix] Fix qwen3-omni audio truncation issue#26815

Merged
DarkLight1337 merged 4 commits intovllm-project:mainfrom
Isotr0py:q3-omni-audio-truncation
Oct 15, 2025
Merged

[Bugfix] Fix qwen3-omni audio truncation issue#26815
DarkLight1337 merged 4 commits intovllm-project:mainfrom
Isotr0py:q3-omni-audio-truncation

Conversation

@Isotr0py
Copy link
Copy Markdown
Member

@Isotr0py Isotr0py commented Oct 14, 2025

Purpose

Test Plan

Test Result


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.

Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
@Isotr0py Isotr0py requested a review from sighingnow as a code owner October 14, 2025 15:55
@mergify mergify bot added the qwen Related to Qwen models label Oct 14, 2025
@Isotr0py Isotr0py closed this Oct 14, 2025
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a 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 an audio truncation issue in the Qwen3-Omni model where inputs were always limited to 30 seconds. The changes introduce a conditional truncation mechanism based on the truncation argument in mm_kwargs, which correctly allows for processing longer audio clips. The associated refactoring, which includes hoisting the feature_extractor and hop_length initializations and removing redundant code, is clean and necessary for the fix. The implementation is sound and effectively resolves the reported bug.

@Isotr0py Isotr0py reopened this Oct 14, 2025
@Isotr0py
Copy link
Copy Markdown
Member Author

After second thought, I think we can still add some patch here so that user doesn't need to wait Transformers patch release.

Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
return x

# NOTE: WhisperFeatureExtractor cannot handle empty list of audios
feature_extractor = self.info.get_feature_extractor()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment so we can revert once it's fixed on transformers side?

Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
@DarkLight1337 DarkLight1337 enabled auto-merge (squash) October 15, 2025 02:30
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Oct 15, 2025
@DarkLight1337 DarkLight1337 merged commit 8c851f6 into vllm-project:main Oct 15, 2025
54 checks passed
@Isotr0py Isotr0py deleted the q3-omni-audio-truncation branch October 15, 2025 11:34
bbartels pushed a commit to bbartels/vllm that referenced this pull request Oct 16, 2025
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: bbartels <benjamin@bartels.dev>
lywa1998 pushed a commit to lywa1998/vllm that referenced this pull request Oct 20, 2025
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
alhridoy pushed a commit to alhridoy/vllm that referenced this pull request Oct 24, 2025
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
0xrushi pushed a commit to 0xrushi/vllm that referenced this pull request Oct 26, 2025
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: 0xrushi <6279035+0xrushi@users.noreply.github.com>
0xrushi pushed a commit to 0xrushi/vllm that referenced this pull request Oct 26, 2025
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: 0xrushi <6279035+0xrushi@users.noreply.github.com>
wenbinc-Bin pushed a commit to wenbinc-Bin/vllm-fork that referenced this pull request Nov 7, 2025
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
rtourgeman pushed a commit to rtourgeman/vllm that referenced this pull request Nov 10, 2025
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
devpatelio pushed a commit to SumanthRH/vllm that referenced this pull request Nov 29, 2025
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

qwen Related to Qwen models ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: crash when sending wav to qwen3_omni_moe

2 participants