Meta and NVIDIA's ExecuTorch Runs a 3.6B Robot Brain on a $250 Board
A new Torch-TensorRT and ExecuTorch workflow fits a 3.6B-parameter robot policy on an 8 GB Jetson Orin Nano at near-TensorRT speed, with no PyTorch needed at runtime.
Takeaways
- PyTorch and NVIDIA ship ExecuTorch-TensorRT, compiling PyTorch robot policies to TensorRT without libtorch at runtime.
- GR00T 1.7 (3B) and pi0.5 (3.6B) now fit on an 8 GB Jetson Orin Nano.
- Within 4% of ONNX-TensorRT speed and memory, up to 6.4x faster than eager PyTorch.
- Install with one command:
pip install "torch_tensorrt[executorch]". - Unsupported ops fall back to ExecuTorch's CUDA backend instead of failing the build.
- Custom ops via Triton kernels replace C++ TensorRT plugins entirely.
NVIDIA’s Torch-TensorRT team and Meta’s ExecuTorch team have released a new integration for deploying PyTorch models on edge GPUs. The workflow captures a model, compiles supported graph regions with TensorRT, packages the result as an ExecuTorch program, and runs it from C++ or Python without loading libtorch. The published setup uses one pip installation with Torch-TensorRT 2.15 and ExecuTorch 1.6.
On an 8 GB Jetson Orin Nano Super, the team reported latency within 4% of the fastest result for each tested policy. The integration also ran the 3.6-billion-parameter pi0.5 policy on a $250 board where PyTorch eager mode, torch.compile, and the libtorch-based Torch-TensorRT path exhausted memory.
Why edge policies miss deadlines
Robot policies often predict a chunk of future actions, such as the next 50 movements. When the controller consumes that chunk before the next one arrives, the robot pauses. Remote inference can add 100 milliseconds of round-trip latency over an unreliable link, so many systems must run locally while sharing memory among the CPU, GPU, cameras, model weights, and runtime libraries.
Before this integration, deploying a PyTorch policy through TensorRT usually required one of four routes, each with a maintenance or memory cost:
- ONNX export: The model passes through two conversion stacks, and both must support every required operator.
- Manual TensorRT construction: Engineers rebuild the network through TensorRT’s C++ API and maintain custom plugins.
- TensorRT Model Connect: NVIDIA supplies optimized paths for a fixed set of supported checkpoints.
- Torch-TensorRT inside PyTorch: The compiler produces an
ExportedProgramor AOTInductor.pt2package, while deployment still loads more than 1 GB of libtorch libraries and retains hundreds of megabytes in the process.
One graph, two GPU backends
The compiler captures the model with torch.export, assigns supported subgraphs to TensorRT, and sends the remaining operators to ExecuTorch’s CUDA backend. Unsupported operators, including preprocessing steps, therefore remain inside the same program. Both backends share a CUDA stream and keep intermediate tensors on the GPU.
- Capture and partition:
torch.exportcreates the graph, TensorRT claims compatible regions, and the CUDA backend receives the rest. - Compile and package: TensorRT builds engines for its regions, while AOTInductor compiles the remaining graph. ExecuTorch stores the program in a
.ptefile, with large weights available through a.ptdsidecar. - Load and execute: The ExecuTorch runtime dispatches each subgraph. Enabling
use_cuda_graphs=Truerecords an engine’s work as a CUDA graph, reducing repeated launch overhead to a single replay.
Teams can also implement custom operators as Triton kernels and register them with torch.library.triton_op. The CUDA backend compiles those kernels into the deployment artifact, which runs on the robot without PyTorch or Triton installed.
Jetson latency, row by row
The team benchmarked four LeRobot policies on an 8 GB Jetson Orin Nano Super: ACT with 52 million parameters, SmolVLA with 450 million, pi0.5 with 3.6 billion, and GR00T 1.7 with 3 billion. The reported measurements cover the time required to generate one action chunk.
| Policy | ExecuTorch-TRT | ONNX-TRT | Torch-TRT | torch.compile |
Eager |
|---|---|---|---|---|---|
| ACT | 26 | 25 | 26 | 42 | 48 |
| SmolVLA | 120 | 121 | 120 | 159 | 765 |
| pi0.5 | 467 | 452 | OOM | OOM | OOM |
| GR00T 1.7 | 215 | 208 | 215 | OOM | OOM |
The 3.6-billion-parameter pi0.5 model generated a 50-action chunk in 467 milliseconds. Memory use remained close to the ONNX-TensorRT reference, while the libtorch-based Torch-TensorRT process consumed an additional 0.7 to 1.4 GB on workloads it could load.
Cutting the runtime footprint
Removing libtorch reduces both startup cost and storage requirements. On the Orin Nano, importing PyTorch alone took about 2.2 seconds and consumed 550 MB. The slim deployment occupied about 4.6 GB, down from 11 GB for the full installation.
The Python runtime accepts NumPy arrays as inputs and outputs. In C++, ExecuTorch exposes a Module that can receive a camera buffer already resident on the GPU, avoiding a copy through host memory.
Building models that exceed RAM
TensorRT engine construction temporarily requires the full model in memory, which prevents an 8 GB Orin Nano from building a 3.6-billion-parameter policy as one unit. The team divided pi0.5 and GR00T into chains of smaller ExecuTorch programs, built each component in a separate process, and loaded only that component’s weights during compilation.
The repeated denoising stage is compiled once and invoked 10 times for pi0.5 or four times for GR00T. At runtime, ExecuTorch loads the resulting engines through a shared GPU allocator, and engine data larger than 2 GB can reside in the .ptd sidecar. On discrete GPUs, weight streaming supports engines whose weights exceed available VRAM.
Sharing one GPU safely
Torch-TensorRT 2.15 deduplicates engine memory when one process loads the same program more than once. On the Orin Nano, the second load added 76 MiB instead of 805 MiB. A CUDA green context can reserve a portion of the GPU’s streaming multiprocessors for each policy, while a dedicated CUDA stream supplies its execution queue. This arrangement limits interference between a large planning model and a high-rate controller.
Where the workflow pays off
The workflow best suits Jetson systems, custom robot computers, and other edge GPUs where libtorch consumes memory needed by the model. Server-hosted policies and small models that already fit comfortably in eager mode gain less from the additional compilation and packaging steps.
Deployment still requires measurement on the target device. CUDA fallback keeps unsupported subgraphs executable, though latency depends on how much of the graph TensorRT can compile. Teams should validate partition coverage, memory use, numerical accuracy, and end-to-end timing with production inputs.
The same partitioning approach also applies outside robotics. The team ran a 26-billion-parameter Gemma language model with 4-bit weights on an A100 and reported bit-identical output to execution through the CUDA backend alone.