1 Two seconds at a time
A pose of the G1 is 36 numbers, as the MuJoCo simulator stores it. Three give the position of the pelvis, four its orientation as a quaternion, and 29 the angles of its joints: six per leg, three in the waist, seven per arm. The planner reads four poses (the last 133 ms at 30 frames a second) and writes up to 64, which is just over two seconds. It writes them in tokens of four frames. A small head first decides how many tokens this plan needs, between 6 and 16.
What you ask
context_mujoco_qpos | the last 4 poses |
mode | one of 27 documented styles (the graph has room for 29) |
movement_direction, facing_direction | where to go and where to look, on the floor plane |
target_vel | speed in m/s, or −1 for the style's own |
height | pelvis height for squat, kneel and lying |
random_seed | "variety", see §4 |
allowed_pred_num_tokens | which plan lengths are allowed |
What is inside (parameters)
Layer by layer
2 Drive it
The figure is the G1, drawn from its joint angles with the offsets of its URDF: left side amber, right side blue. Every plan comes from the planner running in your browser. Keep it going and the page replans from the last frames before each plan runs out, as a controller on the robot would. Drag to orbit, scroll to zoom. The planner runs on WebAssembly here. On WebGPU, most of its index arithmetic falls back to the CPU: it was about 9× slower in testing and returned a standing plan when asked to walk.
3 Inside one plan
The core is a 16-layer transformer, 1,024 wide, with 16 attention heads. It works on the 16 four-frame tokens of the plan. Each map below is one layer's attention, averaged over its heads: row i shows which tokens token i read from (time runs left to right and top to bottom). Click a layer to see its heads. The bars show how the length head voted.
Attention per layer (mean over heads, last plan)
Heads of layer 1
How long to plan (length head, softmax)
Same request, eight seeds
4 Residues of the motion capture
The styles are stored recordings
The model file holds more than weights. Eight tables of shape [29 modes × 150 frames × …]
sit among the initializers: pelvis heights, the positions of 34 body parts, their rotations and,
for the punches, whole joint-angle clips. These are frames of retargeted motion capture, one
short snippet per style. When you pick a mode, the graph looks up four of that mode's stored
frames and hands them to the transformer as the pose to head for. Below are all 29 snippets,
drawn straight from the tables and played back. Click one to drive it.