Optimization analysis deployment

From VectorSpaceLab/AREX-Skill · View interactive version

Optimization analysis deployment is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Use AIMET analysis, mixed precision, compression, debugging, export validation, and deployment artifact workflows after core quantization setup.

How to use this skill

Skill file

AIMET optimization, analysis, and deployment

Use this sub-skill when the user asks why accuracy dropped after quantization, how to use QuantAnalyzer or visualization outputs, how to choose mixed precision, how to use compression, or how to validate/export artifacts for target inference.

Read/run first

Core workflow

  1. Establish baselines. Compare FP32, high-bit-width, and target-bit-width QuantSim behavior before choosing remedies.
  2. Separate weight and activation sensitivity. Raise one side's bit-width while holding the other side at target precision.
  3. Apply the right PTQ remedy. Use BatchNorm folding/Cross-Layer Equalization/per-channel quantization/AdaRound/SeqMSE for weight issues; use range-setting, higher activation precision, or mixed precision for activation issues.
  4. Analyze sensitive layers. Use QuantAnalyzer, per-layer sensitivity, histograms, and layer-output comparisons to identify the quantizer or op causing the drop.
  5. Use mixed precision deliberately. Lite/manual/automatic mixed precision should be driven by measured sensitivity and target latency/accuracy constraints.
  6. Compress when the target requires lower MACs or memory. Select compression ratios, apply Weight SVD/Spatial SVD/Channel Pruning, evaluate, then fine-tune if required.
  7. Validate export artifacts. Confirm the ONNX model and AIMET encodings match before QNN/QAIRT/AI Hub or other target handoff.

Deployment boundaries

AIMET produces simulation/export artifacts. It does not prove target-device correctness by itself. For Qualcomm AI Runtime, QNN, QAIRT, HTP, DLC, or AI Hub tasks, first validate the AIMET export pair and then use qualcomm-sdk-deployment for the local SDK or AI Hub workflow.

Data and runtime boundaries

Expected answer shape

When answering optimization/deployment tasks, include:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.