Merged
Conversation
for more information, see https://pre-commit.ci
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces a system for managing predefined ignore layers for specific model architectures during quantization. It adds a matcher-based registration system that allows automatic configuration of layers to ignore during the quantization process based on model characteristics.
Changes:
- Added a matcher-based system for identifying models and automatically applying predefined ignore layer configurations
- Registered predefined ignore layers for Qwen3MOE and Longcat model architectures
- Integrated the predefined ignore layers system into the base compressor initialization
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| auto_round/special_model_handler.py | Implements ModelNameMatcher, ArchitectureMatcher, and PreDefinedIgnoreLayers classes with registration and retrieval functions |
| auto_round/compressors/base.py | Integrates predefined ignore layers into the compressor initialization by extending the ignore_layers attribute |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…-round into add_predefined_ignore # Conflicts: # auto_round/special_model_handler.py
for more information, see https://pre-commit.ci
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
for more information, see https://pre-commit.ci
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
hshen14
approved these changes
Jan 22, 2026
lvliang-intel
pushed a commit
that referenced
this pull request
Feb 2, 2026
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@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 #
Relates to #
Changes Made
Testing
Checklist
Additional Context