NEWAI chat: ask your fleet anything, in plain language. Chat with your fleet Read more →
NVIDIA Jetson · Build

How to run YOLO with TensorRT on a Jetson

Install Ultralytics on the Jetson, then export on the device itself: yolo export model=yolo26n.pt format=engine quantize=16 builds an FP16 TensorRT engine, and yolo predict model=yolo26n.engine source=0 runs it on a USB camera. In Ultralytics' benchmarks on a Jetson Orin Nano Super, YOLO26n took 4.57 ms per image as a TensorRT FP16 engine against 15.60 ms in PyTorch.

Applies to Orin Nano, Orin Nano Super, Orin NX, AGX Orin · JetPack 6.2.x and 7.2.xChecked December 5, 2026

What TensorRT does to a YOLO model, and why the engine belongs to one device

A YOLO checkpoint (yolo26n.pt) is a PyTorch graph: general, portable, and slow on a Jetson, because PyTorch runs each layer as a separate GPU call in full precision. TensorRT is NVIDIA's inference compiler. Ultralytics first exports the model to ONNX, and TensorRT's builder then turns that graph into an engine: it fuses layers (a convolution, its batch norm and its activation become one kernel), picks the precision of each layer, and for every layer times several candidate GPU kernels, called tactics, on the GPU it is running on, keeping the fastest. The result is serialized into a plan file, the .engine.

That last part is why an engine is not portable. It holds kernels chosen and timed for one GPU, in the format of one TensorRT version. Ultralytics says it directly: rebuild the engine when you change the GPU, the TensorRT version or the JetPack release, and even Orin modules with the same architecture are "not an automatic portability guarantee". An engine built on your RTX workstation won't load on a Jetson, an engine built on JetPack 6 won't load after an upgrade to JetPack 7, and an engine built on an AGX Orin should be validated before you trust it on an Orin Nano. The safe habit: export on the Jetson itself, with the TensorRT that its JetPack installed.

Precision is the other lever. FP32 keeps the model as trained. FP16 halves the size and roughly halves the work with almost no accuracy loss: in Ultralytics' Orin Nano Super run, YOLO26n scored 0.4800 mAP50-95 as an FP16 engine against 0.4790 in PyTorch. INT8 goes further, but it needs calibration: TensorRT runs real images through the model to learn the value range of each tensor, and if those images don't look like what your camera sees, accuracy drops. The same run shows INT8 at 0.4490. Start with FP16, and only use INT8 when you need the extra speed and have calibration images from your deployment.

What you need, and which TensorRT your JetPack has

  • An Orin module: Orin Nano 4GB or 8GB (including the Orin Nano Super developer kit), Orin NX 8GB or 16GB, or AGX Orin. The same steps work on all of them.
  • JetPack 6.2.x or 7.2.x with the full SDK (sudo apt install nvidia-jetpack), which brings TensorRT, its Python bindings (python3-libnvinfer) and trtexec (package libnvinfer-bin, installed at /usr/src/tensorrt/bin/trtexec).
  • A camera: a USB (UVC) webcam at /dev/video0, or a CSI camera on the carrier board's camera connector.
  • A few GB free for PyTorch, Ultralytics and the export. An NVMe SSD helps (boot from NVMe).
  • A working CUDA PyTorch, which Ultralytics needs for export and inference. If you don't have one yet, follow how to install PyTorch on a Jetson first, or use the Docker image below.

The TensorRT version decides more than you'd expect: whether DLA works, which trtexec flags exist, and whether Ultralytics' exporter accepts it. As of December 2026:

JetPackTensorRTtrtexec precision flagsDLA through TensorRTUltralytics export
6.2.x (L4T 36.4.3 to 36.5.2)10.3--fp16, --int8Orin NX and AGX OrinSupported. Known issue: INT8 with NMS-free or embedded NMS output on TensorRT 10.3 (see Step 4)
7.2, 7.2.1 (L4T 39.2, 39.2.1)10.16.2--fp16, --int8None: NVIDIA lists TensorRT 10.7 as the last 10.x release with DLA, and Orin gets it back only with TensorRT 11.4.1Supported (JetPack 7 needs TensorRT 10.15 or newer, below 11)
7.2.2 (L4T 39.2.2)11.4.1Removed: TensorRT 11 networks are strongly typed, precision comes from the modelAGX Orin only, per NVIDIAUltralytics doesn't use TensorRT 11 on JetPack yet: on JetPack 7 it requires TensorRT 10.15 or newer and below 11, and tries to pip-install one when it finds 11

Check yours:

cat /etc/nv_tegra_release                                  # R36 = JetPack 6, R39 = JetPack 7.2.x
python3 -c "import tensorrt; print(tensorrt.__version__)"  # the TensorRT Python bindings
dpkg-query -W 'libnvinfer*'                                # every TensorRT package and its version
apt-cache policy tensorrt                                  # installed vs available

If you are on JetPack 7.2.1 and depend on Ultralytics' exporter or on DLA through TensorRT 10, read the table before running sudo apt dist-upgrade to 7.2.2: that upgrade moves TensorRT from 10.16.2 to 11.4.1.

The ways to run YOLO with TensorRT on a Jetson

RouteBest forTrade-offs
Ultralytics Docker image (ultralytics/ultralytics:latest-jetson-jetpack6)The fastest start on JetPack 6: PyTorch, TensorRT bindings and Ultralytics already matchNo image is validated for JetPack 7.2 yet; images are large
Ultralytics, installed nativelyDevelopment on the device, Python apps, JetPack 7.2You match PyTorch, torchvision and onnxruntime-gpu to your JetPack yourself
ONNX, then trtexecC++ apps, DeepStream, other model families, full control over the buildPre- and post-processing (letterboxing, decoding boxes) are yours to write
DeepStreamSeveral camera streams with hardware decoding, tracking and analytics in one pipelineA framework to learn; each DeepStream release targets a specific JetPack (7.1 on JetPack 6.2.x, 9.1 on JetPack 7.2.x)
DLA (Orin NX, AGX Orin)Offloading a model from the GPU at lower powerAvailability depends on the TensorRT version (table above); layers DLA can't run fall back to the GPU

Step 1: Set the power mode and check the clocks

Benchmark numbers mean nothing without the power mode next to them. A Jetson in a low power mode, or one throttling because it is hot, runs the same engine much slower. Before you measure anything:

sudo nvpmodel -q          # the mode in effect
cat /etc/nvpmodel.conf | grep POWER_MODEL   # the modes this module offers, with their ids
sudo jetson_clocks        # pin CPU, GPU and memory clocks at the mode's maximum

Be careful with copy-pasted sudo nvpmodel -m 0. Mode ids differ per module and flash configuration. On an Orin NX or AGX Orin, mode 0 is MAXN (or MAXN_SUPER), the top mode. On an Orin Nano 8GB flashed with the Super configuration, mode 0 is 15W, mode 1 is 25W and mode 2 is MAXN_SUPER. Read the ids from /etc/nvpmodel.conf. The whole story, including what MAXN_SUPER needs, is in Super mode and nvpmodel.

Step 2a: JetPack 6: the Ultralytics Docker image

t=ultralytics/ultralytics:latest-jetson-jetpack6
sudo docker pull $t && sudo docker run -it --ipc=host --runtime=nvidia $t

--runtime=nvidia gives the container the Jetson's GPU, and --ipc=host gives PyTorch enough shared memory for its data loaders. Add --device /dev/video0 for a USB camera and -v $HOME/models:/models to keep exported engines outside the container: an engine built in the container belongs to the TensorRT inside that image, so keep the engine and the image version together.

Ultralytics also lists latest-nvidia-arm64 for JetPack 7.1 on Thor, for PyTorch work only, and says JetPack 7.2 on Thor or Orin still needs separate container validation. On JetPack 7.2, install natively.

Step 2b: Install Ultralytics natively

Use a virtual environment created with --system-site-packages, so it can import the TensorRT Python bindings JetPack installed into the system Python. Without that flag, import tensorrt fails inside the venv and the export stops. Install PyTorch first, then Ultralytics: pip doesn't replace a torch that already satisfies Ultralytics' requirement, so you avoid downloading a PyTorch you'd throw away.

JetPack 7.2 (Python 3.12):

sudo apt update && sudo apt install -y python3-pip python3-venv
python3 -m venv --system-site-packages ~/venvs/yolo
source ~/venvs/yolo/bin/activate
pip install -U pip
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu130
pip install ultralytics
# only if you will run .onnx models with ONNX Runtime on the GPU:
pip install https://github.com/ultralytics/assets/releases/download/v0.0.0/onnxruntime_gpu-1.24.0-cp312-cp312-linux_aarch64.whl

JetPack 6.2 (Python 3.10):

sudo apt update && sudo apt install -y python3-pip python3-venv
python3 -m venv --system-site-packages ~/venvs/yolo
source ~/venvs/yolo/bin/activate
pip install -U pip
pip install torch torchvision --index-url https://pypi.jetson-ai-lab.io/jp6/cu126
pip install ultralytics
# optional, for ONNX Runtime on the GPU:
pip install https://github.com/ultralytics/assets/releases/download/v0.0.0/onnxruntime_gpu-1.23.0-cp310-cp310-linux_aarch64.whl

Ultralytics' own JetPack 6.1 instructions use its hosted torch 2.10.0 and torchvision 0.25.0 wheels plus the cuDSS library; the PyTorch guide covers both routes and the missing-library errors. Then check that the pieces line up:

python3 -c "import torch, torchvision, tensorrt; print(torch.__version__, torch.cuda.is_available(), torchvision.__version__, tensorrt.__version__)"
yolo checks

You want True for CUDA and a TensorRT version that matches the table above. A plain PyPI pip install onnxruntime-gpu is not the same as the wheels above: Ultralytics notes that PyPI's ARM64 wheels don't replace the device-specific packages for every JetPack release.

Step 3: Export an FP16 TensorRT engine

As of December 2026 the newest model in Ultralytics' docs is YOLO26, in sizes n, s, m, l and x. On the Jetson:

yolo export model=yolo26n.pt format=engine quantize=16   # writes yolo26n.engine (and yolo26n.onnx)
yolo predict model=yolo26n.engine source='https://ultralytics.com/images/bus.jpg'

Or from Python:

from ultralytics import YOLO
model = YOLO("yolo26n.pt")
model.export(format="engine", quantize=16)
trt_model = YOLO("yolo26n.engine")
results = trt_model("https://ultralytics.com/images/bus.jpg")

quantize=16 replaces the older half=True (and quantize=8 replaces int8=True); Ultralytics marks the old flags deprecated. The export options that matter on a Jetson:

OptionWhat it doesOn a Jetson
imgszInput size, default 640Export at the size you will run. A smaller size (480, 320) is much faster if your objects are large enough in the frame
batch, dynamicFixed batch, or a range of batch sizes and image sizesdynamic=True needs batch as the maximum, for example batch=4 for four cameras. The engine then accepts sizes from 32 px up to twice imgsz
workspaceCap in GiB on the memory TensorRT uses while buildingLeave it unset unless the build runs out of memory next to your other apps; the build shares RAM with everything else
nmsRaw output (default), embedded NMS (True) or YOLO26's NMS-free head (False)With nms=True, conf, iou, max_det and agnostic_nms are fixed at export
deviceGPU by default, or dla:0 / dla:1See Step 5

The build takes a while on a Jetson, because TensorRT times its candidate kernels on the device. Do it once per model, power mode family and JetPack version, and keep the engine. The first few inferences on a fresh engine are slow too, so warm it up before you measure. On JetPack 7.2.2, remember the table above: Ultralytics will not build with the system TensorRT 11 and tries to install a TensorRT 10.x wheel into your environment, so the engine ends up tied to that wheel. Pin it with the rest of your Python dependencies, or stay on 7.2.1 for Ultralytics work until Ultralytics supports TensorRT 11 on JetPack.

Step 4: INT8, with real calibration images

yolo export model=yolo26n.pt format=engine quantize=8 data=my_dataset.yaml fraction=0.5

data points to a dataset YAML whose val split holds images from your cameras, and fraction limits how many are used. NVIDIA recommends at least 500 representative images, and Ultralytics warns below 300. Without data, Ultralytics calibrates on coco8.yaml, which has 4 validation images: enough to test that the export works, not enough for a model you deploy. Ultralytics doesn't reuse a calibration cache, so each export calibrates again.

On JetPack 6, TensorRT 10.3 has a known issue building INT8 engines with YOLO26's NMS-free head or embedded NMS: Ultralytics switches NMS-free exports to the one-to-many head and stops nms=True exports with an error. Ultralytics' fix is to install a newer TensorRT (10.7 or later) from NVIDIA's CUDA repository:

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/arm64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get install -y tensorrt

As of December 2026 the newest TensorRT for Jetson in that repository is 10.7.0, so that is what apt-get install tensorrt brings (check first with apt-cache policy tensorrt). NVIDIA lists 10.7 as the last 10.x release with DLA, so DLA engines on an Orin NX or AGX Orin keep working at that version. That changes the TensorRT on the device away from what JetPack 6 shipped, so every engine on it must be rebuilt, and every other device must get the same change or your engines stop matching. If you do it, do it in your image, not by hand on one device.

Measure before you commit to INT8. In Ultralytics' Jetson runs it saves 12 to 17 percent of inference time for YOLO26n and 20 to 27 percent for YOLO26s (YOLO26n on the Orin Nano Super: 4.57 to 3.80 ms), and costs accuracy (0.4800 to 0.4490 mAP50-95 in that same run). Whether that trade is worth it depends on your model and your margin.

Step 5: Use the DLA (Orin NX and AGX Orin)

The deep learning accelerator is a fixed-function inference engine next to the GPU. It runs supported layers at lower power and leaves the GPU free for other work, which is why it is attractive on a robot that also runs perception, SLAM or a second model. Ultralytics lists two DLA cores on AGX Orin, two on Orin NX 16GB and one on Orin NX 8GB. Orin Nano has none.

DLA only runs FP16 or INT8, and layers it doesn't support run on the GPU, with data moving between the two at each switch. Export with:

yolo export model=yolo26n.pt format=engine device="dla:0" quantize=16
# or, with trtexec on TensorRT 10:
/usr/src/tensorrt/bin/trtexec --onnx=yolo26n.onnx --saveEngine=yolo26n_dla0.engine --useDLACore=0 --fp16 --allowGPUFallback

Check the table in "What you need" first. On JetPack 6.2.x (TensorRT 10.3) DLA works on Orin NX and AGX Orin. On JetPack 7.2 and 7.2.1 (TensorRT 10.16.2) it doesn't, because 10.7 was the last 10.x release with DLA. On JetPack 7.2.2 (TensorRT 11.4.1) NVIDIA restores it on AGX Orin only, and DLA builds there use strongly typed networks, so the ONNX must carry its precision (the ModelOpt step in Step 6). Ultralytics' exporter raises an error for DLA on TensorRT 11. If DLA matters to your design, that table should decide your JetPack version.

Step 6: The generic path: ONNX and trtexec

When the engine is for a C++ app, DeepStream or a model that isn't from Ultralytics, build it with trtexec. Export ONNX first (Ultralytics also leaves yolo26n.onnx next to every engine it builds):

yolo export model=yolo26n.pt format=onnx

TensorRT 10 (JetPack 6.2.x, 7.2, 7.2.1):

/usr/src/tensorrt/bin/trtexec --onnx=yolo26n.onnx --saveEngine=yolo26n_fp16.engine --fp16
/usr/src/tensorrt/bin/trtexec --loadEngine=yolo26n_fp16.engine     # benchmark: throughput and latency summary

TensorRT 11 (JetPack 7.2.2): the precision flags (--fp16, --int8, --best and others) were removed, and using them makes trtexec exit with an error. Networks are strongly typed: the precision is whatever the ONNX file says. NVIDIA's trtexec migration guide converts the model offline with ModelOpt (AutoCast for FP16, quantization for INT8), then builds without precision flags. NVIDIA's command installs nvidia-modelopt[all]; in a Jetson venv the [onnx] extra is enough for these two commands (it is what Ultralytics installs) and is less likely to pull a PyPI PyTorch over your Jetson build:

pip3 install --no-cache-dir --extra-index-url https://pypi.nvidia.com "nvidia-modelopt[onnx]"
python3 -m modelopt.onnx.autocast --onnx_path yolo26n.onnx --output_path yolo26n_fp16.onnx
/usr/src/tensorrt/bin/trtexec --onnx=yolo26n_fp16.onnx --saveEngine=yolo26n_fp16.engine

# INT8: quantize offline with calibration data (preprocessed input images saved with NumPy), then build
python3 -m modelopt.onnx.quantization --onnx_path yolo26n.onnx --quantize_mode int8 --calibration_data_path data.npz --output_path yolo26n_int8.onnx
/usr/src/tensorrt/bin/trtexec --onnx=yolo26n_int8.onnx --saveEngine=yolo26n_int8.engine

One trap: an Ultralytics .engine starts with a 4-byte length and a JSON metadata block (class names, image size) in front of the serialized engine, so other tools can't load it as a plain TensorRT plan. For trtexec, DeepStream or your own C++ loader, build the engine from the .onnx instead. NVIDIA also notes that engines built with TensorRT 10 can run on the TensorRT 11 runtime, but only if they were built version-compatible (BuilderFlag::kVERSION_COMPATIBLE), which Ultralytics and a plain trtexec build don't do, and it recommends rebuilding with the 11 builder anyway.

Step 7: Run it on a USB or CSI camera

USB camera. Ultralytics opens it by index:

yolo predict model=yolo26n.engine source=0 show=False

In your own code, use the streaming generator so frames don't pile up in memory:

from ultralytics import YOLO
model = YOLO("yolo26n.engine")
for r in model.predict(source=0, stream=True, verbose=False):
    boxes = r.boxes          # xyxy, conf, cls per detection
    # act on the detections here

CSI camera. A CSI camera on a Jetson doesn't appear as a normal webcam. Its frames go through NVIDIA's camera stack (Argus) and the image signal processor, and you read them with the nvarguscamerasrc GStreamer element. Test the camera first:

gst-launch-1.0 nvarguscamerasrc sensor-id=0 num-buffers=60 ! \
  'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=30/1' ! fakesink

Then hand OpenCV a pipeline that converts the frames to BGR in system memory:

import cv2
from ultralytics import YOLO
pipeline = ("nvarguscamerasrc sensor-id=0 ! "
            "video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12, framerate=30/1 ! "
            "nvvidconv ! video/x-raw, format=BGRx ! videoconvert ! video/x-raw, format=BGR ! "
            "appsink drop=1")
cap = cv2.VideoCapture(pipeline, cv2.CAP_GSTREAMER)
model = YOLO("yolo26n.engine")
while True:
    ok, frame = cap.read()
    if not ok:
        break
    results = model(frame, verbose=False)

This needs an OpenCV built with GStreamer. Check with python3 -c "import cv2; print(cv2.getBuildInformation())" | grep -i gstreamer: if it says NO, that OpenCV can't open the pipeline, and you need an OpenCV build with GStreamer in your environment (or DeepStream, which reads the camera natively). The usual culprit is the opencv-python wheel that pip install ultralytics pulls from PyPI: inside the venv it is imported ahead of the system OpenCV, and its project documents GStreamer support as something you build yourself. nvvidconv runs on the Jetson's VIC hardware, so the NVMM to BGRx conversion costs no GPU time; the last videoconvert step (BGRx to BGR) runs on the CPU, which you will see in tegrastats at 1080p.

For several cameras with hardware decoding and tracking, DeepStream is the better tool: its inference element loads TensorRT engines, and JetPack 7.2.x lists DeepStream 9.1 while JetPack 6.2.x lists DeepStream 7.1.

Check that it worked: benchmarks

Ultralytics' benchmark mode exports and times every format against a small dataset:

yolo benchmark model=yolo26n.pt data=coco128.yaml imgsz=640

It takes a while, since it builds every format. Ultralytics published these results for YOLO26 at 640 px on its test devices, with Ultralytics 8.4.33 (8.4.32 on the AGX Orin); the Orin NX 16GB figures come from a Seeed reComputer J4012. Ultralytics doesn't state the JetPack version or power mode for these runs, so treat them as a guide and measure your own. Inference time is the model alone, without pre- and post-processing:

ModuleModelPyTorchTensorRT FP16TensorRT INT8
Orin Nano SuperYOLO26n15.60 ms (0.4790)4.57 ms (0.4800)3.80 ms (0.4490)
Orin Nano SuperYOLO26s22.83 ms (0.5730)7.17 ms (0.5649)5.25 ms (0.5468)
Orin NX 16GBYOLO26n13.90 ms (0.4799)4.13 ms (0.4789)3.49 ms (0.4489)
Orin NX 16GBYOLO26s20.40 ms (0.5738)6.41 ms (0.5652)4.78 ms (0.5468)
AGX Orin 64GBYOLO26n11.58 ms (0.4790)2.62 ms (0.4789)2.30 ms (0.4640)
AGX Orin 64GBYOLO26s13.18 ms (0.5730)3.76 ms (0.5660)2.98 ms (0.5480)

Inference time per image; mAP50-95 in brackets. Three things stand out. TensorRT FP16 is three to four and a half times faster than PyTorch on every module. INT8 adds a smaller gain and costs a few points of accuracy. And the gap between an Orin Nano Super and an AGX Orin 64GB is under 2x for both models (4.57 against 2.62 ms for YOLO26n in FP16), far less than the gap in TOPS: a small model at batch 1 doesn't keep the bigger GPU busy, so the AGX's headroom pays off with bigger models, batches or several streams.

Your end-to-end frame rate will be lower than 1000 divided by these numbers: decoding, resizing, NMS where the model needs it, and your own logic all take time. Measure the whole loop with tegrastats running, so you also see GPU load, temperatures and whether the clocks hold.

Memory, heat and the other things that bite in production

A YOLO demo on a desk and a YOLO model in a robot fail in different ways.

  • Engines and JetPack versions drift apart. The most common break: one device gets apt upgrade or a reflash, its TensorRT changes, and the engine it carries no longer loads. If your code catches that and falls back to the .pt file, the robot keeps working at a third of the speed and nobody notices. Treat a failed engine load as an error, and keep the engine, the TensorRT version and the JetPack version together as one versioned unit.
  • Build on the device, or on an identical one. Two workable patterns: ship the ONNX file and build the engine on each device at install time (simple, but each device spends minutes and memory building), or build once per module type and JetPack version and ship the engines (fast installs, but you need one build machine per combination and must check the combination before loading).
  • Shared memory. The CPU and GPU share RAM, so a TensorRT build, your app and a desktop session compete for the same memory. Boot headless (sudo systemctl set-default multi-user.target), and close other GPU work while exporting. Ultralytics says dropping the desktop can recover up to 865MB.
  • Heat. In a closed enclosure a Jetson that benchmarked at 4.6 ms on the bench can slow down once it heats up and the clocks drop. Watch temperatures and GPU clock in tegrastats under real load, in the real enclosure, for an hour.
  • Power. A supply that can't deliver the mode's peak current causes over-current throttling with no error from your app, only slower frames. The monitoring guide shows where to see it.
  • Disks filling up. save=True in Ultralytics writes every annotated frame under runs/. Handy in development; on a microSD card in the field it fills the disk, and a full disk stops far more than your model.

Common errors and fixes

The messages below are copied the way they appear, so you can find yours with Ctrl+F.

TensorRT model exported with a different version than expected

Why: Ultralytics logs this when an .engine can't be loaded because it was built with another TensorRT version, typically after a JetPack upgrade, or when the engine was built on another machine or in a container with a different TensorRT.

Fix: Rebuild the engine on this device: yolo export model=yolo26n.pt format=engine quantize=16. Check python3 -c "import tensorrt; print(tensorrt.__version__)" in the same environment that runs your app, so the export and the app use the same TensorRT.

Serialization assertion stdVersionRead == kSERIALIZATION_VERSION failed.Version tag does not match

Why: TensorRT's own message for the same problem: the engine (plan) was serialized by a different TensorRT version than the one loading it. On Jetson forums it shows up with engines built on a PC, built in a container with another TensorRT, or kept across a JetPack upgrade.

Fix: Build the engine on the Jetson that runs it, with the TensorRT that JetPack installed (dpkg-query -W 'libnvinfer*' shows it). Make sure DeepStream, your C++ app and your export scripts all use that same TensorRT, and that there aren't two TensorRT installs on the device.

Could not find any implementation for node

Why: The TensorRT builder found no kernel that can run a layer within its constraints: the precision you asked for, the memory available to the build, or a layer and precision combination that this TensorRT version handles badly. Ultralytics documents it for INT8 exports with TensorRT 10.16.1 on two RTX workstation GPUs, where other TensorRT versions (10.13 to 10.15, and 11.4) built the same engine.

Fix: On a Jetson, first free memory (stop other apps, boot headless) and don't set a small workspace. Then try FP16 instead of INT8 to see whether the precision is the problem. If one TensorRT version fails, the fix is often a different version, which on Jetson means the version your JetPack ships or a deliberate, fleet-wide TensorRT change.

ModuleNotFoundError: No module named 'tensorrt'

Why: TensorRT's Python bindings are installed by JetPack into the system Python (package python3-libnvinfer), and a default virtual environment can't see system packages. It also happens when the venv uses a different Python version than the system: the JetPack 6 bindings are built for Python 3.10 and the JetPack 7.2 ones for Python 3.12.

Fix: Recreate the venv with python3 -m venv --system-site-packages ~/venvs/yolo, using the system python3 rather than a conda or pyenv Python. Check that python3 -c "import tensorrt" works outside the venv first; if not, run sudo apt install nvidia-jetpack.

Specified provider 'CUDAExecutionProvider' is not in available provider names

Why: ONNX Runtime has no CUDA provider, so it runs on the CPU. On Jetson this means a CPU-only onnxruntime wheel, or both onnxruntime and onnxruntime-gpu installed side by side, or a GPU wheel built for another JetPack.

Fix: pip uninstall -y onnxruntime onnxruntime-gpu, then install the wheel for your JetPack and Python (Step 2b). Check with python3 -c "import onnxruntime as ort; print(ort.get_available_providers())". For speed on a Jetson, a TensorRT engine is usually the better target than ONNX Runtime anyway.

RuntimeError: operator torchvision::nms does not exist

Why: torch and torchvision don't match. Common after pip install ultralytics pulled a torchvision from PyPI next to a Jetson-specific torch.

Fix: Reinstall both together from the index for your JetPack, with matching versions (for example torch 2.11.0 with torchvision 0.26.0 from https://pypi.jetson-ai-lab.io/jp6/cu126). Details in how to install PyTorch on a Jetson.

export running on CPU but must be on GPU, i.e. use 'device=0'

Why: Ultralytics was asked to build a TensorRT engine on the CPU. TensorRT export needs an NVIDIA GPU; Ultralytics documents this error for device=cpu.

Fix: Don't pass device=cpu, and check python3 -c "import torch; print(torch.cuda.is_available())" prints True in the same environment. A CPU-only PyTorch means the GPU isn't usable from Python at all: fix PyTorch first.

With more than one Jetson

On a fleet, the hard part is knowing that every robot runs the engine you think it runs. PhysicalFleet shows each Jetson's TensorRT, CUDA and other NVIDIA library versions and flags devices whose versions differ from the rest, and its Models tab lists the processes running ML, with model files and their fingerprints, and flags a model that keeps running but stops publishing. Ship new engines or containers as a release, tried on one Jetson first and rolled out in phases with automatic rollback.

See how OTA updates work

Written by PhysicalFleet, as of December 2026. Jetson software moves fast: if something here no longer matches what you see, tell us and we'll fix it.

FAQ

Common questions

Something else? Talk to our team.

Does the Jetson Orin Nano have a DLA?

No. Ultralytics lists DLA cores on AGX Orin (2), Orin NX 16GB (2) and Orin NX 8GB (1). On an Orin Nano, TensorRT engines run on the GPU.

Can I build a TensorRT engine on my PC and copy it to a Jetson?

No. An engine holds kernels chosen for one GPU and is stored in one TensorRT version's format. Build it on the Jetson, or on an identical module with the same JetPack, and copy the ONNX file across instead.

Which YOLO version is the newest for Jetson?

As of December 2026, Ultralytics' Jetson guide and benchmarks use YOLO26, in sizes n, s, m, l and x. The export and predict commands are the same as for earlier Ultralytics models.

Should I use FP16 or INT8 on a Jetson?

Start with FP16: it is three to four and a half times faster than PyTorch on Orin with almost no accuracy loss. INT8 is somewhat faster again but needs hundreds of calibration images, and cost YOLO26n between 1.5 and 3.1 mAP50-95 points against FP16 in Ultralytics' Orin runs.

Does half=True still work for TensorRT export?

Ultralytics now uses quantize=16 for FP16 and quantize=8 for INT8, and marks half and int8 as deprecated. Use the new argument in new scripts.

Why do I have to re-export my YOLO engine after upgrading JetPack?

A JetPack upgrade usually brings a new TensorRT version, and an engine normally loads only in the TensorRT version that built it (version-compatible builds are the exception, and Ultralytics doesn't make them). Upgrading from JetPack 7.2.1 to 7.2.2, for example, moves TensorRT from 10.16.2 to 11.4.1.

Why is sudo nvpmodel -m 0 not the fastest mode on my Orin Nano?

Mode ids differ per module. On an Orin Nano 8GB flashed with the Super configuration, mode 0 is 15W and MAXN_SUPER is mode 2. Read /etc/nvpmodel.conf for your module's ids.

Can YOLO use a CSI camera on a Jetson?

Yes, through GStreamer: an nvarguscamerasrc pipeline converted to BGR with nvvidconv and videoconvert, opened with cv2.VideoCapture and CAP_GSTREAMER. It needs an OpenCV built with GStreamer support.

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