The CI contract
Use the same model, device, runtime, and fixed input set for both checks. Then issue two verdicts: output correctness against the approved reference, and compute placement against the NPU-residency policy. A merge passes only when both verdicts are supported by evidence.
Your edge AI passed in the cloud. Can you prove it on the device? Until recently, Qualcomm AI Hub made teams answer two parts of that question through different job types. A profile job measured performance with generated data. An inference job ran uploaded inputs and returned outputs, but did not expose the same granular profile.
Qualcomm changed that in September 2026. Profiling is now enabled by default on inference jobs, real inputs can be supplied, and one inference job can return outputs from those inputs plus profiling data collected during an additional inference pass. For CI, that is a useful primitive: the outputs and placement profile share one job identity without pretending they came from the same pass.
The dangerous shortcut is to collapse those signals into one green check. Correct output does not prove NPU residency. NPU residency does not prove correct output.
The same run can fail in two independent ways
| Observed result | Correctness gate | Residency gate |
|---|---|---|
| Outputs match; one layer runs on CPU | PASS | FAIL |
| All reported layers run on NPU; output exceeds tolerance | FAIL | PASS |
| Outputs match; placement detail is missing | PASS | UNKNOWN |
| Outputs and placement satisfy policy | PASS | PASS |
The first case is the silent-fallback failure: the model remains numerically acceptable while a release-critical operator leaves the NPU. The second is the quantization failure: the deployment path reaches the intended accelerator but changes the result beyond the model owner's tolerance. Either can ship behind a single undifferentiated “device test passed” badge.
Bind both gates to the same inputs
A combined inference-and-profile job makes correlation possible, but only if the run identity is explicit. The evidence record should pin at least the source model hash, compiled artifact identity, target device, runtime and version, input-set hash, reference-output version, and gate policy.
run:
model_sha256: 6e8c...f91a
device: Samsung Galaxy S23
runtime: QAIRT
input_set_sha256: b44a...901c
gates:
correctness:
metric: task_accuracy_delta
operator: gte
threshold: -0.01
placement:
metric: cpu_layer_count
operator: eq
threshold: 0
placement_gpu:
metric: gpu_layer_count
operator: eq
threshold: 0The exact correctness metric depends on the model. A classifier might gate top-1 accuracy or per-class recall. A detector might gate mAP on a pinned validation slice. A regression model might use a domain tolerance rather than raw tensor equality. The important point is that the tolerance is approved before the candidate run and evaluated against the same input set.
Do not confuse profiling iterations with accuracy samples
Qualcomm documents that an inference job runs repeated iterations for stable-state latency and an additional profiled pass for per-layer data. Those repetitions answer a performance question. They do not expand the statistical coverage of your accuracy evaluation.
If the input set contains one image, 100 timing iterations still test one image. Your correctness gate needs a representative, versioned evaluation set. Your performance gate needs stable measurements. The job may collect both, but the denominators remain different.
Treat missing evidence as UNKNOWN
Profiling can be disabled, and Qualcomm notes that compute-unit and per-layer metrics are then unavailable. That state must not become zero CPU layers or 100% NPU by default. If NPU residency is a release requirement, absent placement evidence is UNKNOWN and the merge blocks.
The same rule applies to correctness. A successful device job without downloadable outputs, a reference mismatch, or an input-set hash mismatch is not a correctness pass. It is an incomplete comparison.
A merge rule engineers can audit
Keep the final policy mechanical:
- Run the compiled candidate on the selected Snapdragon device with a pinned input set.
- Compare on-device outputs with the approved reference using the model-specific tolerance.
- Read the profiled layer placement and require both
cpu_layer_count == 0andgpu_layer_count == 0when policy requires every reported layer on NPU. - Record the two verdicts separately; preserve UNKNOWN instead of coercing missing data.
- Bind the verdicts, thresholds, artifact hashes, device, runtime, inputs, and commit into the reviewable evidence bundle.
This is the CI policy Qualcomm's combined inference job now enables: real-device measurements become explicit merge gates, and the result stays tied to the artifact and policy that produced it. The combined job reduces orchestration. The two-gate model keeps the release claim honest.
Primary sources
- Qualcomm AI Hub release notes: the September 28, 2026 unification of profile and inference jobs.
- Running Inference & Profiling: real inputs, downloadable outputs, repeated latency measurement, and per-layer compute-unit data.
- Qualcomm AI Hub FAQ: real-device execution and the transition from profile jobs to inference jobs.
Run the NPU residency check
See how correctness and reported compute placement can become separate, reviewable Snapdragon release gates.
Check NPU residency