Skip to content

Set truncation to False in Qwen3Omni to avoid default truncation#41473

Merged
zucchini-nlp merged 2 commits intohuggingface:mainfrom
BakerBunker:fix-qwen3omni-processor
Oct 10, 2025
Merged

Set truncation to False in Qwen3Omni to avoid default truncation#41473
zucchini-nlp merged 2 commits intohuggingface:mainfrom
BakerBunker:fix-qwen3omni-processor

Conversation

@BakerBunker
Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes QwenLM/Qwen3-Omni#40

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@Rocketknight1
Copy link
Copy Markdown
Member

cc @zucchini-nlp maybe?

Copy link
Copy Markdown
Member

@zucchini-nlp zucchini-nlp left a comment

Choose a reason for hiding this comment

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

LGTM, why don't we add it in 'defaults' though in the processor's typed dict? That should work for all cases unless user specifically sets it to False

That way we don't hardcode and the params are still configurable, for whatever reason users might want to

@BakerBunker
Copy link
Copy Markdown
Contributor Author

@zucchini-nlp fixed

@github-actions
Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: qwen3_omni_moe

@zucchini-nlp zucchini-nlp enabled auto-merge (squash) October 10, 2025 09:46
@zucchini-nlp zucchini-nlp merged commit 2eae7c7 into huggingface:main Oct 10, 2025
17 checks passed
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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.

AhnJoonSung pushed a commit to AhnJoonSung/transformers that referenced this pull request Oct 12, 2025
…uggingface#41473)

* Set `truncation` to `False` in Qwen3Omni to avoid default truncation

* move `padding` and `truncation` to audio default args

---------

Co-authored-by: lvyuanjun.lyj <lvyuanjun.lyj@alibaba-inc.com>
ngazagna-qc pushed a commit to ngazagna-qc/transformers that referenced this pull request Oct 23, 2025
…uggingface#41473)

* Set `truncation` to `False` in Qwen3Omni to avoid default truncation

* move `padding` and `truncation` to audio default args

---------

Co-authored-by: lvyuanjun.lyj <lvyuanjun.lyj@alibaba-inc.com>
sarapapi pushed a commit to hlt-mt/mcif that referenced this pull request Mar 24, 2026
WhisperFeatureExtractor defaults to truncation=True, silently cutting
audio longer than 30s.
Qwen3OmniMoeProcessor (tested at
[v4.57.6](https://github.com/huggingface/transformers/releases/tag/v4.57.6))
does not overrides this.

Explicitly passing `truncation=False` makes sure full audio is
processed, matching the fix in
huggingface/transformers#41473.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Qwen3-Omni-30B-A3B Output Truncation Despite High max_new_tokens and eos_token_id=-1

4 participants