Seeed-Jetson-DevelopTool / gr00t-n1-6-deploy-agx
AGENTS.md57 starsChanged 4 months agoMITView on GitHub
Fine-tune NVIDIA Isaac GR00T N1.6 for the LeRobot SO-101 arm and deploy on AGX Orin 64G. Covers environment setup on AGX Orin and fine-tuning server, SO-ARM data collection, dataset format conversion, L20 GPU training, and inference deployment. Requires JetPack 6.2 and ≥48GB VRAM for fine-tuning.
- Pipes a download into a shell
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository297 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-nvrAGENTS.md
- allxon-ota-updateAGENTS.md
- allxon-setupAGENTS.md
- alwaysai-setupAGENTS.md
- backup-restoreAGENTS.md
- bsp-source-buildAGENTS.md
- clawdbot-developmentAGENTS.md
- cochl-sense-setupAGENTS.md
- cvedia-setupAGENTS.md
- dashcamnet-xavier-nx-multicameraAGENTS.md
- deciai-setupAGENTS.md
- deepseek-quick-deployAGENTS.md
- deploy-deepseek-mlcAGENTS.md
- deploy-depth-anything-v3AGENTS.md
- deploy-diaAGENTS.md
- deploy-efficient-vision-engineAGENTS.md
- deploy-frigateAGENTS.md
- deploy-live-vlm-webuiAGENTS.md
- deploy-nvbloxAGENTS.md
- deploy-ollama-anythingllmAGENTS.md
- deploy-riva-llama2AGENTS.md
- developtool-deviceAGENTS.md
- disk-encryptionAGENTS.md
- diy-bsp-buildAGENTS.md
- ethercat-communicationAGENTS.md
- ethercat-setupAGENTS.md
- finetune-llm-llama-factoryAGENTS.md
- fix-browser-snap-jetsonAGENTS.md
- gapi-setupAGENTS.md
- generative-ai-introAGENTS.md
- gpt-oss-liveAGENTS.md
- gr00t-n1-5-deploy-thorAGENTS.md
- hardhat-setupAGENTS.md
- hybrid-bsp-dk-to-recomputerAGENTS.md
- imx477-a603-setupAGENTS.md
- j501-viola-fruit-sortingAGENTS.md
- jetpack5-ssd-boot-fixAGENTS.md
- jetpack-flash-wsl2AGENTS.md
- jetpack-jetson-overviewAGENTS.md
- jetpack-ota-updateAGENTS.md
- jetson-ai-toolsAGENTS.md
- jetson-docker-setupAGENTS.md
- jetson-faqAGENTS.md
- jetson-pc-wired-shareAGENTS.md
- jetson-project-galleryAGENTS.md
- jetson-resource-indexAGENTS.md
- jetson-tutorial-exercisesAGENTS.md
- ko-module-buildAGENTS.md
- l4t-differencesAGENTS.md
- langchain-output-formattingAGENTS.md
- lerobot-env-setupAGENTS.md
- llama-cpp-rpc-distributedAGENTS.md
- llm-interface-controlAGENTS.md
- local-chatbot-multimodalAGENTS.md
- local-chatbot-physicalAGENTS.md
- local-llm-text-to-imageAGENTS.md
- local-rag-llamaindexAGENTS.md
- lumeo-setupAGENTS.md
- maskcam-nanoAGENTS.md
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Run one phase at a time. After each phase:
- Very specific: line 14
If output contains [STOP] → stop immediately, consult the failure decision tree below.
- Very specific: line 15
If output ends with [OK] → tell the user "Phase N complete" and proceed to the next phase.
- Distinctive: line 42
Create virtual environment and install LeRobot dependencies:
- Distinctive: line 119
Follow the complete SO-ARM tutorial: https://wiki.seeedstudio.com/lerobot_so100m_new/
- Very specific: line 146
If modality.json is missing, copy from: https://github.com/NVIDIA/Isaac-GR00T/blob/main/demo_data/cube_to_bowl_5/meta/modality.json
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fine-tune GR00T N1.6 for LeRobot SO-101 Arm and Deploy on AGX Orin
Execution model
Run one phase at a time. After each phase:
- Relay all command output to the user.
- If output contains
[STOP]→ stop immediately, consult the failure decision tree below. - If output ends with
[OK]→ tell the user "Phase N complete" and proceed to the next phase.
Prerequisites
| Requirement | Details |
| Inference device | AGX Orin 64G with JetPack 6.2 |
| Robot arm | LeRobot SO-101 (leader + follower) |
| Cameras | 2× USB cameras (named wrist and front) |
| Fine-tuning server | GPU with ≥48GB VRAM (L20 recommended, server rental OK) |
| Tools | uv package manager, Python 3.10 |
Phase 1 — Set up GR00T N1.6 environment on AGX Orin (~15–30 min)
Clone and checkout the specific commit:
git clone https://github.com/NVIDIA/Isaac-GR00T.git
cd Isaac-GR00T
git checkout d483f00b1c13116bda020bead9d16dca497b2f6d
git submodule update --init --recursiveCreate virtual environment and install LeRobot dependencies:
uv venv .venv --python python3.10
source .venv/bin/activate
cd gr00t/eval/real_robot/SO100
uv pip install -e . --verbose
uv pip install --no-deps -e ../../../../Download pre-compiled .whl files for AGX Orin (PyTorch, TorchVision, Flash-Attention, TorchCodec, Triton) from links in references/source.body.md. More wheels at https://pypi.jetson-ai-lab.io/jp6/cu126
Install wheels (flash-attn and torchvision must be installed AFTER pytorch):
source .venv/bin/activate
pip install torch-*.whl
pip install flash_attn-*.whl torchvision-*.whl torchcodec-*.whl triton-*.whlComplete final dependency installation:
cd Isaac-GR00T
source .venv/bin/activate
pip install -e .[base]
sudo apt update && sudo apt install ffmpeg[OK] when python -c "import torch; print(torch.cuda.is_available())" returns True.
Phase 2 — Set up environment on fine-tuning server (~10–20 min)
git clone https://github.com/NVIDIA/Isaac-GR00T.git
cd Isaac-GR00T
git checkout d483f00b1c13116bda020bead9d16dca497b2f6d
git submodule update --init --recursiveuv venv .venv --python python3.10
source .venv/bin/activate
cd gr00t/eval/real_robot/SO100
uv pip install -e . --verbose
uv pip install --no-deps -e ../../../../Install PyTorch for your server's CUDA version (find commands at https://pytorch.org/get-started/previous-versions/):
source .venv/bin/activate
# Example for CUDA 12.8:
# pip install torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cu128Complete installation (flash-attn AFTER pytorch):
cd Isaac-GR00T
source .venv/bin/activate
pip install --no-build-isolation flash-attn==2.8.2.post1
pip install -e .[base]
pip install torchcodec==0.4.0
sudo apt update && sudo apt install ffmpeg[OK] when environment is ready on the server.
Phase 3 — Collect data with SO-ARM
Follow the complete SO-ARM tutorial: https://wiki.seeedstudio.com/lerobot_so100m_new/
Key steps: configure motors → assemble → calibrate (no cameras during calibration) → add cameras → record dataset.
Camera parameter names for GR00T N1.6 must be wrist and front:
--robot.cameras="{ wrist: {type: opencv, index_or_path: 2, width: 640, height: 480, fps: 30}, front: {type: opencv, index_or_path: 6, width: 640, height: 480, fps: 30}}"If you use different names, you'll need to modify parameter files and keywords in the source code during training and deployment.
Upload the collected dataset to your fine-tuning server manually (recommended over Hugging Face Hub download due to network issues).
[OK] when dataset is available on the fine-tuning server.
Phase 4 — Convert dataset and fine-tune (~varies)
Convert LeRobot v3 dataset to v2 format (if needed):
cd Isaac-GR00T/scripts/lerobot_conversion
python convert_v3_to_v2.py --repo-id seeed/grap_fruitIf modality.json is missing, copy from: https://github.com/NVIDIA/Isaac-GR00T/blob/main/demo_data/cube_to_bowl_5/meta/modality.json
Download pre-trained model from https://huggingface.co/nvidia/GR00T-N1.6-3B
For single-GPU fine-tuning, modify Isaac-GR00T/gr00t/data/dataset/factory.py:
# Change torch.distributed.barrier() to:
import torch.distributed as dist
if dist.is_available() and dist.is_initialized():
dist.barrier()Run fine-tuning:
export NUM_GPUS=1
CUDA_VISIBLE_DEVICES=0 python \
gr00t/experiment/launch_finetune.py \
--base-model-path nvidia/GR00T-N1.6-3B \
--dataset-path ./demo_data/cube_to_bowl_5 \
--embodiment-tag NEW_EMBODIMENT \
--modality-config-path examples/SO100/so100_config.py \
--num-gpus $NUM_GPUS \
--output-dir /tmp/so100 \
--save-total-limit 5 \
--save-steps 2000 \
--max-steps 2000 \
--use-wandb \
--global-batch-size 32 \
--dataloader-num-workers 4[OK] when training completes and checkpoint is saved. Transfer checkpoint to AGX Orin.
Phase 5 — Run inference on AGX Orin 64G
Terminal 1 — Start inference server:
source .venv/bin/activate
uv run python gr00t/eval/run_gr00t_server.py \
--model-path /tmp/so100_finetune/checkpoint-10000 \
--embodiment-tag NEW_EMBODIMENTTerminal 2 — Start inference client:
source .venv/bin/activate
uv run python gr00t/eval/real_robot/SO100/eval_so100.py \
--robot.type=so101_follower --robot.port=/dev/ttyACM0 \
--robot.id=orange_follower \
--robot.cameras="{ wrist: {type: opencv, index_or_path: 0, width: 640, height: 480, fps: 30}, front: {type: opencv, index_or_path: 2, width: 640, height: 480, fps: 30}}" \
--policy_host=localhost --policy_port=5555 \
--lang_instruction="grasp fruit into plate"Adjust --robot.port and camera index_or_path for your setup.
Expected: 8 actions output per inference cycle. Robot arm executes the learned grasping behavior.
[OK] when the robot successfully performs the task.
Failure decision tree
| Symptom | Action |
uv not found | Install with pip install uv or curl -LsSf https://astral.sh/uv/install.sh | sh. |
| Wheel install fails on AGX Orin | Ensure flash-attn and torchvision are installed AFTER pytorch. Check Python version matches wheel (3.10). |
torch.cuda.is_available() returns False | Reinstall GPU PyTorch wheel. Verify CUDA is installed with nvcc --version. |
| Dataset conversion fails | Ensure dataset is in LeRobot v3 format. Check modality.json exists in meta folder. |
| Single-GPU training crashes with distributed error | Apply the torch.distributed.barrier() fix in factory.py. |
| OOM during fine-tuning | Ensure ≥48GB VRAM. Reduce --global-batch-size. |
| Camera names mismatch | GR00T N1.6 expects wrist and front. Re-collect data or modify source code parameter files. |
| Serial port not found | Check ls /dev/ttyACM*. Ensure arm is connected before cameras to avoid port conflicts. |
| Inference server won't start | Verify checkpoint path is correct. Check CUDA and PyTorch are working. |
Reference files
references/source.body.md— full original Seeed tutorial with wheel download links, fine-tuning parameter tables, dataset structure requirements, and demo video (reference only)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

