NEWAI chat: ask your fleet anything, in plain language. Chat with your fleet Read more →
How-to · Updates

Deploy a TensorRT model to Jetson: build engines on each Jetson and update them remotely

A TensorRT engine only loads on the TensorRT version and the kind of GPU that built it, and NVIDIA's hardware-compatibility mode isn't supported on JetPack. So ship the ONNX model, build the engine on each Jetson with trtexec (--onnx, --saveEngine, plus --fp16 on JetPack 6), name the engine after the module, L4T and TensorRT version, and switch to it only after it loads. With PhysicalFleet, a release deploys the ONNX file, builds the engine on every Jetson in a script step, restarts your service and checks it, rolls out in phases with a health gate, and points back to the previous model wherever a step fails.

What you need

  • Your model as ONNX, exported once from PyTorch or your training framework. This is the file you ship. For one model end to end (export, build, run a YOLO detector), see YOLO with TensorRT on Jetson; this guide is about doing it on a fleet.
  • Jetsons on one JetPack line if you can: 6.2.x ships TensorRT 10.3, 7.2 and 7.2.1 ship 10.16.2, 7.2.2 ships 11.4.1. Each line builds differently (below).
  • trtexec on each Jetson, at /usr/src/tensorrt/bin/trtexec with the JetPack TensorRT packages, or in your container.
  • NVMe space and some swap for the build on 4 GB and 8 GB modules.
  • For a fleet: a PhysicalFleet account (free for up to 3 machines) and one test Jetson of each module type you ship.

Why a TensorRT engine isn't a file you can copy

Building an engine is not a conversion. TensorRT parses the network, fuses layers, then times candidate kernels for each layer on the GPU in front of it and keeps the fastest. The result, the plan file, is compiled code for that GPU and that TensorRT build. NVIDIA's engine compatibility page says it plainly: by default engines are "compatible only with the version of TensorRT used to build them" and "only compatible with the type of device where they were built", on the same OS and CPU architecture.

What that means on a Jetson fleet:

  • The TensorRT build number counts. On a JetPack 6.2.1 Orin Nano, an engine built with the host's TensorRT 10.3.0.30 was refused by 10.3.0.26 in a container: "The engine plan file is not compatible with this version of TensorRT". A point release through apt can move the number under you.
  • Module types count. AGX Orin, Orin NX and Orin Nano all report CUDA compute capability 8.7, but their GPUs have different core counts and clocks, and TensorRT picked its kernels by timing one of them. Load an engine on another model and TensorRT warns that using a plan file across device models "is likely to affect performance or even cause errors".
  • Hardware compatibility is off the table. TensorRT can build engines that run on any Ampere-or-newer GPU, at some cost in speed, but NVIDIA states this "is not supported on NVIDIA DriveOS or NVIDIA JetPack".
  • Version compatibility only goes forward. An engine built with --versionCompatible embeds a lean runtime and loads on newer TensorRT of the same major version, and TensorRT 10 engines on TensorRT 11. It never loads on an older runtime, it can be slower, and NVIDIA says to deserialize such plans only from trusted sources. A JetPack major upgrade is a reflash anyway, so most fleets rebuild.

So the portable artifact is the ONNX file, and the engine is a cache that each Jetson builds for itself. Everything below follows from that.

Ways to get engines onto many Jetsons

MethodBest forDownsides on a Jetson fleet
Build once, copy the engineIdentical Jetsons on an identical imageBreaks on the first apt upgrade or second module type, sometimes with a warning instead of an error
An engine per module type, built on reference Jetsons in CIFleets with strict image controlA bench Jetson per module and per TensorRT build to keep in sync with the field
The app builds the engine at start when it is missingSmall fleetsThe robot is down for the whole build, and a failed build leaves no previous engine to fall back to
Ship ONNX, build as an update step, then switchAny fleetNeeds an update tool that runs the build, checks the result and can switch back
An agent with a relay, which is how PhysicalFleet worksJetsons behind NAT and cellular, mixed modulesAn account with the provider, and the agent on each Jetson

Step 1: Work out each Jetson's engine key

An engine is valid for one combination: the model version, the module, the L4T release, the exact TensorRT build, the precision and, for DLA, the core. Put all of it in the file name, so an app never loads an engine built for something else, and a lookup on disk tells you whether a rebuild is due:

MODULE=$(tr -d '\0' < /proc/device-tree/model | tr ' ' '-')     # e.g. NVIDIA-Jetson-Orin-NX...
L4T=$(head -1 /etc/nv_tegra_release | sed 's/# R\([0-9]*\) (release), REVISION: \([0-9.]*\).*/\1.\2/')
TRT=$(dpkg-query -W -f='${Package} ${Version}\n' 'libnvinfer*' | awk '$1 ~ /^libnvinfer[0-9]+$/ {print $2}')
KEY="detector-2.4.1.${MODULE}.r${L4T}.trt${TRT%%-*}.fp16.engine"; echo "$KEY"

Also note whether the module has a DLA (step 3) and its power mode (sudo nvpmodel -q): an engine built in a 7 W mode was timed with low clocks. Build in the mode the robot runs in.

Step 2: Build the engine on the Jetson with trtexec

On JetPack 6.2.x (TensorRT 10.3) the precision flags still exist. Build into a temporary name and rename it when the build has finished, so a cut-off build never leaves a half-written engine where the app looks:

cd /mnt/nvme/models/detector/2.4.1
/usr/src/tensorrt/bin/trtexec \
  --onnx=detector.onnx \
  --saveEngine=$KEY.tmp \
  --fp16 \
  --timingCacheFile=/mnt/nvme/models/trt-timing.cache \
  --memPoolSize=workspace:1024 \
  --skipInference
mv $KEY.tmp $KEY

/usr/src/tensorrt/bin/trtexec --loadEngine=$KEY     # loads it and runs a benchmark: check GPU Compute Time
  • --timingCacheFile saves kernel timings, so the next build on that Jetson finishes sooner. Keep one cache per module and TensorRT build, like the engine.
  • --memPoolSize=workspace:1024 caps the builder's scratch memory (MiB). The GPU shares RAM with your running app, and an uncapped build can wake the out-of-memory killer.
  • --int8 needs calibration data or a model with quantize/dequantize nodes, or accuracy won't match your PC.
  • Dynamic shapes need --minShapes, --optShapes and --maxShapes; make the robot's real batch size the optimum.
  • Absolute paths in --saveEngine: the shell doesn't expand ~ after =.

TensorRT 11, the version in JetPack 7.2.2 (11.4.1), removed every precision-enabling builder flag: --fp16, --bf16, --int8 and --best make trtexec exit with an error, and strong typing is always on. Precision now comes from the ONNX file itself: run NVIDIA Model Optimizer's AutoCast (modelopt.onnx.autocast) for mixed FP16, or its quantization (modelopt.onnx.quantization) with calibration data for INT8, once on your PC, and ship that ONNX. Convert it with NVIDIA's commands from the TensorRT 10.x to 11.x migration guide:

pip3 install --no-cache-dir --extra-index-url https://pypi.nvidia.com nvidia-modelopt[all]
python -m modelopt.onnx.autocast --onnx_path model.onnx --output_path model_fp16.onnx
python -m modelopt.onnx.quantization --onnx_path model.onnx --calibration_data data.npz --output_path model_quantized.onnx

The build line then loses its precision flag. If a removed flag is still on the command line, trtexec prints an unknown-option error, so check on one JetPack 7.2.2 Jetson before you release:

# JetPack 7.2.2: the ONNX already carries its precision
/usr/src/tensorrt/bin/trtexec --onnx=detector.fp16.onnx --saveEngine=$KEY.tmp \
  --timingCacheFile=/mnt/nvme/models/trt-timing.cache --skipInference

A fleet on both lines therefore ships two ONNX files per model version, or one converted ONNX that both build from. Test that the converted file still builds and scores the same on JetPack 6 before you rely on it there.

Step 3: Decide about the DLA, per module and per JetPack

The Deep Learning Accelerator is a separate inference engine next to the GPU. It saves GPU time and power for layers it supports, and the rest fall back to the GPU when you allow it. Whether you can use it depends on two things:

ModuleDLA coresJetPack 6.2.x (TensorRT 10.3)JetPack 7.2, 7.2.1 (per NVIDIA's TensorRT 11.4.1 notes)JetPack 7.2.2 (TensorRT 11.4.1)
AGX Orin (32GB, 64GB)2YesNo: Cannot create DLA engineYes
Orin NX 16GB2YesNoNot listed: NVIDIA's notes name AGX Orin only
Orin NX 8GB1YesNoNot listed
Orin Nano 4GB, 8GBNoneGPU only: the Orin Nano has no DLA
ThorNoneGPU only
# JetPack 6.2.x: one engine per DLA core, layers the DLA can't run go to the GPU
/usr/src/tensorrt/bin/trtexec --onnx=detector.onnx --useDLACore=0 --fp16 --allowGPUFallback \
  --saveEngine=detector-2.4.1.${MODULE}.r${L4T}.trt${TRT%%-*}.dla0.engine --skipInference

Check NVIDIA's DLA documentation for your TensorRT version on whether an engine is tied to the core it was built for; if it is, a module with two cores needs two engines when your app uses both. On TensorRT 11.4.1, DLA builds use strongly typed networks, and NVIDIA lists a known issue where DLA networks mixing INT8 and FP16 can take more GPU time than the same network built with 10.3. Measure before you move a DLA workload from JetPack 6 to 7.2.2. In PhysicalFleet the Hardware tab's NVIDIA section lists the GPU and its DLAs, so you can tag the Jetsons that have them.

Step 4: Make the switch atomic and reversible

Keep each model version in its own folder and point a current link at the one in use. The app loads current/<its engine key> at start. Switching is renaming a link, and going back is pointing it at the previous folder, which still has its engine:

/mnt/nvme/models/detector/
  2.4.0/  detector.onnx  detector-2.4.0.<key>.engine
  2.4.1/  detector.onnx  detector-2.4.1.<key>.engine
  current -> 2.4.1

ln -s 2.4.1 current.new && mv -T current.new current     # atomic swap of the link
sudo systemctl restart detector                             # the app loads the new engine

Two Jetson points. The build uses the GPU and shared memory your app is using, so build while the robot is idle, not mid-task. And measure the build time on your slowest module in its production power mode: that number sets your update timeout.

Step 5: Ship model, build and switch as one PhysicalFleet release

Install the agent on each Jetson from Fleet › Add machine and tag it with its module and line (--tags jetson,orin-nano,jp6). The Hardware tab then shows the module, JetPack, L4T, power mode, DLA count and the installed TensorRT, CUDA and cuDNN versions.

In OTA Updates › Releases, press New release (detector, version 2.4.1) and build the pipeline:

  1. AI model block: the ONNX file from a URL, an upload or From Hugging Face (a model, a revision and only the files you need). It is unpacked into <models folder>/2.4.1 and switched in by pointing current at it; two versions are kept by default. Files are pinned by SHA-256 and downloads resume after interruptions, which matters on cellular. The block switches current as soon as the files are in place, before your script has built the engine: if your service can restart during the build (a crash, a power cut), use a Files block for the download instead and let your script do the atomic swap in Step 4 as its last command, with an undo command that points the link back.
  2. Command or script block: a bash script that computes the engine key and runs trtexec into the new folder, writing to a temporary name and renaming at the end, then trtexec --loadEngine to prove it loads. Set its Timeout above your slowest module's build (default 600 seconds, up to 7,200). Because it renames at the end, it is safe to repeat: mark it safe to run again, so a power cut mid-build reruns it instead of rolling back. Use Runs on with tags to give AGX Orin units the DLA variant and JetPack 7.2.2 units the flagless build.
  3. A linked restart of your service (or ROS launch), then Wait & check: an HTTP endpoint that reports the loaded model version, or the ROS topic your detector publishes coming back at its rate.

If the build fails, runs out of time or the check doesn't pass, the release rolls back on that Jetson: completed steps are undone in reverse, current points back at 2.4.0, and the restart is undone last so the service comes back on the old engine. Press Preview on a machine on one Jetson per module first: nothing changes, and it shows which blocks run or are skipped there and why. Then Publish.

For a change you can't judge by "it loads", such as FP16 to INT8, the AI model block can shadow-test first: your app runs the new model next to the current one on the same inputs, and the release switches only if they agree enough.

Step 6: Roll out by module, with the health gate

Press Roll out. Start with one Jetson of each module type (filter by tag), then use Canary, then careful for the rest. Under Before starting, add a maintenance window so builds run when robots are idle, and free disk space for the new folder; Download ahead while waiting fetches the ONNX file before the window opens. A Jetson mid-task can still hold the update with pf busy.

Turn on the health gate and set On a regression, install to the previous release. After each phase it compares updated Jetsons with ones not updated yet: errors, new issues, ROS topic rates and inference time. A slower engine shows up, for example, as a detection topic publishing at a lower rate. TensorRT engines are discovered automatically, but per-call timing needs your inference call wrapped with pf.instrument_policy, as the NVIDIA Jetson best practices show. A halted rollout installs the previous release on the Jetsons that got the new one.

What goes wrong with engines in the field

FailureWhat you seeHow the release pattern handles it
An apt point release changes the TensorRT buildAfter the next restart the app can't deserialize its engineShip the L4T upgrade and the engine rebuild in the same release, with a check after. NVIDIA library versions in Debugging › Investigate › Parameters shows which Jetsons moved
JetPack 7.2.2 on some unitsThe old build script fails on --fp16The step fails and that Jetson rolls back to its previous model. Give 7.2.2 units their own script with Runs on
Build out of memory on a 4 GB or 8 GB moduletrtexec killed, no engineThe OOM kill appears in the machine's events, the release rolls back. Cap the workspace, add swap on NVMe, build in the idle window
Build slower than the timeoutStep killedRolled back; raise the step's Timeout from your bench measurement
Power cut mid-buildHalf-written fileThe temporary name never becomes the engine; the step reruns after boot or the release rolls back
Engine loads but is slower or less accurateRobots fall behindThe health gate stops the rollout and installs the previous release; a shadow test catches accuracy before the switch
DLA not available (Orin Nano, JetPack 7.2 and 7.2.1)Cannot create DLA engineRuns on by tag keeps the DLA build on modules and lines that have it
A Jetson offline for daysStill on the old modelIt builds and switches when it reconnects, within 7 days by default

Reference: TensorRT on each JetPack line, as of December 2026

JetPackL4TTensorRTPrecision in trtexecDLA
6.2, 6.2.1, 6.2.2, 6.2.336.4.3 to 36.5.210.3--fp16, --int8, --bestAGX Orin, Orin NX
7.2, 7.2.139.2, 39.2.110.16.2Flags still accepted in 10.xNot available
7.2.239.2.211.4.1Removed: precision from the ONNX (Model Optimizer)AGX Orin, per NVIDIA's notes

TensorRT 11 doesn't load TensorRT 8.x engines, and NVIDIA says not to install the TensorRT 11.5.0 packages on a Jetson. Moving between JetPack lines is a reflash (see upgrade JetPack), followed by a rebuild of every engine.

Seeing models across the fleet

The machine's Models tab lists, with no code, the processes that run ML on that Jetson, including ones that load TensorRT, with their model files and fingerprints, which change when the weights change. Use it to see what a Jetson actually loaded. Each machine's Releases tab shows every model release that ran there, with each step's output.

Before a rollout, check Debugging › Investigate › Parameters: Jetsons whose JetPack version or NVIDIA library versions differ from the rest need a different build script, or an L4T release first.

Common errors and fixes

IRuntime::deserializeCudaEngine: Error Code 6: API Usage Error (The engine plan file is not compatible with this version of TensorRT, expecting library version 10.3.0.26 got ..)

Why: The engine was built with a different TensorRT build than the one loading it. Even a patch difference (10.3.0.26 vs 10.3.0.30) is refused. Common after an apt upgrade, or with an engine built in a container whose TensorRT differs from the host's.

Fix: Rebuild the engine on the Jetson with the TensorRT that will load it, and put the TensorRT build in the engine's file name so a stale engine is never picked up.

WARNING: [TRT]: Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.

Why: The engine records the device it was built on, and the loading device doesn't match it, for example an engine built on an AGX Orin loaded on an Orin NX. Some users also report it when building and loading on the same Jetson.

Fix: Build one engine per module type, ideally on each Jetson. If you built on the same unit and still see it, rebuild with the same TensorRT the app uses and compare GPU Compute Time with trtexec --loadEngine.

Serialization assertion stdVersionRead == kSERIALIZATION_VERSION failed.Version tag does not match. Note: Current Version: 239, Serialized Engine Version: 236

Why: The plan's serialization format comes from another TensorRT version. On a Jetson this happens when one tool (DeepStream, a container, a pip wheel) builds the engine and another loads it with a different TensorRT.

Fix: Build and load with the same TensorRT. Check what each side uses with dpkg-query -W 'libnvinfer*' on the host and inside the container.

Cannot create DLA engine, 0 not available

Why: TensorRT can't use DLA core 0. On an Orin Nano there is no DLA. On AGX Orin and Orin NX with JetPack 7.2 or 7.2.1, DLA isn't available with the unified driver; NVIDIA brought it back for AGX Orin in JetPack 7.2.2.

Fix: Drop --useDLACore on modules and lines without a DLA, or move AGX Orin units to JetPack 7.2.2. Keep DLA builds to the right Jetsons with tags.

[E] Saving engine to file failed.
[E] Engine set up failed

Why: The engine was built but couldn't be written: the folder doesn't exist or isn't writable, the disk is full, or the path in --saveEngine starts with ~, which the shell doesn't expand after =.

Fix: Use an absolute path on the NVMe, check free space with df -h, and create the version folder before the build.

Checklist
  • ONNX is the artifact you ship; engines are built on each Jetson
  • Engine file names carry model version, module, L4T, TensorRT build and precision
  • Build script written for the JetPack line: precision flags on 6.2.x, Model Optimizer ONNX on 7.2.2
  • DLA builds only on modules and JetPack releases that support them
  • Builds write to a temporary name, then rename, with a timing cache per module
  • Versioned model folders with a current link, previous version kept
  • Release previewed on one Jetson per module, rolled out with the health gate and rollback release set
How PhysicalFleet helps

PhysicalFleet OTA updates turn the build-on-device pattern into one release: the AI model block delivers the ONNX file (from a URL, an upload or Hugging Face) into a new version folder, a script step builds the engine for each Jetson, your service restarts and a check confirms the new model answers. Where anything fails, that Jetson goes back to its previous model and engine on its own, and rollouts stop themselves when the health gate sees updated Jetsons getting slower.

Observability shows which Jetsons run which model files, and which have a different JetPack or TensorRT version from the rest, so you know which units need a rebuild before you roll anything out. It is free for up to 3 machines; see pricing.

See PhysicalFleet OTA updates

Written for PhysicalFleet as of December 5, 2026.

FAQ

TensorRT on many Jetsons: common questions

Something else? Talk to our team.

Can I copy a TensorRT engine from one Jetson to another?

Only between Jetsons of the same module type with exactly the same TensorRT build, and even then an apt upgrade breaks it. Engines are tied to the TensorRT version and the device that built them, so ship the ONNX model and build on each Jetson.

Can I build a TensorRT engine for Jetson on an x86 PC?

Not a normal engine: by default an engine runs only on the platform and type of GPU it was built on, and hardware compatibility mode is not supported on JetPack. Build on the Jetson, or on a reference Jetson of the same module and TensorRT build.

Does the Jetson Orin Nano have a DLA?

No. The Orin Nano runs inference on its GPU only; the Orin Nano has no DLA (check your module's datasheet). AGX Orin has two DLA cores, Orin NX 16GB two and Orin NX 8GB one.

Why does trtexec --fp16 fail on JetPack 7.2.2?

JetPack 7.2.2 ships TensorRT 11.4.1, which removed the precision-enabling flags --fp16, --bf16, --int8 and --best. Convert the ONNX with NVIDIA Model Optimizer (AutoCast for FP16, quantization for INT8) and build it without a precision flag.

Do I need to rebuild TensorRT engines after updating JetPack?

Yes, whenever the TensorRT build changes, which can happen in a point release through apt as well as in a major upgrade. Keep the TensorRT build in the engine's file name so the app or your update tool knows when a rebuild is due.

How long does a TensorRT engine build take on a Jetson?

It depends on the model, the module and the power mode, from minutes to much longer on a small module. Measure it on your slowest Jetson in its production power mode, and reuse a timing cache so later builds on that unit finish sooner.

How do I update a TensorRT model on many Jetsons?

Ship the new ONNX file, build the engine on each Jetson in an update step, switch only after the engine loads and a check passes, and roll out in phases with a way back. PhysicalFleet does this as one release with automatic rollback and a health gate.

From the lab bench. To the entire fleet.

Connect your first machine in minutes, develop it in the lab and run your whole fleet in production from one place.

Free for up to 3 machines · Then pay as you go