Skip to content

TensorRT: LeRobot policies that do not run yet, and what blocks them #24353

Open

Description

@shoumikhin

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_libero weights, 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

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.

  1. 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
  2. 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 (--tolerance changes 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
  3. Time the bundle, then eager PyTorch, on the same GPU, robot and checkpoint. The bundle run never imports PyTorch. lerobot-rollout logs 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

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

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

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.

cc @Gasoonjia @digantdesai

Activity

  1. added
    module: cuda
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: cuda

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions