Skip to content

set predefined ignore layers#1318

Merged
wenhuach21 merged 9 commits intomainfrom
add_predefined_ignore
Jan 22, 2026
Merged

set predefined ignore layers#1318
wenhuach21 merged 9 commits intomainfrom
add_predefined_ignore

Conversation

@wenhuach21
Copy link
Copy Markdown
Contributor

@wenhuach21 wenhuach21 commented Jan 22, 2026

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Performance improvement
  • Code refactoring
  • Other (please describe):

Related Issues

Fixes #
Relates to #

Changes Made

Testing

  • Tested locally
  • Added/updated unit tests
  • All existing tests pass
  • Tested on specific hardware/environment (please specify):

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Additional Context

Copilot AI review requested due to automatic review settings January 22, 2026 07:59
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

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.

wenhuach21 and others added 7 commits January 22, 2026 16:05
@wenhuach21 wenhuach21 requested a review from Copilot January 22, 2026 08:55
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

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.

@wenhuach21 wenhuach21 added this to the 0.9.6 milestone Jan 22, 2026
@wenhuach21 wenhuach21 merged commit 7c397e1 into main Jan 22, 2026
28 checks passed
@wenhuach21 wenhuach21 deleted the add_predefined_ignore branch January 22, 2026 11:52
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>
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.

3 participants