翻篇收录说明
翻篇网页快照

Isaac GR00T 1.7 on Jetson Thor | Jetson AI Lab

https://www.jetson-ai-lab.com/tutorials/groot_n17_on_thor/

最近抓取:2026-12-04 17:25:41(北京时间)

最近内容变化:2026-12-02 04:14:48(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Deploy NVIDIA Isaac GR00T 1.7 Vision-Language-Action (VLA) model on NVIDIA Jetson AGX Thor with TensorRT mixed NVFP4 quantization.

正文摘录

Back to Tutorials Isaac GR00T 1.7 on Jetson Thor Deploy NVIDIA Isaac GR00T 1.7 Vision-Language-Action (VLA) model on NVIDIA Jetson AGX Thor with TensorRT mixed NVFP4 quantization. Authors Aditya Sahu Anqi Liu Deploy NVIDIA’s Isaac GR00T 1.7 Vision-Language-Action (VLA) model on NVIDIA Jetson AGX Thor with TensorRT mixed NVFP4 quantization, taking end-to-end inference from 125 ms down to 39.9 ms, a 3.1x speedup at 25 Hz, with no measurable loss in task success. What is Isaac GR00T 1.7? Isaac GR00T is NVIDIA’s open foundation model for generalized humanoid robot reasoning and skills. GR00T 1.7 pairs a vision-language backbone with a diffusion-transformer action head: it takes camera images, robot proprioceptive state, and a natural-language instruction, and emits a chunk of robot actions through a short flow-matching denoising loop. The same foundation model is post-trained onto different robot bodies, so the pipeline in this tutorial is not specific to any one embodiment: Unitree G1 AgiBot G1 YAM The backbone is nvidia/Cosmos-Reason2-2B, a Qwen3-VL architecture VLM (its config declares Qwen3VLForConditionalGeneration), loaded as a separate gated download rather than being bundled in the GR00T checkpoint, which is why Step 4 requires accepting its license. GR00T does not run all of it: the checkpoint sets select_layer: 16, and the loader physically pops text layers off the top until 16 remain, so 12 of Cosmos-Reason2-2B’s 28 text layers are discarded before inference. The model is a two-stage pipeline, and the two stages have very different performance characteristics, which turns out to be the key to optimizing it: StageComponentsWhy it costs timeBackboneCosmos-Reason2-2B vision tower (24 blocks) + text model (16 of 28 layers)Large weight matrices, memory-bandwidth boundAction headState/action encoders + AlternateVLDiT (32 layers) + action decoderRuns once per denoising step (4x by default) Why Jetson AGX Thor? VLA models fuse a vision encoder, a language model, and an action decoder into one pipeline that has to run at real-time control rates. Jetson AGX Thor brings Blackwell-class GPU compute with up to 128 GB of unified memory, so a 3B-parameter VLA fits entirely on-device with room for the TensorRT engines alongside it. Critically, Thor’s Blackwell GPU has native NVFP4 support, a 4-bit floating-point format with per-block scaling, which is what makes the aggressive quantization in this tutorial possible without the accuracy collapse you would get from 4-bit integer formats. Pipeline Overview Checkpoint ──► ONNX (per-component) ──► Calibrate (NVFP4/FP8) ──► TensorRT Engines ──► Inference StageWhat happens1. ExportEach component (ViT, LLM, DiT, encoders) exported to ONNX separately2. CalibrateModelOpt inserts Q/DQ nodes using 10 samples of real robot data3. BuildTensorRT compiles one engine per component, plus a cross-attention K/V engine4. VerifyCosine similarity of TRT output against the PyTorch reference5. BenchmarkMeasures PyTorch eager, torch.compile, and TensorRT end to end A single script (build_trt_pipeline.py) runs all five stages. Performance Benchmarked on Jetson AGX Thor Developer Kit (JetPack 7.2, MAXN power mode), GR00T-N1.7-LIBERO/libero_10, 4 denoising steps, 1 camera, batch size 1. Latencies are medians over 20 iterations after 5 warmup iterations. Inference BackendBackboneAction HeadE2E LatencyFrequencySpeedupPyTorch Eager47.7 ms68.2 ms~126 ms8.0 Hz1.00xtorch.compile48.6 ms46.8 ms~105 ms9.5 Hz1.20xTensorRT bf16 (full pipeline)27.0 ms45.0 ms~81 ms12.3 Hz1.54xTensorRT optimized + FP814.1 ms21.1 ms~44 ms22.6 Hz2.84xTensorRT optimized + mixed NVFP413.6 ms17.2 ms~40 ms25.1 Hz3.10x Accuracy holds across all three TensorRT configurations, and it holds where it matters most: closed-loop task success is on par with the PyTorch baseline. Note: these numbers are measured on JetPack 7.2, which is roughly 13% faster than JetPack 7.1 across every unoptimized configuration, so the speedup over the bf16 TensorRT baseline is 2.04x here rather than the 2.41x quoted against a JetPack 7.1 baseline. How the Optimization Works Two independent mechanisms combine to produce the end-to-end latency under 40 ms. Understanding which one targets which stage explains why you need both. 1. Per-component quantization Precision is chosen per component rather than uniformly, because the vision tower and the language model tolerate quantization very differently: PolicyViTLLMDiTAuxbaseline (none)fp32bf16bf16bf16fp8fp8fp8fp8fp16mixed_nvfp4fp8nvfp4nvfp4fp16 Even under the NVFP4 policy, accuracy-sensitive layers stay at higher precision: the LLM o_proj and down_proj, and the DiT attention, remain FP8. FP8 and NVFP4 are both Q/DQ recipes layered over an FP16 graph, so the TensorRT network boundary stays FP16 in either case. This is what shrinks the backbone from 27 ms to 13.6 ms. 2. Optimized execution profile This is a graph-restructuring pass, independent of precision, and it is where the action head goes from 45 ms to 17.2 ms: Cross-attention K/V hoisting. The DiT’s cross-attention keys and values depend only on the vision-language context, not on the denoising timestep. They are computed once and reused across all 4 denoising steps instead of being recomputed each step. This produces the extra dit_cross_kv_*.engine artifact you will see in the output directory. Offline timestep precomputation. Because the 4 denoising timesteps are fixed and known ahead of time, everything derived from them (AdaLN modulations, output modulations, action time embeddings) is computed at export time and saved to action_head_constants.pt. At runtime these are simply indexed. Linear-layer fusion. Projections that share an input are concatenated into a single larger GEMM, reducing kernel launches. CUDA graph capture of the whole action head, which is why the benchmark prints Action Head: TRT CUDA graph. Which engines get built (click to expand) EngineComponentPrecision under mixed_nvfp4vit_fp8.engineQwen3-VL vision tower, 24 blocksFP8llm_nvfp4.engineQwen3-VL text model, 16 layersNVFP4 (FP8 for o_proj/down_proj)vl_self_attention.engineSelfAttentionTransformer, 4 layersFP16state_encoder.engineCategorySpecificMLPFP16action_encoder.engineMultiEmbodimentActionEncoderFP16dit_nvfp4.engineAlternateVLDiT, 32 layersNVFP4 (FP8 attention)dit_cross_kv_nvfp4.engineHoisted cross-attention K/VNVFP4action_decoder.engineCategorySpecificMLPFP16 Lightweight operations stay in PyTorch: embed_tokens, masked_scatter, get_rope_index, and VLLN. Prerequisites Hardware NVIDIA Jetson AGX Thor Developer Kit NVMe SSD strongly recommended. Budget ~60 GB free (26 GB container, ~13 GB per engine build, ~7 GB assets) Software ComponentRequired VersionJetPack7.2 (L4T R39.x)CUDA13.0+Docker28.x+NVIDIA Container Toolkit1.18+Git LFSany recent Check your setup: cat /etc/nv_tegra_release # Should show R39 nvidia-smi # Should show CUDA 13.x, NVIDIA Thor docker --version # Docker 28.x or newer git lfs version # Must be present before cloning (see Step 2) Hugging Face access Every GR00T checkpoint loads the gated backbone nvidia/Cosmos-Reason2-2B. Accept its license at huggingface.co/nvidia/Cosmos-Reason2-2B before you start. Gating is automatic, so approval is immediate. Step 1: Set Jetson to Maximum Performance Boost all clocks for consistent benchmark results. # Set maximum performance power mode sudo nvpmodel -m 0 # Lock all clocks to maximum frequency sudo jetson_clocks Verify with: sudo jetson_clocks --show Step 2: Install Git LFS (before cloning) The Isaac-GR00T repository stores the Thor torchcodec wheel and the demo dataset parquet files as Git LFS objects, so install git-lfs before you clone. Install it with apt: sudo apt-get update && sudo apt-get install -y git-lfs git lfs install Step 3: Clone the Repository and Add the Optimization Patch 3.1 Clone Isaac-GR00T git clone https://github.com/NVIDIA/Isaac-GR00T.git cd Isaac-GR00T git checkout 9c7e746b2cd37a810070a98ef41d290a07e806c2 git lfs pull Confirm LFS content actually arrived. This should report a Zip archive, not ASCII text: file scripts/deployment/thor/wheels/torchcodec-*.whl Note: Pinned to commit 9c7e746 (2026-07-08). 3.2 Add the TensorRT Optimization Patch Upstream Isaac-GR00T at this commit includes the bf16 TensorRT pipeline but not the quantization and execution optimizations. From the root of the checkout (Isaac-GR00T/), run the helper script to add them: wget -qO- https://www.jetson-ai-lab.com/code-samples/groot_n17_on_thor/download.sh | bash This applies a patch touching only scripts/deployment/ plus one test file (13 files, +2720/−217 lines), adding four new modules: n1d7_optimization_config.py: precision policy, the single source of truth shared by export, build, and runtime calibration.py: per-layer quantization recipes and the calibration loop n1d7_optimized_export.py: builds and exports the restructured action-head graph n1d7_optimized_runtime.py: executes the restructured inference loop and extending export_onnx_n1d7.py, build_tensorrt_engine.py, build_trt_pipeline.py, trt_model_forward.py, benchmark_inference.py, and standalone_inference_script.py. Step 4: Authenticate with Hugging Face hf auth login --force hf auth whoami # must print your username Step 5: Download the Checkpoint and Calibration Dataset # Model checkpoint (~6.5 GB) hf download nvidia/GR00T-N1.7-LIBERO \ libero_10/config.json libero_10/embodiment_id.json \ libero_10/model-00001-of-00002.safetensors \ libero_10/model-00002-of-00002.safetensors \ libero_10/model.safetensors.index.json \ libero_10/processor_config.json libero_10/statistics.json \ libero_10/experiment_cfg/conf.yaml \ libero_10/experiment_cfg/config.yaml \ libero_10/experiment_cfg/dataset_statistics.json \ --local-dir checkpoints/GR00T-N1.7-LIBERO # Calibration dataset for quantization (~614 MB) hf download --repo-type dataset IPEC-COMMUNITY/libero_10_no_noops_1.0.0_lerobot \ --local-dir examples/LIBERO/libero_10_no_noops_1.0.0_lerobot/ # GR00T needs its modality descriptor inside