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
- Read Qualcomm SDK workflows for artifact requirements and local/remote deployment sequences.
- Run inspect_export.py on the exported model directory before target handoff.
- Use qairt_command_builder.py to generate QAIRT/QNN command lines with local paths filled in.
- Use qai_hub_qnn_job.py for a self-contained AI Hub compile/profile entry point when
qai_hubis installed and authenticated. - Read model access and credentialed evaluation for AI Hub, AWS, and credential boundaries.
Core workflow
- Validate AIMET artifacts. You need an exported
.onnxmodel and matching AIMET.encodingsfile, 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_hubcredentials 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.