Skip to content

COPY OF 2532#2555

Closed
xiaoyu-work wants to merge 1 commit into
mainfrom
quark-0.12-fix
Closed

COPY OF 2532#2555
xiaoyu-work wants to merge 1 commit into
mainfrom
quark-0.12-fix

Conversation

@xiaoyu-work

Copy link
Copy Markdown
Collaborator

Fix the ONNX calibration path: Quark 0.12 rejects extra inputs in the calibration data reader, so pass model_path/io_config to filter out dataset labels (e.g. class) that are not model inputs.

Update the Torch path for the Quark 0.12 API: replace the removed revert_model_patching and the deprecated prepare_for_moe_quant (which now raises on transformers>=5) with preprocess_for_quantization.

Bump the required amd-quark version to >=0.12.0.

Describe your changes

Checklist before requesting a review

  • Add unit tests for this change.
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Lint and apply fixes to your code by running lintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.

(Optional) Issue link

Fix the ONNX calibration path: Quark 0.12 rejects extra inputs in the
calibration data reader, so pass model_path/io_config to filter out
dataset labels (e.g. `class`) that are not model inputs.

Update the Torch path for the Quark 0.12 API: replace the removed
`revert_model_patching` and the deprecated `prepare_for_moe_quant`
(which now raises on transformers>=5) with `preprocess_for_quantization`.

Bump the required amd-quark version to >=0.12.0.
@xiaoyu-work xiaoyu-work closed this Jul 2, 2026
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.

2 participants