NVIDIA Jetson AGX Orin Graph-as-Policy LeRobot SO-101 MuJoCo

Graph-as-Policy for the LeRobot SO-101, on one Jetson AGX Orin

An SO-101 arm sorts coloured cubes into a box. The policy isn't a black-box network: it's a typed graph of skills (perception, VLM reasoning, inverse kinematics, verification), and it runs entirely on a single Orin. You can write the graph by hand, or describe the task in a sentence and let a local LLM generate it.

NVIDIA Jetson AGX Orin developer kit
Jetson AGX Orin 64 GB
L4T R39 · CUDA 13 · one docker compose
SimulationMuJoCo · LeRobot SO-101 tabletop
Graph runtimeGraph-as-Policy executor
PerceptionGrounding DINO + SAM3
VLM / LLMNemotron-3-Nano-Omni · llama.cpp

Demo

Watch the graph execute

Left: the SO-101's front camera. Right: the Graph-as-Policy workflow, with the node that is running outlined in orange. Each caption is built from that node's recorded output in the trace.

Graph-as-Policy graph executing next to the SO-101 simulation

Seed 2, order red → green → blue → yellow, sped up: all four cubes sorted into their own quadrants and each confirmed by the VLM. 262 s on the Jetson AGX Orin.

SO-101 sorting cubes into the green box
The episode from the scene camera.
Live MuJoCo viewer on the Jetson desktop
The live MuJoCo viewer on the Jetson desktop (--gui).

How it works

Everything runs on the Orin

One compose file starts the language model and the graph viewer. Each episode runs the simulator, the graph executor and the vision models side by side on the same device.

NVIDIA Jetson AGX Orin
docker compose · services vlm, viz, so101
Simulation

SO-101 tabletop

LeRobot's EnvHub MuJoCo scene: the SO-101, four 3 cm cubes and a green box. Front RGB-D, rendered with EGL.

Graph runtime

Graph-as-Policy

Runs the typed workflow, routes on each step's exit, and records every node's inputs and outputs in a trace.

Robot interface

Driver + IK

A GaP RobotIO driver and a damped-least-squares IK solver for the 5-DOF SO-101, both added by this package.

Perception

DINO → VLM → SAM3

Grounding DINO proposes boxes, a VLM tournament picks the right one, and SAM3 plus depth give a 3D oriented box.

Language

Nemotron-3-Nano-Omni

30B-A3B Q4_K_M on llama.cpp. It acts as the in-graph VLM, and writes graphs from sentences with thinking mode on.

Inspect

Graph viewer

Shows each run's graph, node data and VLM prompts. Open it over an SSH tunnel at localhost:9432.

Memory: the VLM takes about 32 GB and an episode about 15 GB (simulator, SAM3, DINO), so both fit together in the Orin's 64 GB of unified memory.

:8080 VLM · :9432 viewer

The graph

Four subgraphs, each owned by an SO-101 skill. Every step exits with a label, and the top level routes on those labels. In the sorting demo, every outcome loops back to the next colour.

1

Find the box

so101-locating-container

Send the arm home for a clear view, then locate the green box in 3D.

foundnot_found
2

Next cube

so101-next-cube

Pick the next colour in the order that hasn't been verified yet, then find that cube.

foundfinishednot_found
3

Pick

so101-picking-cube

Top-down grasp, jaws tangential, 45% opening. The gripper reading confirms the hold.

graspedfailed
4

Place + verify

so101-placing-in-container

Place in the colour's quadrant, go home, then the VLM checks the cube is inside the box.

verifiedmissedblocked

The loop never uses the simulator's ground truth. It ends when every colour is VLM-verified, after 3 tries per colour, or after 16 passes. Ground truth is only used in the final report.

Sentence → graph

Generate a graph with a local LLM

Graph-as-Policy's multi-agent codegen runs against Nemotron on the Jetson. The model only sees the five SO-101 skills, written as GaP skill bundles with contracts, canonical scripts and builder examples. A deterministic repair pass then fixes the small wiring slips a 30B model makes.

jetson · ~/workspace/so101-demo/so101-gap
$ .venv/bin/so101-gap-generate "pick the red cube and put it in the green box"
  ... coordinator → subgraph agents → validate (about 5–15 min)
  repair R0: added the missing top-level node for subgraph 'locate_red_cube'
  repair R4: 'pick_red_cube' conditional edges now route on router_field 'exit'
[so101-gap-generate] OK: graph/generated/pick_the_red_cube_.../task_00
  START → locate_container → locate_red_cube → pick_red_cube → place_red_cube → done

$ GRAPH=graph/generated/pick_the_red_cube_and_put_it_in_the_green_box/task_00 \
    docker compose run --rm so101
  [pick] holding (gripper 0.152)
  [verify] red cube in box? True ('YES The red cube is inside the green box.')
[so101-gap] SUCCESS: 1/1 cubes in the box

Repair rules (each change is reported)

  1. R0Add the top-level node for a declared subgraph the model routed to but never created.
  2. R1Make sure the box-locating step exists and runs first (no duplicates).
  3. R2Fill in a single-cube colour left unset, using the colour named in the sentence.
  4. R3Drop top-level steps that can't be reached from START.
  5. R4Route subgraph exits on router_field: "exit", which the runtime requires.
  6. R5Give every place step the same colour order, so each cube gets its own quadrant.

After repairing, the generator revalidates with GaP's own validator. tests/test_repair.py replays a real Nemotron output through these rules.

The SO-101 skill registry

SkillWhat it doesExits
so101-locating-containerFinds the green box (always the first step)found · not_found
so101-locating-cubeFinds one named cubefound · not_found
so101-next-cubeLoop head for several cubes in an orderfound · finished · not_found
so101-picking-cubeTop-down pick with the 5-DOF SO-101grasped · failed
so101-placing-in-containerPlaces in the colour's quadrant, then a VLM checkverified · missed · blocked

Results

Measured on the Jetson AGX Orin

"Cubes in box" is the simulator's ground truth, checked after the run. During the run the graph itself only uses camera images and the gripper reading.

4/4hand-written graph, seeds 0, 2, 3
1/1sentence-generated graphs (blue, red)
~2–3 sper Nemotron VLM call on the Orin
262 sfastest full 4-cube sort
GraphTaskResultTime
hand-writtenseed 2, red → green → blue → yellow4/4262 s
hand-writtenseed 0, red → green → blue → yellow4/4406 s
hand-writtenseed 3, yellow → blue → green → red4/4366 s
hand-writtenseed 13/4452 s
hand-writtenseed 4, blue → red → yellow → green2/4494 s
generated"pick the blue cube and put it in the green box"1/177 s
generated"pick the red cube and put it in the green box"1/174 s
generated"sort the cubes … yellow, red, blue"2/3195 s

Known weak spot: the single front-view VLM check ("is the X cube in the box?") can misjudge a green cube against the green box, or a half-hidden cube, in either direction. In the generated 3-cube run, the model wrote the cubes out in sequence instead of using the retrying loop skill, so one missed grasp ended the run.

Quick start

Run it on your Jetson

Tested on a Jetson AGX Orin 64 GB (L4T R39, CUDA 13, driver 595) with Docker and the NVIDIA runtime. SAM3's weights are gated, so you need a Hugging Face token with access.

install (once)
$ mkdir -p ~/workspace/so101-demo && cd ~/workspace/so101-demo
$ git clone https://github.com/kabilankb/so101-gap.git && cd so101-gap
$ huggingface-cli login            # SAM3 is gated
$ ./jetson/install.sh
run
$ docker compose up -d vlm viz     # Nemotron :8080 + viewer :9432
$ docker compose run --rm so101    # one episode, live GUI
$ SEED=3 ORDER=yellow,blue,green,red docker compose run --rm so101
$ GRAPH=graph/pick_one docker compose run --rm so101

To see the graph from your laptop, run ssh -N -L 9432:127.0.0.1:9432 atlas@<jetson-ip> and open http://localhost:9432. To build your own graph, start from graph/build_pick_one.py. The README has the full guide.