TL;DR
In a public TensorRT report on Jetson AGX Thor, a 1536 × 960 stereo model took 285 seconds to build, logged success, and produced a 0 MiB engine. A CI job that checks only the command result can promote that output. A release gate must validate the artifact itself: require the expected file to exceed an explicit minimum serialized size, record a digest, deserialize it with the deployment runtime, create an execution context, run a representative input on the stated target, and check the outputs. Your build logged completion. Can you prove the artifact runs correctly on the target device?
The log contained two incompatible facts
On October 4, an engineer filed a detailed report against NVIDIA TensorRT. The same S2M2 stereo-matching graph built and ran at smaller image sizes on a Jetson AGX Thor. Above a resolution boundary, TensorRT 10.14.1 crashed during compilation. TensorRT 11.3.0 changed the symptom: the build ran to completion, but the serialized result was empty.
[I] Created engine with size: 0 MiB\n[I] Engine built in 285.128 sec.\n[E] Assertion failure: false && "Attempting to access an empty engine!"Those lines came from one run. The builder reported that it had created an engine and completed the build; the next operation established that there was no usable engine to access. At 1280 × 800, the older TensorRT version built the model. At 1536 × 960 and 1920 × 1216, the newer version produced 0 MiB. The reporter also varied workspace limits, precision, and builder optimization levels. That makes the issue useful as a CI lesson even before NVIDIA identifies the compiler defect: process completion did not imply artifact validity.
Source: the public NVIDIA/TensorRT issue #4866. The numbers above describe that reporter’s configuration and should not be generalized into a TensorRT-wide resolution limit.
Exit status validates a process, not a release
Build pipelines often treat model compilation like ordinary source compilation: run a command, fail on a non-zero exit code, upload the named output. That contract is too weak for a hardware-specific model artifact. The command can complete while producing a zero-byte file, a truncated file, an artifact for a different runtime, or an engine that loads but fails on its first real input.
NVIDIA’s runtime contract makes the next check explicit. TensorRT’s deserializeCudaEngine API returns an engine, or a null pointer if deserialization fails. NVIDIA also documents serialized engines as executable artifacts. Its security guidance recommends deserializing only engines you built or received through a trusted, authenticated channel. Those are release properties. Neither is established by the builder saying “success.”
The gate belongs after serialization. The output file—not the build log—is what the deployment system will load.
A minimum artifact contract for device CI
A useful gate should reject the artifact at the earliest failed invariant and retain enough evidence to explain the verdict later. For a TensorRT plan headed to Jetson, the minimum contract is:
- The expected file exists and exceeds a minimum serialized size.Set an explicit floor appropriate to the artifact. This is only a first guard, but it catches obviously empty or truncated outputs before upload; deserialization and inference remain decisive.
- The artifact is identified. Record a SHA-256 digest alongside the source model revision, build configuration, TensorRT version, CUDA version, and target device.
- The deployment runtime can deserialize it. Run the check with the runtime stack that will load the engine. Treat a null result as a hard failure.
- An execution context can be created. Deserialization proves the container is readable. It does not prove the engine is ready to execute.
- One representative inference completes on the stated target.Use a production-shaped input, not just the smallest shape in the optimization profile. The failure in issue #4866 appeared only after the input crossed a resolution boundary.
- The outputs satisfy structural and numerical checks. Confirm tensor names, shapes, dtypes, finite values, and a task-relevant tolerance or behavioral expectation. “It executed” is still weaker than “it produced an acceptable result.”
This sequence separates three claims that pipelines often collapse: the build process completed, the artifact is loadable, and the model works on the target. Each needs its own evidence.
Test the dimensions that can change the artifact
A single smoke shape would not have characterized this failure. The public report placed the boundary between 1.024 and 1.475 megapixels. The graph and export path stayed the same while the input dimensions changed. That is a reminder to derive the test matrix from deployment profiles: minimum, typical, and maximum supported shapes; each precision mode you ship; and the exact runtime-device combination named in the release manifest.
The matrix does not need to benchmark every combination on every commit. It does need to exercise every artifact class that can reach production. A fast pull-request gate can validate the release candidate at representative boundaries; a deeper scheduled run can widen the shape and input corpus. What cannot happen is promoting an engine that no target-device job has loaded.
What EdgeGate can—and cannot—claim on Jetson
EdgeGate’s Jetson path is currently for model correctness and evidence: Behavioral Gate runs GGUF models through llama.cpp/CUDA on real Jetson hardware, compares results with a frozen reference, and emits a signed verdict. Jetson performance and layer-placement profiling are not wired today. We therefore would not label a TensorRT engine-size check as an EdgeGate performance gate, or claim that EdgeGate currently validates TensorRT plan files.
The release principle is the same one we enforce: test the deployable artifact on the target that will run it, fail the merge when a hard invariant breaks, and preserve the inputs, environment, checks, and verdict as traceable evidence. That turns “the build completed” into a much narrower—and more honest—statement.
Start with the hardware path you can verify.
Shipping a supported Snapdragon artifact through Qualcomm AI Hub? Run EdgeGate’s NPU-residency check before merge to flag reported CPU fallback and unsupported-operator risk on that AI Hub target.
Run the NPU residency check →Related
© 2026 EdgeGate. Powered by Qualcomm AI Hub.