What problem does it solve?
This Skill removes the manual friction from end-to-end post-training quantization of ONNX models with AMD Quark, guiding the user from model intake through planning, script generation, confirmation, and execution.
Core Features & Use Cases
- Model intake and validation: Analyzes an input .onnx model for opset, shapes, quantizable operators, already-quantized QDQ nodes, and deployment compatibility risks.
- Quantization planning: Builds a concrete PTQ plan for presets such as XINT8, A8W8, A16W8, BF16, BFP16, and MX/MXFP variants, including calibration settings and algorithm choices.
- Manifest and script generation: Produces a standalone calibration and quantization script plus a run manifest, with guardrails that avoid modifying the Quark repository and preserve reproducibility.
- Safe execution workflow: Requires checkpointed user confirmation before running quantization and surfaces failures for debugging instead of silently altering providers or patching upstream code.
- Use case: Quantize a vision or LLM ONNX model for CPU, CUDA, ROCm, or AMD NPU deployment while keeping calibration data, output artifacts, and configuration decisions explicit and auditable.
Quick Start
Use the quark-onnx-ptq-workflow skill to analyze my ONNX model, propose a quantization plan, generate the runnable script and manifest, and wait for my confirmation before execution.