Commit 11719ae
committed
Add QNN (Qualcomm Hexagon HTP) execution-provider profile
Registers an EpCapabilities entry for the "qnn" execution provider so the
ORT-GenAI builder can target the Qualcomm Hexagon NPU (HTP backend, via the
onnxruntime-qnn QAIRT plugin), and maps "qnn" -> "QNN" in the ORT-GenAI
provider-name table.
The HTP runs a statically-shaped, QDQ-quantized graph compiled to a QNN
context binary and has no kernels for ORT contrib fused ops, so the profile
forces decomposition to the standard ONNX primitives the QNN op builders can
lower: no fused RoPE, no Skip[Simplified]LayerNorm, no PackedMHA, and no
GroupQueryAttention (empty gqa_dtypes) -- the gemma4 multimodal decoder
forgoes GQA anyway (bidirectional-vision overlay). past_present_share_buffer
is disabled since standard-Attention KV concat cannot alias a shared buffer;
fixed prefill-bucket / fixed-max-KV static shaping is applied as a separate
downstream pass before context-binary generation.
Validated by building gemma-4-12B (gemma4_unified) with
execution_provider="qnn": the graph emits pure ai.onnx (zero com.microsoft
contrib ops).1 parent c4d460f commit 11719ae
2 files changed
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
270 | 311 | | |
271 | 312 | | |
272 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
0 commit comments