Skip to content

support gptqmodel 7.0.0 and fix bug in CI#1772

Merged
XuehaoSun merged 10 commits into
mainfrom
xinhe/4-30
May 8, 2026
Merged

support gptqmodel 7.0.0 and fix bug in CI#1772
XuehaoSun merged 10 commits into
mainfrom
xinhe/4-30

Conversation

@xin3he
Copy link
Copy Markdown
Contributor

@xin3he xin3he commented Apr 30, 2026

Description

GPTQmodel 7.0.0 removes Quant string from Linear class name

Type of Change

Bug fix

Related Issues

Fixes or relates to #1771

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 added 2 commits April 30, 2026 15:21
Signed-off-by: Xin He <xin3.he@intel.com>
Signed-off-by: Xin He <xin3.he@intel.com>
Copilot AI review requested due to automatic review settings April 30, 2026 08:34
@xin3he
Copy link
Copy Markdown
Contributor Author

xin3he commented Apr 30, 2026

/azp run Unit-Test-CUDA-AutoRound

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

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

Updates AutoRound’s GPTQModel integration to accommodate GPTQModel 7.0.0 API/class renames and adjusts some test helper logic used in CI/model loading.

Changes:

  • Add GPTQModel 7.0.0 compatibility for Marlin kernels and ExllamaV2 class naming changes.
  • Refactor GPTQModel backend linear selection to unify GPTQ/AWQ handling and dynamically resolve renamed classes.
  • Simplify get_tiny_model(..., from_config=True) config-only model construction path in tests.

Reviewed changes

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

File Description
test/helpers.py Adjusts model-path selection and refactors config-only tiny model instantiation logic.
auto_round_extension/cuda/gptqmodel_marlin.py Adds GPTQModel 7.0.0 Marlin import/argument handling.
auto_round/inference/convert_model.py Switches ExllamaV2 class import based on GPTQModel version.
auto_round/inference/backend.py Unifies GPTQModel GPTQ/AWQ backend routing and resolves renamed QuantLinear classes via dynamic import.

Comment thread test/helpers.py
Comment thread auto_round_extension/cuda/gptqmodel_marlin.py
Comment thread auto_round/inference/backend.py Outdated
xin3he added 3 commits May 6, 2026 10:57
Signed-off-by: Xin He <xin3.he@intel.com>
Signed-off-by: Xin He <xin3.he@intel.com>
Signed-off-by: Xin He <xin3.he@intel.com>
@xin3he
Copy link
Copy Markdown
Contributor Author

xin3he commented May 6, 2026

/azp run Unit-Test-CUDA-AutoRound

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

xin3he and others added 2 commits May 7, 2026 01:52
Signed-off-by: Xin He <xin3.he@intel.com>
@xin3he
Copy link
Copy Markdown
Contributor Author

xin3he commented May 7, 2026

/azp run Unit-Test-CUDA-AutoRound

@xin3he
Copy link
Copy Markdown
Contributor Author

xin3he commented May 7, 2026

/azp run Unit-Test-CUDA-AutoRound

xin3he and others added 3 commits May 7, 2026 04:49
Signed-off-by: Xin He <xin3.he@intel.com>
Signed-off-by: Xin He <xin3.he@intel.com>
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

else:
raise ValueError(f"Unsupported {backend}")
for spec in backend_specs:
if spec[0] not in backend:
Copy link
Copy Markdown
Contributor

@wenhuach21 wenhuach21 May 8, 2026

Choose a reason for hiding this comment

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

not a very good code style, e.g. some core code should not be included in for loop

@XuehaoSun XuehaoSun merged commit 871f6f3 into main May 8, 2026
41 of 43 checks passed
@XuehaoSun XuehaoSun deleted the xinhe/4-30 branch May 8, 2026 05:21
lvliang-intel pushed a commit that referenced this pull request May 12, 2026
Signed-off-by: Xin He <xin3.he@intel.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@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.

4 participants