Skip to content

enhance model_free functionality with strict parameter validation - #2520

Merged
xin3he merged 3 commits into
mainfrom
xinhe/10-20
Oct 22, 2026
Merged

xin3he merged 3 commits into
mainfrom
xinhe/10-20

Conversation

@xin3he

@xin3he xin3he commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Description

--model_free should not automatically routes to regular path if some arguments are not supported, raise error instead.
.

Type of Change

Enhancement

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.
  • The CUDA CI has passed. You can trigger it by commenting /azp run Unit-Test-CUDA-AutoRound.

@xin3he
xin3he requested review from chensuyue and a lite review from Copilot October 20, 2026 07:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved validation bypass, routing, and documentation issues must be addressed before approval.

1 open issue
What changed in this PR

Enhances explicit model_free=True validation to reject unsupported parameters and export formats instead of silently falling back.

Changes:

  • Adds strict runtime and algorithm-parameter validation.
  • Rejects unsupported model-free export formats.
  • Expands validation and routing tests.
File Summary
test/​unit/​test_cpu/​utils/​test_model_free_utils.py Tests static quantization rejection; routing validation remains unresolved.
test/​unit/​test_cpu/​quantization/​test_model_free.py Adds coverage for invalid parameters and export formats.
auto_round/​compressors/​model_free.py Updates model-free fallback behavior; public argument documentation needs correction.
auto_round/​autoround.py Adds strict validation, with a special disable_opt_rtn path that can bypass it.

Review effort: Lite

Comment thread test/unit/test_cpu/utils/test_model_free_utils.py
@AutoRoundBot

This comment has been minimized.

@lkk12014402 lkk12014402 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

…el_free mode

Signed-off-by: Xin He <xin3.he@intel.com>
@AutoRoundBot

Copy link
Copy Markdown
Collaborator

/azp run Unit-Test-CUDA-AutoRound

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@AutoRoundBot

Copy link
Copy Markdown
Collaborator

/azp run Unit-Test-CUDA-AutoRound

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@xin3he
xin3he merged commit 95eccea into main Oct 22, 2026
51 checks passed
@xin3he
xin3he deleted the xinhe/10-20 branch October 22, 2026 06:34
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