TL;DR
A passing run on one phone or development kit proves one model-device cell. It does not prove the rest of your supported fleet. Build a small, explicit matrix from release targets; run the same immutable artifact and inputs in every cell; record correctness, latency, and compute-unit placement separately; and make the roll-up rule part of version-controlled release policy.
Three different questions hide behind one green check
Teams often treat “the model passed on Snapdragon” as a single fact. It is at least three:
- Could the model be compiled for this target?
- Did it produce acceptable outputs on a physical target?
- Did it execute within the latency, throughput, memory, and compute-unit policy for this release?
Those questions are related, but they are not interchangeable. A successful compile does not establish numerical correctness. Correct outputs do not establish NPU residency. One fast profile does not establish that another target in your fleet will meet the same gate.
Qualcomm AI Hub makes the distinction explicit: its documentation separates compilation, profiling on a physical device, and inference with your inputs. It also reports layer-to-compute-unit mapping, latency, and memory metrics. The API accepts a device or a list of devices for compile and inference jobs. That gives CI the raw mechanics for a matrix; your release policy still has to decide which cells are mandatory and what counts as a pass.
Start from the release contract, not the device catalog
A useful matrix is not “every device we can access.” It is the smallest set that represents what you promise to ship. Each row should have a reason to exist: a production target, a supported SKU, or a compatibility boundary that the release must preserve.
For each required target, pin enough context to make the result reviewable later:
- model artifact digest and quantization variant;
- target device or chipset identifier;
- runtime and compile options;
- input dataset or test-vector digest;
- gate thresholds and roll-up policy;
- the job identifiers and collected outputs.
Keep exploratory targets outside the blocking matrix. Otherwise a device you do not support can stop a release, and teams will eventually disable the whole check. A gate survives only when engineers can explain why every red cell matters.
Treat each cell as an independent test
The safest mental model is a Cartesian product: model variants multiplied by required devices. If you are comparing FP32 and INT8 across three deployment targets, that is six cells—not one test with six lines of output.
release_matrix:
models:
- name: fp32-reference
sha256: <artifact-digest>
- name: int8-candidate
sha256: <artifact-digest>
devices:
- <primary-production-target>
- <secondary-production-target>
- <minimum-supported-target>
policy:
required_cells: all
gates:
- numerical_correctness
- latency_budget
- npu_residencyRun identical test vectors where the model interface permits it. That keeps device comparison honest: differences then come from compilation and execution rather than from silently changing the workload. When preprocessing must differ, version that preprocessing as part of the cell configuration.
Do not collapse correctness and placement into one metric
A model can return correct outputs while part of its graph executes on the CPU. It can also stay on the accelerator and still regress after quantization. CI needs separate verdicts because the fixes are different.
- Correctness: compare device outputs against an approved reference or task-level acceptance criteria.
- Performance: evaluate only metrics the target and pipeline actually collect, using thresholds tied to the product budget.
- Residency: inspect compute-unit mapping and fail when the release requires NPU execution but the observed placement violates that rule.
The device result should say which gate failed, on which cell, against which threshold. “Matrix failed” is a roll-up; it is not a diagnosis.
Make the roll-up rule explicit
For a supported-device release matrix, the conservative default is simple: every required cell must pass. A system error is not a passing result, and a pass on the newest target does not cancel a failure on the minimum supported target.
Other policies can be valid for experiments—“any device passes” or “80% of cells pass”—but they answer a different question. Put the rule in version control beside the thresholds, and show both the overall verdict and the per-cell evidence in the pull request.
What EdgeGate gates today
EdgeGate models a run as independent model-device cells and rolls their results into one CI verdict. A pipeline can enable up to five devices per run, and a multi-model matrix is capped at 25 cells. With the strict all policy, one failed required cell blocks the merge. The run records the cell-level results so the red check points to the affected artifact and device instead of hiding the failure inside an average.
On Qualcomm targets, performance and profiling gates use Qualcomm AI Hub's physical-device jobs. The practical first step is smaller than a fleet-wide rollout: choose two or three devices that define your compatibility boundary, freeze one candidate artifact and test-vector set, and run an NPU residency check on every cell.
Run the NPU residency check
If one successful device run is carrying your whole release decision, we will help you turn it into a small, reviewable hardware matrix—without claiming support for targets you do not ship.
Request an NPU residency check →