Repository navigation
Description
This issue tracks LeRobot policies exported to ExecuTorch with Torch-TensorRT: which ones run on which GPU, how fast, and what each project still needs to look at. Other backends have their own issues: OpenVINO in #24325, XNNPACK in #24667, Qualcomm in #24668, Core ML and MLX in #24669, the CUDA backend alone in #24684, Vulkan in #24688, and Arm in #24697.
Coverage
| Policy | H100 | A100 | DGX Spark | Thor | AGX Orin | Orin Nano | Programs |
|---|---|---|---|---|---|---|---|
| act | ✅ 1.71 (4.8x) | ✅ 2.38 (6.1x) | ✅ 4.07 (3.2x) | ✅ 2.61 (3.2x) | ✅ 6.93 (3.1x) | ✅ 14.0 (2.0x) | TRT 1 |
| cosmos3 | ✅ 282 (4.1x) | ✅ 489 (5.2x) | ✅ 1106 (1.3x) | ✅ 1032 (1.5x) | ✅ 2055 (2.1x) | ➖ | TRT 5 + CUDA 2 |
| diffusion | ✅ 122 (3.7x) | ✅ 202 (4.1x) | ✅ 939 (7.8x) | ✅ 451 (5.3x) | ✅ 923 (4.5x) | ✅ 2552 (3.3x) | TRT 3 |
| dm05 | ✅ 69.9 (6.8x) | ✅ 106 (9.3x) | 🟡 216 (1.6x) | ✅ 175 (2.8x) | ✅ 418 (4.5x) | ➖ | TRT 2 + CUDA 1 |
| eo1 | ✅ 57.3 (5.2x) | ✅ 83.0 (8.1x) | ✅ 305 (1.2x) | ✅ 292 (1.3x) | ✅ 430 (2.2x) | ➖ | TRT 2 + CUDA 1 |
| evo1 | ✅ 28.6 (7.0x) | ✅ 56.0 (7.1x) | ✅ 100 (4.0x) | ❌ | ✅ 238 (3.5x) | ✅ 1488 (1.0x) | TRT 2 + CUDA 1 |
| fastwam | ✅ 54.2 (8.6x) | ✅ 83.1 (11.6x) | ✅ 191 (1.9x) | ✅ 196 (2.0x) | ➖ | ➖ | TRT 2 + CUDA 1 |
| fineart_vla | ✅ 36.8 (5.1x) | ✅ 81.8 (4.7x) | ✅ 293 (1.6x) | ✅ 693 (1.4x) | ✅ 440 (2.1x) | ➖ | TRT 1 |
| flux3 | ❌ | ✅ 1357 (1.2x) | ❌ | ❌ | ➖ | ➖ | TRT 1 + CUDA 1 |
| g05 | ✅ 43.8 (8.9x) | ✅ 62.9 (12.5x) | ✅ 103 (1.8x) | ✅ 99.7 (3.3x) | ✅ 161 (7.5x) | ➖ | TRT 4 + CUDA 1 |
| gaussian_actor | ✅ 0.51 (3.5x) | ✅ 0.78 (3.4x) | ✅ 0.45 (2.7x) | ✅ 0.58 (2.5x) | ✅ 1.12 (3.6x) | ✅ 1.33 (4.8x) | TRT 1 |
| groot | ✅ 19.0 (7.1x) | ✅ 27.7 (9.0x) | ✅ 64.3 (3.4x) | ✅ 57.3 (3.6x) | ✅ 98.0 (4.1x) | ✅ 195 | TRT 10 |
| lawam | ✅ 20.6 (9.5x) | ✅ 32.8 (11.5x) | 🟡 73.4 (2.6x) | ✅ 65.5 (2.8x) | ✅ 116 (4.4x) | ➖ | TRT 7 + CUDA 1 |
| lingbot_va | ✅ 1826 (1.6x) | ✅ 2636 (2.1x) | ✅ 10757 (0.7x) | ✅ 10051 (0.8x) | ➖ | ➖ | TRT 49 + CUDA 37 |
| lingbot_vla_v2 | ✅ 75.7 (7.8x) | ✅ 98.9 (12.1x) | ✅ 261 (1.4x) | ✅ 848 (0.6x) | ✅ 399 (4.6x) | ➖ | TRT 3 + CUDA 2 |
| longwam | ✅ 158 (3.2x) | ✅ 330 (3.0x) | ✅ 761 (2.1x) | ✅ 675 (1.7x) | ➖ | ➖ | TRT 3 + CUDA 3 |
| molmoact2 | 🟡 48.8 (4.4x) | ✅ 83.0 (4.9x) | 🟡 161 (2.5x) | 🟡 153 (2.2x) | ✅ 347 (2.4x) | ➖ | TRT 1 |
| multi_task_dit | ✅ 47.5 (6.4x) | ✅ 70.4 (8.8x) | ✅ 168 (1.4x) | ✅ 152 (1.8x) | ✅ 230 (4.3x) | ✅ 395 (3.1x) | TRT 3 |
| nat_vla | ✅ 33.2 (5.2x) | ✅ 39.7 (9.0x) | ✅ 154 (1.2x) | ✅ 127 (1.6x) | ✅ 216 (2.7x) | ✅ 425 (2.0x) | TRT 1 |
| pi0 | ✅ 28.9 (6.2x) | ✅ 55.0 (6.8x) | ✅ 114 (1.5x) | ✅ 94.2 (2.2x) | ✅ 241 (3.1x) | ✅ 558 | TRT 9 |
| pi05 | ✅ 24.8 (8.0x) | ✅ 43.9 (9.6x) | ✅ 92.2 (2.3x) | ✅ 78.7 (3.1x) | ✅ 182 (4.8x) | ✅ 426 | TRT 9 |
| pi0_fast | ✅ 1576 (1.8x) | ✅ 2328 (2.6x) | ✅ 11661 (1.1x) | ✅ 11600 (1.1x) | ✅ 17338 (1.1x) | ➖ | TRT 3 |
| praxis | 🟡 212 (4.2x) | 🟡 467 (4.2x) | 🟡 1487 (3.8x) | 🟡 1398 (4.2x) | ➖ | ➖ | TRT 5 |
| smolvla | ✅ 16.9 (12.2x) | ✅ 27.4 (14.4x) | ✅ 35.9 (2.5x) | ✅ 36.6 (4.9x) | ✅ 79.1 (7.8x) | ✅ 170 (4.9x) | TRT 4 |
| tdmpc | ✅ 8.26 (4.2x) | ✅ 13.6 (5.1x) | ✅ 11.1 (1.8x) | ✅ 23.2 (1.8x) | ✅ 37.0 (3.3x) | ✅ 82.2 (1.9x) | TRT 1 |
| vla_jepa | ✅ 11.6 (6.7x) | ✅ 20.0 (7.6x) | ✅ 38.7 (1.8x) | ✅ 35.2 (2.7x) | ✅ 64.8 (3.6x) | ✅ 149 | TRT 9 + CUDA 2 |
| vqbet | ✅ 1.35 (6.3x) | ✅ 1.98 (6.8x) | ✅ 2.55 (4.2x) | ✅ 1.73 (3.5x) | ✅ 3.75 (5.1x) | ✅ 5.19 (4.4x) | TRT 1 |
| wall_oss_05 | ✅ 61.9 (5.4x) | ✅ 87.6 (8.2x) | ✅ 187 (1.7x) | ✅ 143 (3.0x) | ✅ 386 (3.7x) | ➖ | TRT 2 + CUDA 1 |
| wall_x | ✅ 90.4 (4.8x) | ✅ 145 (6.4x) | ✅ 414 (1.4x) | ✅ 783 (1.7x) | ➖ | TRT 36 + CUDA 35 | |
| xvla | ✅ 16.5 (4.9x) | ✅ 32.2 (4.5x) | ✅ 49.4 (1.5x) | ✅ 47.0 (1.5x) | ✅ 97.4 (2.5x) | ✅ 242 (1.4x) | TRT 1 |
Legend:
- The number: milliseconds per action chunk (batch 1, median of 30 chunks after 3 warm-up) in
lerobot-rollout --bundle.path, with PyTorch never loaded, inputs and outputs on the GPU, and no operator on the CPU. - In brackets: how many times faster than eager PyTorch (
lerobot-rollout --policy.path) on the same device, checkpoint and dtype, with the same float32 math as the bundle. The newer build (see "Built on") lets TensorRT use TF32 for float32 policies, so its float32 cells compare with eager--tf32=true. Its bf16 cells, and tdmpc and pi0_fast, which it keeps in strict float32, compare with--tf32=false, like all other cells. No brackets: eager does not fit the device. - ✅: works with the packages under "Built on".
- 🟡: also needs fixes that are not released yet, beyond the LeRobot branch: PyTorch fixes for the older molmoact2 cells and the DGX Spark cells of dm05 and lawam (see "PyTorch"), the unreleased Torch-TensorRT and ExecuTorch pull requests for praxis, and fix: build, test and lower on PyTorch nightly, and let Debugger work again TensorRT#5059 for molmoact2 on the Thor (see "Built on").
- ➖: too big for this device's memory. ❌: measured, and it fails; the cause is under "Known issues". An empty cell: not measured yet.
- "Programs": TensorRT engines (TRT) and ExecuTorch CUDA backend programs (CUDA), not counting the noise draw. The cast to uint8 in fix(dynamo): int64 sum and prod, truncating division sign, uint8 select and cast in the engine TensorRT#5019, which the newer build includes, brings wall_oss_05 down to TRT 2 + CUDA 1.
Notes:
- Every bundle first passed the export's accuracy check against eager PyTorch.
- DGX Spark is a GB10 (aarch64).
- lawam's H100, A100, Thor and AGX Orin cells are measured on the newer build (see "Built on"). There it needs fix: disk engine cache evicts only its own entries, compile_and_save with static-shape outputs, and a caller-chosen engine folder TensorRT#5026 and no PyTorch fix. Its DGX Spark cell comes from an older recipe (TRT 2 + CUDA 1) and has not been measured again.
- eo1's A100, Thor and AGX Orin cells are measured on the newer build (see "Built on"). Its H100 and DGX Spark cells are from the 2.15.0 packages and have not been measured again.
- vla_jepa's H100, A100, Thor, AGX Orin and Orin Nano cells are measured on the newer build (see "Built on"). Its DGX Spark cell comes from an older recipe (TRT 3 + CUDA 2) and has not been measured again.
- dm05's H100, A100, Thor and AGX Orin cells are measured on the newer build (see "Built on"). Its DGX Spark cell is from the 2.15.0 packages with the PyTorch fixes and has not been measured again.
- flux3's A100 cell is measured on the newer build (see "Built on"). Its H100, DGX Spark and Thor cells are from the 2.15.0 packages and have not been measured again. The newer build needs about 177 GB of host memory to export flux3, measured on the A100, which is more than the Thor's 122 GB.
- fineart_vla's H100, A100 and AGX Orin cells are on the newer build (see "Built on"), which runs this float32 policy with TF32 and checks it with the TF32 tolerance. Its DGX Spark and Thor cells are strict float32 from the 2.15.0 packages and have not been measured again.
- lingbot_vla_v2's A100 and AGX Orin cells are measured on the newer build (see "Built on"). Its H100, DGX Spark and Thor cells come from an older LeRobot branch (see "Exceptions" under "Built on") and have not been measured again.
- molmoact2's A100 and AGX Orin cells are measured on the newer build (see "Built on"). Its H100, DGX Spark and Thor cells are the older yellow cells (see "Exceptions" under "Built on") and have not been measured again.
- pi0_fast's A100, Thor and AGX Orin cells are measured on the newer build (see "Built on"). Its H100 and DGX Spark cells are from the 2.15.0 packages and have not been measured again.
- g05's A100, Thor and AGX Orin cells are measured on the newer build (see "Built on"). Its H100 and DGX Spark cells are from the 2.15.0 packages and have not been measured again.
- wall_oss_05's A100, Thor and AGX Orin cells are measured on the newer build (see "Built on"). Its H100 and DGX Spark cells come from an older recipe (TRT 4 + CUDA 3) and have not been measured again.
- fastwam's A100 and Thor cells are measured on the newer build (see "Built on"). Its H100 and DGX Spark cells are from the 2.15.0 packages and have not been measured again.
- cosmos3's A100, Thor and AGX Orin cells are measured on the newer build (see "Built on"). Its H100 and DGX Spark cells come from an older recipe (TRT 8 + CUDA 5) and have not been run again.
- nat_vla's A100, Thor, AGX Orin and Orin Nano cells are measured on the newer build (see "Built on"). Its H100 and DGX Spark cells come from an older recipe (TRT 2 + CUDA 1) and have not been run again.
- evo1's H100, A100, AGX Orin and Orin Nano cells are measured on the newer build (see "Built on"). Its Thor cell fails there too, for the same Thor attention rounding (see "Known issues"). Its DGX Spark cell comes from an older recipe (TRT 4 + CUDA 3) and has not been measured again.
- wall_x's H100, A100, Thor and AGX Orin cells are measured on the newer build (see "Built on"). Its DGX Spark cell is empty: that run used an older recipe (TRT 41 + CUDA 40) and stopped at the accuracy check (0.224 against the 0.075 limit used then). That passes the recipe's current 0.5 limit, but it has not been run again.
- pi05's H100, A100, Thor, AGX Orin and Orin Nano cells are measured on the newer build (see "Built on"). Its DGX Spark cell is from the 2.15.0 packages and has not been measured again.
- vqbet's H100, A100, Thor, AGX Orin and Orin Nano cells are measured on the newer build (see "Built on"). Its DGX Spark cell comes from an older recipe (TRT 1 + CUDA 1) and has not been measured again.
- pi0's, smolvla's, tdmpc's and xvla's H100, A100, Thor and Orin Nano cells are measured on the newer build (see "Built on"). Their DGX Spark cells are from the 2.15.0 packages and have not been measured again. Their AGX Orin cells are on the newer build too.
- groot's A100, Thor, AGX Orin and Orin Nano cells use the public checkpoint
ethanCSL/groot_n17_libero_object_v2. Its H100 and DGX Spark cells were measured with a fine-tuned GR00T N1.7 checkpoint that is not on the Hub. - act, diffusion, gaussian_actor, groot and multi_task_dit: the H100, A100, Thor and Orin Nano cells, and the AGX Orin cells of act, diffusion, gaussian_actor, groot and multi_task_dit, are measured on the newer build (see "Built on"). Their DGX Spark cells are from the 2.15.0 packages and have not been measured again. diffusion's and multi_task_dit's DGX Spark cells come from an older recipe (TRT 3 + CUDA 1).
- AGX Orin is the 64 GB developer kit. Its first cells were measured while it had only its built-in storage. It now has a 2 TB drive, and more of its cells are being added on a newer build.
- diffusion, dm05, eo1, fineart_vla, gaussian_actor, lingbot_vla_v2, molmoact2, multi_task_dit, tdmpc, vla_jepa, vqbet and wall_x use random weights, made by the same script and seed on each device. fastwam uses its real weights in every column.
- nat_vla (ahad-j/nat-vla-450m, float32) uses its real pretrained weights with a made-up robot setup: 2 cameras at 256x256, an 8-value state and 7 actions. Eager PyTorch streams its chunk and hands out the first actions sooner (measured with the older recipe: H100 69 ms, A100 143 ms, DGX Spark 94 ms, Thor 183 ms, Orin Nano 664 ms); the bracket compares the time until the whole chunk is ready, which is what the bundle returns.
- praxis is Runway's Praxis-1 (bf16, 27B parameters, a mixture of experts with 128 experts and 8 active per token). Bundle and eager ran with
OMP_NUM_THREADS=8. The praxis cells are from the Praxis-1 (27B) export to ExecuTorch with TensorRT: how to reproduce from source #25019 build (see "Built on"), exported in bf16 with--weights_as_inputs=true. Their eager runs use the model's video decoder tower on every denoising step, including the last, and on the chunks the robot does not play; LeRobot cannot turn that off. The bundles skip that work. The Thor eager number is the median of 2 of 3 eager passes. The third pass was not valid in either of its 2 tries, because its first chunks were very slow. Praxis-1 (27B) export to ExecuTorch with TensorRT: how to reproduce from source #25019 compares this route with Runway's reference code and shows how to reproduce this build from source. - pi05: pi0.5 export to ExecuTorch with TensorRT: how to reproduce from source #25235 compares this route with openpi, Physical Intelligence's reference implementation, measured the same way on openpi's
pi05_liberoweights, and shows how to reproduce it from source. The pi05 cells in the table come from a different checkpoint and setup. - flux3 (black-forest-labs/flux-3-action-droid, bf16) turns weight sharing off in its recipe, because weight sharing makes the TensorRT builder crash on it.
- cosmos3 takes the robot state as a CPU input; its images stay on the GPU.
- pi0 and xvla run in bf16 in every column, because their float32 exports do not fit the Orin Nano.
- On the Thor, lingbot_va is slower than eager PyTorch (10051 against 8470 ms); the cause is not known yet. lingbot_vla_v2 splits into TRT 387 + CUDA 386 there, because LeRobot keeps attention out of TensorRT on this GPU (see the Thor attention row under "NVIDIA TensorRT"), so it is slower than eager too. Eager with TF32 on beats the strict float32 bundles there (fineart_vla: 254 against 693 ms).
- On the Orin Nano: evo1 is built at TensorRT optimization level 0 (
--backend.optimization_level=0) so it fits. lawam needs about 13.5 GiB to compile its 5 GiB program. vla_jepa fits on the newer build, which exports it as a chain of small programs; eager PyTorch runs out of GPU memory there, so its cell has no brackets. pi05 varies from 425 to 447 ms between exports (Builder picks a slower bf16 GEMM kernel on Orin (sm_87): the 160x128x32 tiles run about 24% slower than the builder measured NVIDIA/TensorRT#4937). praxis (54 GB of weights) and longwam (23 GB) do not fit. g05 fits only with resource partitioning and weights released after each engine (309 ms, 4.7x, measured on Nov 5 before Torch-TensorRT 2.15.0 shipped); its published recipe sets neither, and with the 2.15.0 packages it runs out of memory, so its cell stays ➖. nat_vla's export runs with its process memory capped at 4 GB and 8 GB of swap, so the TensorRT build has room for its GPU memory; with the usual 7 GB cap the build runs out of memory.
Built on
- torch 2.15.0, ExecuTorch 1.6.0, Torch-TensorRT 2.15.0 with
torch-tensorrt-executorch-runtime0.2.1 (pip install "torch_tensorrt[executorch]"from PyPI), TensorRT 11.4 and transformers 5.22.1. The Jetson builds are for aarch64 and CUDA 13.2. - Newer build, used so far for act, cosmos3, diffusion, dm05, eo1, evo1, fastwam, fineart_vla, flux3, g05, gaussian_actor, groot, lawam, lingbot_vla_v2, molmoact2, multi_task_dit, nat_vla, pi0, pi0_fast, pi05, smolvla, tdmpc, vla_jepa, vqbet, wall_oss_05, wall_x and xvla: the PyTorch 2.16 nightly, ExecuTorch main and Torch-TensorRT main, each with open pull requests that are not merged yet, TensorRT 11.4, and LeRobot
lerobot-export-stack. - LeRobot:
mainplus thelerobot-exportand torch-freelerobot-rollout --bundle.pathwork on thelerobot-export-stackbranch of shoumikhin/lerobot. The table, except the newer-build cells, was measured on that branch as it was on Nov 5, kept aslerobot-export-stack-nov5. Its policy fixes are also open as LeRobot pull requests (see "LeRobot"). - Exceptions: molmoact2 on the Thor uses the Nov 19 nightlies: torch 2.16.0.dev20261119, which has [export] Recompile once when inlining no_grad and autocast regions pytorch#204723, plus [export] Save and load flat_apply calls, such as indexing inside vmap pytorch#202785, and Torch-TensorRT 2.16.0.dev20261119 plus the
processed_hashesfix of fix: build, test and lower on PyTorch nightly, and let Debugger work again TensorRT#5059, with ExecuTorch 1.6.0.dev20261105. With [export] Recompile once when inlining no_grad and autocast regions pytorch#204723 its export trace takes 382 s; on torch 2.15.0 it was still tracing after 4628 s. Its cell is yellow because [export] Save and load flat_apply calls, such as indexing inside vmap pytorch#202785 and fix: build, test and lower on PyTorch nightly, and let Debugger work again TensorRT#5059 are not merged. lingbot_vla_v2's H100, DGX Spark and Thor cells use the Nov 3 LeRobot branch and transformers 5.5.4, because the Nov 5 branch could not export it. praxis uses the Praxis-1 (27B) export to ExecuTorch with TensorRT: how to reproduce from source #25019 build: Torch-TensorRTpraxis-repro-2.15-edge(2.15.0 plus versions of the pull requests under "Torch-TensorRT"), ExecuTorchpraxis-repro-1.6(1.6.0 plus versions of Import torch only when the Python runtime needs it, warn before outputs follow inputs, and upload bfloat16 without torch #24321, [PyBindings] Pass float8 tensors through DLPack #25098 and Make save raise on failure; let save move file-backed data into the output instead of copying it #25099) and LeRobotpraxis-repro. These cells used transformers 5.22.2. nat_vla's H100 and DGX Spark cells use an older state oflerobot-export-stack, after nat_vla and its export recipe came in from LeRobot main (feat(policies): add the NAT VLA policy (nat_vla) huggingface/lerobot#5416). The AGX Orin cells from the 2.15.0 packages use JetPack 7.2.2, on that same state of the branch. - The yellow PyTorch cells, except molmoact2 on the Thor, use torch 2.15.0 plus the export fixes of [export] Save and load flat_apply calls, such as indexing inside vmap pytorch#202785 as of Oct 31. That pull request is now split into [export] Save and load flat_apply calls, such as indexing inside vmap pytorch#202785 (open) and [export] Load higher order op regions that return nothing, such as autocast, no_grad and cond pytorch#202925, [export] Record fake values for vmap and jvp calls, and keep those calls through dead code elimination pytorch#202929 and [export] Keep no_grad and autocast regions that read a cond's branches or a pytree spec pytorch#202991 (merged into main, after 2.15).
How to reproduce a row
This shows xvla on one NVIDIA GPU. The full guide is the export docs. The install line takes the newest code on the branch; the table, except the newer-build cells (see "Built on"), was measured on lerobot-export-stack-nov5.
-
Install in a new virtual environment. The export compiles CUDA code, so it also needs the CUDA compiler:
pip install "torch_tensorrt[executorch]" pip install "lerobot[export] @ git+https://github.com/shoumikhin/lerobot.git@lerobot-export-stack" pip install "cuda-toolkit[nvcc]==13.2.*" export CUDA_HOME=$(python -c "import os, nvidia; print(os.path.join(list(nvidia.__path__)[0], 'cu13'))") export PATH=$CUDA_HOME/bin:$PATH
-
Export. The export runs one test frame through the bundle and through PyTorch, prints
Bundle test case: largest difference ... (tolerance ...), and stops if the difference is too large (--tolerancechanges the limit).lerobot-export --policy.path=lerobot/xvla-widowx --policy.dtype=bfloat16 --task="pick up the cube" \ --backend.type=executorch_tensorrt --output_dir=bundles/xvla_trt -
Time the bundle, then eager PyTorch, on the same GPU, robot and checkpoint. The bundle run never imports PyTorch.
lerobot-rolloutlogs how long the programs took every 5 seconds.lerobot-rollout --bundle.path=bundles/xvla_trt --robot.type=<your robot> ... --duration=60 lerobot-rollout --policy.path=lerobot/xvla-widowx --policy.dtype=bfloat16 --device=cuda --tf32=false \ --robot.type=<your robot> ... --duration=60
For the CUDA backend alone, use --backend.type=executorch_cuda in step 2 and skip the Torch-TensorRT line in step 1 (lerobot[export] already brings ExecuTorch's CUDA backend on Linux).
Known issues
"Fix" is an open pull request unless it says merged. "Needs a decision" is a design question for the maintainers. "Needs an owner" means nobody is fixing it yet. "Verified" means the policy was measured before and after the fix.
ExecuTorch
- Fixed in 1.6.0: Fix crashes, wrong outputs and lowering failures in several backends and in exir #24298, CUDA backend: CUDA graph fixes for mask indexing, .item() and changed input shapes, masked copies as where, tensor checks dropped before compiling, float64, _reshape_copy, scatter_reduce and varlen_attn, follow-ups #24326, Python runtime: enforce CUDA stream selection rules on the stream itself #24346, Keep ops above 6 dims out of XNNPACK and fix quantized ops it leaves out #24380, Fix mixed-dtype cat and stack in to_edge and the edge check #24381, Support 3-D convolution in the portable convolution kernel #24385, Python runtime: stop a backend's log from deadlocking 2 threads #24393, Limit the default thread pool to the allowed CPUs on Linux (not Android) #24395, Add a portable kernel for antialiased bicubic resize #24400, Keep Half and BFloat16 sums in float in portable matmul, var, cumsum and pooling kernels, and fix portable cat #24401, CUDA backend: lower rotary embeddings written with complex numbers #24403, Fix export of zero-stride constants and inputs, and of constants that delegates share #24404, CUDA backend: delete each output handle once when a program returns one tensor twice #24420, CUDA backend: lower fused attention variants #24426, CUDA backend: keep wide attention heads that are not a power of 2 off the Triton SDPA kernel #24427, OpenVINO: fix wrong outputs when a partition returns a copy of its input #24466, CUDA backend: keep wide attention heads that are not a power of 2 off the Triton SDPA kernel #24468, XNNPACK: fix enable_bf16 load failures and BatchNorm folding into a 3-D linear output #24477, exir and MLX: fix folded-output clones, shared constants, boolean masks, int64 scatter_add, lowering time and memory, and #24404 follow-ups #24481, [release/1.6] Fix CUDA indexing, graph execution and output buffers #24488, [release/1.6] Fix CUDA weights filenames and antialiased resize #24489, [release/1.6] Fix OpenVINO scalars, precision, dynamic outputs and reductions #24492, [release/1.6] Fix OpenVINO bool operations and masked reads #24493. Fixed in main after 1.6.0: CUDA backend: return an error when an output has no buffer #24640 (a C++ caller that gave no buffer for a GPU output got an abort instead of an error) and Lower grouped GEMM on sm_80 and above (#25017) #25017 (the CUDA backend lowers
aten._grouped_mmon the A100 and newer GPUs). - The Praxis-1 (27B) export to ExecuTorch with TensorRT: how to reproduce from source #25019 build for praxis also uses Import torch only when the Python runtime needs it, warn before outputs follow inputs, and upload bfloat16 without torch #24321 (uploads bfloat16 without torch; in main, not in 1.6.0), [PyBindings] Pass float8 tensors through DLPack #25098 (float8 tensors through DLPack in the Python bindings; in main, not in 1.6.0) and Make save raise on failure; let save move file-backed data into the output instead of copying it #25099 (lets save move file-backed data into the output instead of copying it, used by fix(executorch): move compile_and_save's engines into the program instead of copying them TensorRT#5045).
| Problem | Policies | Fix | Status |
|---|---|---|---|
The wheel's executorch package has no __init__.py, so executorch.__file__ is None and os.path.dirname(executorch.__file__) fails. executorch.__path__[0] works. |
C++ users of the wheel | needs a decision: add __init__.py, or document __path__ |
Measured on 1.6.0 |
CUDA backend: bf16 aten._grouped_mm has no kernel choice on the A100 (sm_80), so the export fails with NoValidChoicesError. |
cosmos3, praxis | #25017 (merged; issue #24902) | Merged into main after 1.6.0; not measured on LeRobot yet |
| CUDA backend: no kernel for scatter with a scalar source in deterministic mode. | none yet | needs an owner | Repro |
Python runtime: Method.execute holds the GIL, so other Python threads stall while it runs. |
multi-threaded callers | needs a decision: release the GIL during execute? | Measured |
Torch-TensorRT
- Fixed in 2.15.0: feat(dynamo): release model weights once their last engine is built TensorRT#4853, feat(dynamo): map_weights and low_memory - compile from memory-mapped weights, and convert a checkpoint without loading it TensorRT#4854 (with feat(dynamo): low_memory - compile from a weights file in one block, and release mapped weights by default TensorRT#4942), fix(dynamo): several correctness and speed fixes found compiling large models TensorRT#4936, [2.15] example: deploy LeRobot's pi0.5 policy with ExecuTorch and TensorRT TensorRT#4949, [2.15] Pin ExecuTorch 1.6.0 TensorRT#4950, fix(dynamo): save programs with no inputs, keep attention masks that are not plain causal, fix uint8 shape ops and views left to PyTorch, show the runtime TensorRT build number, keep plugins that run PyTorch out of ExecuTorch programs TensorRT#4953, fix(conversion): batch norm dtypes and stats, adaptive max pooling, FP8 zero amax and float32 quantize scales, int8 constants, torchao dequantize dtype, autocast refit, list outputs and dtypes, square and pad-slice lowering, float32 constant folding TensorRT#4978 and fix(dynamo): 0-dim tensors, float16 attention on TensorRT 11.3 and 11.4, autocast, runtime and other fixes; feat: opt-in autocast_model_regions, autocast_excluded_node_names and replace_interleave_stack_with_cat TensorRT#4995, plus fix(partitioning): resource partitioning RecursionError, tuple outputs and budget TensorRT#4963, fix(conversion): wrong attention, softmax and integer division results, and attention that fails to build TensorRT#4964, feat(conversion): optionally add each shared weight to the network once TensorRT#4965 and fix(dynamo): keep, move and refit the tensors that PyTorch nodes read after global partitioning TensorRT#4966 (picked in [2.15] Cherry-pick #4966, #4964, #4963 and #4965 TensorRT#4969).
- The Praxis-1 (27B) export to ExecuTorch with TensorRT: how to reproduce from source #25019 build for praxis uses these pull requests on top of 2.15.0, as they were when it was built. The notes describe each one as it is now:
- fix(dynamo): release weights before serializing the engine, not after TensorRT#5015: releases the weights before serializing the engine, so the export needs less host memory
- fix(kernels): plugin kernel limits: 48 KiB shared memory, tensor memory, pointer alignment hint TensorRT#5016: declines custom kernels above TensorRT's 48 KiB shared memory limit, lets a Triton kernel use tensor memory, and lets custom kernels opt in to Triton's pointer alignment hint
- feat(conversion): grouped_mm: leave large cases to PyTorch, or run them with a grouped GEMM kernel TensorRT#5021: leaves large mixture-of-experts grouped matmuls to PyTorch instead of the dense lowering (new setting
grouped_mm_dense_max_macs, with a warning when it declines one), and runs the others in TensorRT with a grouped GEMM kernel, using the GPU's own tcgen05 instructions on the Thor
- feat(conversion): grouped_mm: leave large cases to PyTorch, or run them with a grouped GEMM kernel TensorRT#5021: leaves large mixture-of-experts grouped matmuls to PyTorch instead of the dense lowering (new setting
- fix(dynamo): int64 sum and prod, truncating division sign, uint8 select and cast in the engine TensorRT#5019: reduces integer sum and prod in int64 like PyTorch, fixes the sign of truncating division, and keeps a select of a uint8 tensor and a cast to uint8 inside the engine. With
truncate_double=True, it runs a float64 copy of uint8 data as float32. - feat(dynamo): convert stable sort of index tensors with a counting sort TensorRT#5020: sorts the expert indices inside TensorRT with a stable counting sort (an empty row stays in PyTorch)
- fix(conversion): compute antialiased resize weights like PyTorch's CUDA kernel TensorRT#5023: computes antialiased resize weights like PyTorch's CUDA kernel, without NaN when a window's weights sum to 0. The build also converts antialiased bilinear resize by default, from the closed feat(conversion): convert small antialiased bilinear downscales by default TensorRT#5024
- perf(executorch): replay KV cache engines, cut per-call copies and work TensorRT#5075 (merged into main after 2.15; this build used it when it was fix(executorch): copy only the moving bindings through CUDA graph buffers TensorRT#5044): copies only the inputs and outputs that move through the CUDA graph buffers, so weights passed as inputs are not copied on every call. It now also replays CUDA graphs for engines that update a key-value cache in place, and skips repeated per-call CPU work
- fix(executorch): move compile_and_save's engines into the program instead of copying them TensorRT#5045 (draft, waits for Make save raise on failure; let save move file-backed data into the output instead of copying it #25099 and an ExecuTorch pin bump): moves each engine into the program instead of copying it, so the save needs its size on disk once
- fix: disk engine cache evicts only its own entries, compile_and_save with static-shape outputs, and a caller-chosen engine folder TensorRT#5026 makes the disk engine cache evict only the entries it wrote, lets
compile_and_saveexport engines whose output shapes are static but computed through data-dependent ops like a boolean mask write (2.15.0 refuses them), and lets the caller choose the folder for engine files insaveandcompile_and_save. - Many policies export only because some ops go to the CUDA backend next to the engines (the CUDA count under "Programs"). If Torch-TensorRT took those ops, each policy would build one engine or a few. fastwam is the exception: its own code copies a tensor to the CPU.
| Problem | Policies | Fix | Status |
|---|---|---|---|
On the PyTorch 2.16 nightly, torch.jit.script is gone. ModelOpt 0.48.0 calls it when it is imported, and every compile imports ModelOpt through is_quantized_by_modelopt when it is installed, so compiles fail with AttributeError. The TorchScript test groups fail the same way, so CI on main is red. |
all, on the 2.16 nightly with ModelOpt installed | pytorch/TensorRT#5059 | In review |
On recent PyTorch 2.16 nightlies, processed_hashes is a dict, so some compiles fail in post_lowering with 'dict' object has no attribute 'discard'. |
molmoact2 (Thor) | pytorch/TensorRT#5059 | In review; measured on molmoact2 |
sum and prod on integer tensors do not accumulate in int64 like PyTorch: an int32 sum wraps past 2**31, and an int32 product rounds past 2**24, with no error. torch.sum(x, dtype=torch.int64) does not help. |
none listed | pytorch/TensorRT#5019 | In review |
Cropping both axes of an image with a dynamic height and width (x.narrow(2, 0, 8).narrow(3, 0, 8)) fails to build (Could not get tensor shape). Cropping one axis works. |
none listed | needs an owner | Repro on main |
| Tensors above 8 dimensions (the Qwen-VL image patch layout) go to the CUDA backend. | eo1, lawam, lingbot_vla_v2, vla_jepa, wall_oss_05, wall_x | pytorch/TensorRT#5028 (opt-in) | In review; measured on wall_oss_05 |
Antialiased resize stays in PyTorch unless convert_antialiased_resize=True, so it goes to the CUDA backend. |
dm05, evo1, lingbot_vla_v2, vla_jepa, wall_x | needs a decision: convert by default, or set the option in the export? (pytorch/TensorRT#5023 makes the converted resize match PyTorch) | Not measured on LeRobot yet |
Packed variable-length attention (varlen_attn) has no converter: 32 of wall_x's 40 CUDA programs in the older recipe. |
wall_x, evo1, lingbot_va, wall_oss_05 | issue pytorch/TensorRT#5039 | Open |
| On aarch64 with glibc older than 2.39 (for example Ubuntu 22.04), there is no Torch-TensorRT 2.15.0 wheel, so pip backtracks to an older release without the runtime wheel. | all, on older aarch64 | issue pytorch/TensorRT#5034 | Read from PyPI on Nov 13 |
| The nightly route is not measured on LeRobot. The newest nightly (2.16.0.dev from Nov 15) has a runtime wheel that still pins the ExecuTorch nightly from Nov 5. | all, on nightly | issue pytorch/TensorRT#5035; measuring needs an owner | Read from the nightly index on Nov 15 |
torch_tensorrt.dynamo.compile ignores settings it does not know, so a typo (min_blok_size=1) silently keeps the default. |
all | pytorch/TensorRT#5068 (merged; issue pytorch/TensorRT#5040) | Merged into main after 2.15; not measured on LeRobot yet |
| A weight used by several engines is stored once per engine: on the Thor, lingbot_vla_v2's 2.73 GB of weights become 28.2 GB across its unrolled steps. | lingbot_vla_v2 (Thor) | issue pytorch/TensorRT#5036 | Measured |
The grouped_mm converter raises TypeError when the offsets are a constant, so the op stays in PyTorch. |
cosmos3 | issue pytorch/TensorRT#5038 | Measured |
| Attention and split fail to build when the sequence length is dynamic. LeRobot pads to a fixed length, so every call attends over the padding. | none (speed) | issue pytorch/TensorRT#5037 | Repro |
compile_and_save keeps every engine on disk twice until it returns. |
none listed (disk) | Draft: pytorch/TensorRT#5045, waits for #25099 (issue pytorch/TensorRT#5041) | Repro |
| A mixture-of-experts combine fused with the next residual add and RMSNorm gets a slow one-block-per-token kernel (bf16). | mixture-of-experts models | issue pytorch/TensorRT#5042 | Repro |
On the 2.15.0 packages, flux3 does not fit an H100. With the 9-D fold from 2.15 (collapse_high_rank_permutes) it becomes one engine of 52,473 nodes. The builder crashes on it (see "NVIDIA TensorRT"), and with weight sharing off it builds but needs 203.8 GiB of activation memory. |
flux3 | huggingface/lerobot#5213, in the newer build, where flux3 runs on the A100 | Fixed on the newer build |
| int8 math with an int8 constant does not wrap on overflow: wrong results, no error. | none so far | pytorch/TensorRT#4989 | Known issue for 2.15, targeted for 2.16 |
With enable_autocast, an in-place update is lost through a view taken before it: wrong results, no error. |
none so far | pytorch/TensorRT#4990 | Known issue for 2.15, targeted for 2.16 |
| ExecuTorch CUDA graph replay stops replaying when buffers move and shapes change often. Speed only. | none in steady state | pytorch/TensorRT#4991 | Known issue for 2.15, targeted for 2.16 |
NVIDIA TensorRT
Bugs in TensorRT itself (11.4 unless noted). Each one reproduces with TensorRT alone. "Workaround" says where Torch-TensorRT avoids it for now.
| Problem | Policies | Workaround | Status |
|---|---|---|---|
On the Thor (sm_110) only, fused attention (_gemm_mha_v2) with a mask rounds the scores to bf16. A TensorRT-only repro gives 0.12 error against 0.009 for PyTorch; evo1 and lingbot_vla_v2 miss their check there. |
evo1, lingbot_vla_v2 | none (float32 inputs avoid it but cost 2.2x) | Filed: NVIDIA/TensorRT#4938 |
The builder crashes when one scaled query (q * c) feeds 2 attention layers. A 6-layer TensorRT-only network crashes on every TensorRT from 10.16 to 11.4. flux3 hits it. |
flux3 | turn weight sharing off (the flux3 recipe does) | Repro ready |
| The builder keeps a host copy of a weight for every layer that reads it through a transpose: 1 GiB read 10 times costs 10.9 GiB. | xvla, eo1, flow-matching on 8 GB Jetsons | pytorch/TensorRT#4965 (opt-in) | Filed: NVIDIA/TensorRT#4934 |
| An engine build holds about 2.3 times the weights in host memory and 1.1 times on the GPU; on shared memory that is about 3.4 times. | lawam, vla_jepa on Orin Nano | none | Filed: NVIDIA/TensorRT#4933 |
| float32 attention on inputs cast from bf16 fails to build or crashes. | fastwam | pytorch/TensorRT#4964 | Filed: NVIDIA/TensorRT#4936 |
| A constant key read through a transpose is folded wrongly in fp16 and bf16 (error 1.8). | constant-key attention | pytorch/TensorRT#4964 | Filed: NVIDIA/TensorRT#4935 |
| Fused attention with a run-time bool mask never returns from its first execute at 2176 to 2304 query rows. | none blocked today | none | Filed: NVIDIA/TensorRT#4932 |
| On the Orin Nano, the builder often picks a bf16 GEMM kernel that runs about 24% slower than it measured. | pi05 (Orin Nano), speed only | none | Filed: NVIDIA/TensorRT#4937 |
| On the 2.15.0 packages, weight sharing made dm05's RoPE table, read by 290 matmuls, give wrong results. | dm05 | the older dm05 cells turned weight sharing off; the newer build passes with it on | Does not reproduce on the newer build |
| On the Thor, newer-interface plugin layers end up in one compiler region and the build grows host memory by 64 GiB. | lingbot_vla_v2 | pytorch/TensorRT#4953 (in 2.15) | Repro |
| Fused attention is 12% slower than unfused for evo1's shape. | evo1 | none | Measured |
With an IIfConditional, rows past the profile's opt size are left unwritten in 12 of 22 builds, and some builds write past the end of the output. |
none so far | none | Repro ready |
PyTorch
These show up only when a program is saved and loaded, or compiled ahead of time. None of these fixes is in torch 2.15, so the yellow cells need a patched torch. Could they go into a 2.15.x patch? Merged into main after 2.15: pytorch/pytorch#202898, pytorch/pytorch#202902, pytorch/pytorch#202925, pytorch/pytorch#202931 and pytorch/pytorch#204723.
| Problem | Policies | Fix | Status |
|---|---|---|---|
torch.export.save cannot save flat_apply (transformers' mask functions). |
wall_x, dm05 | pytorch/pytorch#202785 | Verified |
torch.export.load loses metadata on autocast regions that return nothing, and cannot load a program with varlen_attn after a plain import torch. |
lawam, molmoact2, wall_x | pytorch/pytorch#202925 (merged) | Verified |
torch.export recompiles the whole graph once per no_grad or autocast region, so exports with many regions take hours (molmoact2 over 4 h on the Thor). |
dm05, molmoact2 | pytorch/pytorch#204723 (merged) | Merged; verified on molmoact2 (Thor) |
If PyTorch first lists its device constructors while transformers has torch.linspace swapped, later linspace calls ignore their device. |
models built on the meta device | needs an owner | Found on LeRobot |
LeRobot
- Review the open pull requests:
- Import speed and install
- refactor: load robots, teleoperators and the rollout helpers without PyTorch huggingface/lerobot#4820: load robots, teleoperators and the rollout helpers without PyTorch
- fix(policies): install the dataset extra with policies that render a recipe huggingface/lerobot#5365: g05, eo1, wall_x, fineart_vla and wall_oss_05 install the dataset extra that their recipe step needs
- Loading checkpoints
- feat(policies): load pi0, pi0.5 and pi0-FAST checkpoints without first building random weights huggingface/lerobot#4775: pi0, pi0.5 and pi0-FAST without random init, and with transformers 5.22's SigLIP weight names
- feat(policies): load GR00T fine-tunes without NVIDIA's base model huggingface/lerobot#4778: GR00T fine-tunes without NVIDIA's base model
- fix(groot): fall back when a reloaded N1.7 VLM step's device is missing huggingface/lerobot#5195: GR00T N1.7 falls back to the CPU when a reloaded checkpoint's device is missing
- fix(fastwam): follow device moves, serve chunks, and run bfloat16 on the CPU huggingface/lerobot#5196: FastWAM follows device moves, serves chunks, and runs bfloat16 on the CPU
- fix(diffusion): load weights saved with the other compile_model setting huggingface/lerobot#5352: diffusion loads weights saved with the other
compile_modelsetting - perf(policies): read checkpoints on the CPU and copy them into the parameters where they were built huggingface/lerobot#5354: read checkpoints and PEFT adapters on the CPU and copy them into the parameters, so a GPU does not hold the weights twice
- feat(policies): load and run chosen parts of pi0.5 and GR00T N1.7 huggingface/lerobot#5359: load and run chosen parts of pi0.5 and GR00T N1.7
- Policies that pass
torch.export- fix(policies): let 8 policies pass torch.export huggingface/lerobot#5150: 8 policies
- fix(molmoact2): let single-example inference export with torch.export huggingface/lerobot#5147: molmoact2
- fix(policies): let EO-1, WALL-X and Wall-OSS 0.5 pass torch.export huggingface/lerobot#5162: eo1, wall_x and wall_oss_05
- fix(policies): let LingBot-VLA v2, LaWAM and VLA-JEPA pass torch.export huggingface/lerobot#5163: lingbot_vla_v2, LaWAM, VLA-JEPA, and LaWAM's whole action prediction exported on a vision grid
- CPU and kernels
- fix(lawam): let the VLM-to-LAM head take bfloat16 hidden states without autocast huggingface/lerobot#5214: LaWAM head in bf16 on the CPU
- fix(flux3): pass F3_NATTEN_BACKEND, run the VAE without NATTEN, serve frame checkpoints, and skip repeated work huggingface/lerobot#5213: flux3 passes its backend to NATTEN, runs the VAE without NATTEN, serves frame checkpoints, encodes the task frame directly, and skips repeated work
- Import speed and install
| Problem | Policies | Fix | Status |
|---|---|---|---|
lerobot-export and the torch-free lerobot-rollout --bundle.path exist only on the lerobot-export-stack branch. |
all | needs a decision: how to bring them upstream in reviewable pieces | Open |
| The export check for lingbot_va cannot work: rounding alone moves it to 0.52 against a limit of 0.2. Checking each program on its own inputs does work. | lingbot_va | needs a decision: check per program | Measured |
| evo1's check uses 1 frame where 2 gripper choices are nearly tied, so a correct float32 run fails it (1.48). 16 frames with up to 4 gripper flips passed all 30 correct runs and still caught the Thor bundle. | evo1 | needs a decision: check 16 frames | Measured |
| wall_x's recipe uses a 0.5 limit on purpose, because its checkpoint has bf16 parameters. Eager PyTorch alone varies by 0.09 to 0.12 between runs, correct exports land at 0.13 to 0.22, and broken exports at 1.1 or more. Today's checks are 0.14 to 0.19. | wall_x | decided: 0.5 limit | Measured |
| On the Orin Nano, the export loads weights the program never reads (vla_jepa 1.8 GiB, lawam 1.6 GiB) and runs out of memory on the 2.15.0 packages. | lawam, vla_jepa | needs an owner | Open |
| evo1 fits the Orin Nano only at TensorRT optimization level 0. | evo1 | pass --backend.optimization_level=0 to lerobot-export (on lerobot-export-stack) |
Fixed on the branch |
| On the DGX Spark, lingbot_va is slower than eager PyTorch with TensorRT (0.7x) and with the CUDA backend alone (0.7x), so the cause is not TensorRT. | lingbot_va | needs an owner: profile it | Measured |
Thanks to Adrian Wang (@cehongwang) for the low-memory Jetson path: pytorch/TensorRT#4854 compiles from memory-mapped weights, and pytorch/TensorRT#4949 deploys pi0.5 with ExecuTorch and TensorRT.
Activity
docs: bring lerobot-export and bundle-mode docs up to date
docs: bring lerobot-export and bundle-mode docs up to date
docs: bring lerobot-export and bundle-mode docs up to date
docs: bring lerobot-export and bundle-mode docs up to date
docs: bring lerobot-export and bundle-mode docs up to date
fix(lingbot_va): check each compiled program on its own in half preci…
docs: bring lerobot-export and bundle-mode docs up to date
fix(lingbot_va): check each compiled program on its own in half preci…
docs: bring lerobot-export and bundle-mode docs up to date
fix(lingbot_va): check each compiled program on its own in half preci…
docs: bring lerobot-export and bundle-mode docs up to date
fix(lingbot_va): check each compiled program on its own in half preci…
fix(lingbot_va): check each compiled program on its own in half preci…
fix(lingbot_va): check each compiled program on its own in half preci…
fix(lingbot_va): check each compiled program on its own in half preci…
fix(lingbot_va): check each compiled program on its own in half preci…
fix(lingbot_va): check each compiled program on its own in half preci…
fix(lingbot_va): check each compiled program on its own in half preci…
fix(lingbot_va): check each compiled program on its own in half preci…
fix(lingbot_va): check each compiled program on its own in half preci…
fix(lingbot_va): check each compiled program on its own in half preci…
fix(lingbot_va): check each compiled program on its own in half preci…