Qualcomm SDK and AI Hub deployment
Use this sub-skill when the user asks how to send AIMET exports to Qualcomm AI Hub, QAIRT, QNN, HTP backends, DLC conversion, qairt-converter, qairt-quantizer, qnn-context-binary-generator, qnn-net-run, or AI Hub compile/profile/inference jobs.
Read/run first
Core workflow
- Validate AIMET artifacts. You need an exported
.onnx model and matching AIMET .encodings file, or an ONNX QDQ model when the target flow expects QDQ.
- Choose local SDK vs AI Hub. Local QAIRT/QNN commands require installed SDK binaries and libraries; AI Hub requires
qai_hub credentials and supported devices.
- Generate conversion commands. Feed the AIMET model and encodings into converter/quantizer commands; keep output DLC and context-binary paths explicit.
- Compile/profile/infer. For local SDK, run context-binary generation and net-run with input lists. For AI Hub, submit compile/profile/inference jobs and record job URLs.
- Check failure mode. Distinguish missing encodings, unsupported ops, channel order mismatch, provider/runtime mismatch, and missing target libraries.
Boundaries
AIMET export validation can be done locally. Target SDK execution cannot be proven unless the SDK, device/backend libraries, input list, and credentials are present. Do not claim target correctness from a successful AIMET QuantSim export alone.
Expected answer shape
For deployment tasks, include the input artifact paths, target device/runtime, local SDK or AI Hub path, generated commands or API calls, expected output files, and exact credential/SDK assumptions.
1---2name: qualcomm-sdk-deployment3description: "Prepare AIMET exports for Qualcomm AI Hub, QAIRT/QNN conversion,4 profiling, inference, and SDK command generation."5metadata:6 source: https://skillmd.com/skills/vectorspacelab/qualcomm-sdk-deployment7 disco-role: operating8disable-model-invocation: true9license: BSD 3-Clause10---1112# Qualcomm SDK and AI Hub deployment1314Use this sub-skill when the user asks how to send AIMET exports to Qualcomm AI Hub, QAIRT, QNN, HTP backends, DLC conversion, `qairt-converter`, `qairt-quantizer`, `qnn-context-binary-generator`, `qnn-net-run`, or AI Hub compile/profile/inference jobs.1516## Read/run first1718- Read [Qualcomm SDK workflows](../../references/qualcomm-sdk-workflows.md) for artifact requirements and local/remote deployment sequences.19- Run [inspect_export.py](../../scripts/inspect_export.py) on the exported model directory before target handoff.20- Use [qairt_command_builder.py](../../scripts/qairt_command_builder.py) to generate QAIRT/QNN command lines with local paths filled in.21- Use [qai_hub_qnn_job.py](../../scripts/qai_hub_qnn_job.py) for a self-contained AI Hub compile/profile entry point when `qai_hub` is installed and authenticated.22- Read [model access and credentialed evaluation](../model-access-and-credentialed-evaluation/SKILL.md) for AI Hub, AWS, and credential boundaries.2324## Core workflow25261. **Validate AIMET artifacts.** You need an exported `.onnx` model and matching AIMET `.encodings` file, or an ONNX QDQ model when the target flow expects QDQ.272. **Choose local SDK vs AI Hub.** Local QAIRT/QNN commands require installed SDK binaries and libraries; AI Hub requires `qai_hub` credentials and supported devices.283. **Generate conversion commands.** Feed the AIMET model and encodings into converter/quantizer commands; keep output DLC and context-binary paths explicit.294. **Compile/profile/infer.** For local SDK, run context-binary generation and net-run with input lists. For AI Hub, submit compile/profile/inference jobs and record job URLs.305. **Check failure mode.** Distinguish missing encodings, unsupported ops, channel order mismatch, provider/runtime mismatch, and missing target libraries.3132## Boundaries3334AIMET export validation can be done locally. Target SDK execution cannot be proven unless the SDK, device/backend libraries, input list, and credentials are present. Do not claim target correctness from a successful AIMET QuantSim export alone.3536## Expected answer shape3738For deployment tasks, include the input artifact paths, target device/runtime, local SDK or AI Hub path, generated commands or API calls, expected output files, and exact credential/SDK assumptions.