Skip to main content
Some models from AI Hub are released as context binaries (.bin files) or as Deep Learning Container (.dlc) files. Context binaries contain the model, plus hardware optimizations; and can be run with Qualcomm tools that directly use the Qualcomm® AI Runtime SDK. Examples of this are Genie (to run LLMs) and VoiceAI ASR (to run voice transcription); but you can also run context binaries directly from Python using QAI AppBuilder. .dlc files are a portable representation that are converted to context binaries for your specific target at runtime.
.bin files are not portable: Context binaries (.bin) are not portable. They are tied to both the AI Engine Direct SDK version and your hardware target.

Finding supported models

Models in context binary format can be found in a few places:
  • Qualcomm AI Hub:
    1. Under ‘Chipset’, select:
      • RB3 Gen 2 Vision Kit: ‘Qualcomm QCS6490 (Proxy)’
      • RUBIK Pi 3: ‘Qualcomm QCS6490 (Proxy)’
      • IQ-9075 EVK: ‘Qualcomm QCS9075 (Proxy)’
    2. Under ‘Runtime’, select “Qualcomm® AI Runtime”.
  • Aplux model zoo:
    1. Under ‘Chipset’, select:
      • RB3 Gen 2 Vision Kit: ‘Qualcomm QCS6490’
      • RUBIK Pi 3: ‘Qualcomm QCS6490’
      • IQ-9075 EVK: ‘Qualcomm QCS9075’
Note that the NPU only supports quantized models. Floating point models (or layers) will be automatically moved back to the CPU.

Example: Inception-v3 (Python)

Here’s how you can run an image classification model (downloaded from AI Hub) on the NPU using QAI AppBuilder. Open the terminal on your development board, or an SSH session to your development board, and:
  1. Build the AppBuilder wheel with QNN bindings:
  2. Now create a new folder for the application:
  3. Create a new file context_demo.py and add:
  4. Run the example:
Great! You now have ran a model in context binary format on the NPU.