Skip to content

add mimo-audio, Qwen-TTS model backbone quantization#1810

Open
WeiweiZhang1 wants to merge 5 commits into
mainfrom
support_audio_model_quantization
Open

add mimo-audio, Qwen-TTS model backbone quantization#1810
WeiweiZhang1 wants to merge 5 commits into
mainfrom
support_audio_model_quantization

Conversation

@WeiweiZhang1
Copy link
Copy Markdown
Contributor

@WeiweiZhang1 WeiweiZhang1 commented May 13, 2026

Description

Support mimo-audio, Qwen-TTS model quantizationc(for new-architecture)

Type of Change

New feature

Related Issues

Fixes or relates to #

Checklist Before Submitting

  • My code has been tested locally.
  • Documentation has been updated as needed.
  • New or updated tests are included where applicable.
  • The CUDA CI has passed. You can trigger it by commenting /azp run Unit-Test-CUDA-AutoRound.

Copilot AI review requested due to automatic review settings May 13, 2026 07:51
@WeiweiZhang1 WeiweiZhang1 changed the title add audio model text backbone quantization add mimo-audio, Qwen-TTS model backbone quantization May 13, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds audio/omni model quantization support paths for MiMo-Audio, Qwen3-TTS, StableAudio, and AudioCaps calibration data across MLLM and diffusion flows.

Changes:

  • Registers audio model templates, processors, block handlers, and model-type resolution.
  • Adds AudioCaps calibration dataset support for text and diffusion pipelines.
  • Adds StableAudio pipeline/block handling and related documentation updates.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
test/README.md Updates model test category wording for Omni.
test/helpers.py Extends tiny-model config reduction for audio/TTS configs.
auto_round/utils/model.py Adds Qwen3-TTS loading and StableAudio pipeline fallback handling.
auto_round/special_model_handler.py Adds MiMo-Audio/Qwen3-TTS model resolution, block handlers, and forward patching.
auto_round/compressors/mllm/template.py Registers MiMo-Audio and Qwen3-TTS templates.
auto_round/compressors/mllm/README.md Documents audio/omni MLLM support.
auto_round/compressors/mllm/processor.py Adds text-only processors for MiMo-Audio and Qwen3-TTS.
auto_round/compressors/mllm/compressor.py Uses resolved model type for template/dataset compatibility.
auto_round/compressors/diffusion/README.md Adds StableAudio to diffusion validation table.
auto_round/compressors/diffusion/dataset.py Adds AudioCaps CSV loading for diffusion calibration.
auto_round/compressors/diffusion/compressor.py Adds StableAudio block output mapping.
auto_round/compressors_new/mllm_mixin.py Uses resolved model type for new MLLM template selection.
auto_round/compressors_new/diffusion_mixin.py Uses attached custom diffusion pipeline functions during calibration.
auto_round/calib_dataset.py Adds AudioCaps as a text calibration dataset.
auto_round/algorithms/quantization/base.py Adds StableAudio block input mapping to base quantization config.
Comments suppressed due to low confidence (2)

auto_round/special_model_handler.py:442

  • The newly registered audio model block handlers are not covered by tests. Similar multimodal handlers have tests for block discovery, forward patching, processor registration, and template registration in test/test_cpu/models/test_omni_model.py; please add coverage for the MiMo-Audio and Qwen3-TTS paths so regressions in resolve_model_type, _handle_special_model, and template/processor registration are caught.
    position_ids=None,
    attention_mask=None,

auto_round/special_model_handler.py:430

  • This fallback is also skipped when a talker.model attribute exists but does not expose layers, so the standard model.model.layers layout described above would not be discovered. Please make the layout checks independent or fall through when a candidate layout does not actually add any block names.
    "qwen2_5_omni": _get_qwen2_5_omni_multimodal_block,

Comment thread auto_round/compressors/mllm/README.md
Comment thread auto_round/compressors/diffusion/README.md Outdated
Comment thread auto_round/compressors/diffusion/compressor.py Outdated
Comment thread auto_round/compressors/mllm/processor.py Outdated
Comment thread auto_round/special_model_handler.py
Comment thread auto_round/special_model_handler.py Outdated
Comment thread auto_round/special_model_handler.py Outdated
Comment thread auto_round/algorithms/quantization/base.py
Comment thread auto_round/special_model_handler.py Outdated
Comment thread auto_round/compressors/mllm/compressor.py Outdated
@n1ck-guo
Copy link
Copy Markdown
Contributor

LGTM

@WeiweiZhang1
Copy link
Copy Markdown
Contributor Author

/azp run Unit-Test-CUDA-AutoRound

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@WeiweiZhang1 WeiweiZhang1 removed the WIP label May 13, 2026
Copy link
Copy Markdown
Contributor

@yiliu30 yiliu30 left a comment

Choose a reason for hiding this comment

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

Please add some UTs using dummy models; you may refer to:

@pytest.mark.skip_ci(reason="Not necessary to test all cases in CI")
class TestQwen2_5OmniQuantization:
"""End-to-end quantization test for Qwen2.5-Omni (dense model)."""
def test_quantize_and_reload(self, tiny_qwen2_5_omni_model_path, tmp_path):

Left a few nitpicks; overall LGTM.

Comment thread auto_round/special_model_handler.py Outdated
Comment thread auto_round/compressors/mllm/processor.py Outdated
Comment thread auto_round/calib_dataset.py Outdated
@chensuyue chensuyue added this to the 0.13.0 milestone May 14, 2026
WeiweiZhang1 and others added 4 commits May 14, 2026 11:40
Signed-off-by: WeiweiZhang1 <weiwei1.zhang@intel.com>
Signed-off-by: WeiweiZhang1 <weiwei1.zhang@intel.com>
…caps utility, add explicit error for missing text pathway
@WeiweiZhang1 WeiweiZhang1 force-pushed the support_audio_model_quantization branch from 79dbaeb to 7124716 Compare May 14, 2026 03:40
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.

5 participants