fix: refactor and fix Omni model tests to improve CI stability#1598
Merged
fix: refactor and fix Omni model tests to improve CI stability#1598
Conversation
Signed-off-by: Xin He <xin3.he@intel.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors CUDA integration tests for Omni models to rely on tiny, config-initialized models saved to disk (avoiding full checkpoint dependencies), and adjusts BaseCompressor logging around unquantized layers to be clearer.
Changes:
- Refactored Qwen2.5-Omni and Qwen3-Omni-MoE CUDA tests to quantize from a saved tiny model path and reload via
from_pretrained(...). - Extended test helpers to support
from_configtiny-model initialization and generalized config layer/expert reduction. - Improved log messages for reporting unquantized layers during compression/quantization.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
test/test_cuda/models/test_omni_model.py |
Switches Omni CUDA tests to quantize/reload from saved tiny model directories and uses tmp_path for outputs. |
test/helpers.py |
Adds _reduce_config_layers and extends get_tiny_model/save_tiny_model with from_config and num_experts support. |
test/fixtures.py |
Replaces Omni fixtures with session-scoped “tiny model path” fixtures built via save_tiny_model(..., from_config=True) and adds required assets. |
auto_round/compressors/base.py |
Tweaks info-level logging to label “Unquantized layers” more explicitly. |
Contributor
Author
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
Contributor
Author
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Xin He <xin3.he@intel.com>
Contributor
Author
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Xin He <xin3.he@intel.com>
for more information, see https://pre-commit.ci
lvliang-intel
approved these changes
Mar 24, 2026
Contributor
Author
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines successfully started running 1 pipeline(s). |
XuehaoSun
approved these changes
Mar 25, 2026
xin3he
added a commit
that referenced
this pull request
Mar 25, 2026
Signed-off-by: Xin He <xin3.he@intel.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.
Description
Type of Change
Related Issues
Fixes or relates to #
Checklist Before Submitting