Skip to content

Conversation

@wenhuach21
Copy link
Contributor

No description provided.

@wenhuach21 wenhuach21 requested a review from Copilot January 5, 2026 05:50
Copy link
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 open sources the alg_ext (algorithm extension) module, which provides advanced quantization algorithms and extensions for AutoRound. The changes introduce enhanced quantization techniques including support for MXFP, NVFP, and GGUF formats with double quantization capabilities.

Key changes:

  • Added new alg_ext.py module with advanced quantization algorithms and wrapper classes
  • Refactored base.py to eliminate duplicated conditional logic by introducing a reusable autocast_ctx context manager

Reviewed changes

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

File Description
auto_round/alg_ext.py New file containing advanced quantization functions, custom wrapper classes (WrapperLinearV2, DQWrapperLinear), and GGUF-specific quantization algorithms
auto_round/compressors/base.py Refactored to use a shared autocast context manager, reducing code duplication in _quantize_layer and _get_loss methods

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

@wenhuach21 wenhuach21 requested a review from xin3he January 5, 2026 05:57
@wenhuach21
Copy link
Contributor Author

@chensuyue there is no need to compile alg_ext in the future

@wenhuach21 wenhuach21 requested review from n1ck-guo and yiliu30 January 5, 2026 05:58
Copy link
Contributor

@xin3he xin3he left a comment

Choose a reason for hiding this comment

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

It is recommended to add a detailed documentation (README file) about this algorithm.

Signed-off-by: n1ck-guo <[email protected]>
@wenhuach21 wenhuach21 merged commit 86ae59e into main Jan 6, 2026
28 checks passed
@wenhuach21 wenhuach21 deleted the open_alg_ext branch January 6, 2026 03:04
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.

4 participants