Skip to content

Fix issue where predefined ignore layers incorrectly apply to GGUF#1340

Merged
wenhuach21 merged 16 commits intomainfrom
fix_0126
Jan 26, 2026
Merged

Fix issue where predefined ignore layers incorrectly apply to GGUF#1340
wenhuach21 merged 16 commits intomainfrom
fix_0126

Conversation

@wenhuach21
Copy link
Copy Markdown
Contributor

@wenhuach21 wenhuach21 commented Jan 26, 2026

Description

Please briefly describe your main changes, the motivation.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Performance improvement
  • Code refactoring
  • Other (please specify):

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.

Copilot AI review requested due to automatic review settings January 26, 2026 03:11
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 fixes an issue related to predefined GGUF configuration by deferring the application of predefined ignore layers and auto-scheme generation until after the export format is determined.

Changes:

  • Moved predefined ignore layers logic from __init__ to configure_layer_config with GGUF format check
  • Deferred auto-scheme generation to occur in configure_layer_config instead of during initialization
  • Removed unused imports (os, type hints Any, Dict, List, Tuple, and copy_python_files_from_model_cache)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
auto_round/compressors/utils.py Removed unused imports and added blank lines
auto_round/compressors/base.py Moved predefined ignore layers logic and auto-scheme generation from __init__ to configure_layer_config method, added orig_scheme field to preserve original scheme

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wenhuach21 wenhuach21 requested review from Copilot and removed request for Copilot January 26, 2026 03:14
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.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@wenhuach21 wenhuach21 requested a review from Copilot January 26, 2026 03:16
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 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

wenhuach21 and others added 4 commits January 26, 2026 11:17
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@wenhuach21 wenhuach21 changed the title fix predefined gguf issue Fix issue where predefined ignore layers incorrectly apply to GGUF Jan 26, 2026
@wenhuach21 wenhuach21 merged commit ca13362 into main Jan 26, 2026
28 checks passed
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