quark-onnx-quant-plan
Purpose
Convert an ONNX model_analysis.json plus the user's intent into a confirmed quant_plan.json.
This skill makes the quantization decisions for the ONNX-to-ONNX flow — which preset, which
calibration method, which algorithm, which op types to include/exclude, whether to enable an NPU
target, whether to use external-data — without generating scripts or executing the
quantization. The plan is the contract between the user's intent and the execution step.
Inputs
model_analysis.jsonfromquark-onnx-model-intake(architecture, op histogram, opsets,
external-data state, preset_candidates, risks)
env_context.jsonfor accelerator-aware preset gating (CUDA major / ROCm major / NPU presence)onnx_install_result.json(optional) — gates BFP/MX/Extended presets (require the custom-ops
library to be compiled for the target EP)
- User preferences: deployment target, accuracy goal, model-size goal, calibration data
availability
Outputs: quant_plan.json
Records the chosen preset (or custom config), calibration method, algorithm list, layer/op
overrides, NPU flag, external-data setting, and evaluation intent. Shares the schema with the
Torch plan; ONNX-specific fields live under onnx_specific.