Closed ukc-work closed 1 week ago
Unfortunately, at the moment, our export scripts support context binary only for non-Android devices. If you choose a Windows device (Snapdragon X Elite CRD), we compile to a qnn .bin.
All of our models can be compiled to .bin
via AI Hub, but you would need to make a code change & install ai_hub_models
from source:
In base_model.py
, you would need to replace the if statement + block on lines 189-202 with
target_runtime_flag = "qnn_context_binary"
break
With target-runtime option as qnn, it uses .so file only. How can I use .bin file for the same model ?