Skip to main content
Deploy NVIDIA’s Cosmos3 Edge Policy DROID on 1 B200 and test it with a Python client. This example targets a Franka Panda arm with a Robotiq 2F-85 gripper.

NVIDIA's Cosmos3 DROID policy demo: placing a banana in a bowl in simulation.

What the model does

The model is a robot policy. It reads 3 camera views, the joint and gripper positions of the arm, and a task instruction. It returns the next 32 actions for the arm.

Inputs and output

The client sends 3 video tracks (wrist_view, exterior_view_1, exterior_view_2) and 3 commands (set_task_description, set_proprio_json, set_executed_step_json) to the robot policy on Reactor. The policy sends back the action_prediction message.
The client sends:
  • Video from 3 cameras, on the tracks wrist_view, exterior_view_1, and exterior_view_2.
  • The task, with set_task_description. For example: “Put the banana in the bowl.”
  • The robot state, with set_proprio_json: 7 joint positions in radians and the gripper position.
  • The executed step, with set_executed_step_json. Each chunk the model sends has a step number. When the robot finishes running a chunk, the client sends that step number back. This tells the model that the robot moved, so it can predict the next chunk from the new camera views and robot state.
The model sends one action_prediction message per chunk. step numbers the chunks from 0. action holds 32 rows. Each row has 7 absolute joint-position targets in radians, then 1 gripper command. The rows are for execution at 15 Hz, so one chunk covers about 2.1 seconds of motion.

When the model predicts

The model and the robot take turns. The model predicts a chunk, the robot runs it, and the client reports the result. Only then does the model predict the next chunk:
Sequence diagram. The client sends the task, robot state, and camera frames. The model sends action chunk step 0. The robot runs the actions. The client sends the new robot state and camera frames, then executed step 0. The model waits for new camera frames, then sends action chunk step 1. This repeats for every chunk.
  • First chunk: the model predicts it when it has a valid robot state and a frame from each camera.
  • Next chunks: the model predicts each one after it gets the executed step and a new frame from each camera. The new frames show the robot after it moved.
  • Reset: reset starts the loop again at step 0.
Model walkthrough has the code for these checks.

Requirements

  • A Reactor account with Serve access, remote builds, and capacity for 1 B200 instance.
  • The latest Reactor CLI.
  • Git, Python 3.12, and uv for the test client.
  • An API key for the account that owns the project.
The deployment and client test need no local Docker or GPU. The weights are public. Read the model card for its license and intended use.

Project structure

The model lives in one folder of the cookbook:
models/cosmos3-policy-droid/
reactor.yaml tells Reactor which class to serve and how to build its image. These are its main settings:
reactor.yaml (main settings)
The full file also sets the package index and environment variables that the build needs. Deploy it unchanged, except for the name. reactor deploy takes the model through 3 stages:
  • Build: the remote build waits for a worker, installs Reactor Runtime and the Python dependencies, and creates the image.
  • Promote image: Reactor copies and records the image for deployment. This can take several minutes after build output stops.
  • Start model: an instance pulls the image and calls load(). The model downloads missing source and weights, loads the checkpoint, and runs warmup.
Model walkthrough explains each file and the prediction step.

1. Prepare the project

Install the CLI:
Sign in, clone the cookbook, and open the model workspace:
Terminal
In reactor.yaml, set model.name to your account-qualified project name. Replace your-org with your account slug:
reactor.yaml (model name only)

2. Deploy the policy

Deployment lifecycle: build the image, promote it for deployment, start the model on 1 B200, then become ready for clients. Scaling production to zero stops the GPU instance.
Choose a region where your account has a B200 allocation. For example, if your allocation is in us-west:
Terminal
Replace us-west with your allocated region. Selecting a region does not grant capacity. If deployment reports no 'NVIDIA_B200' allocation, check your account capacity or contact Reactor. The CLI creates the project if needed, builds the image remotely, and deploys 1 B200 instance. On startup, the model downloads any missing source and weights, loads the weights, and runs warmup. The CLI waits for the deployment to report ready. Follow build and promotion progress in the deploy terminal. Once rollout starts, check the instance from another terminal in the model workspace:
Terminal
Status shows phases such as pulling_image, loading, and ready. Once an instance exists, follow its startup logs:
Terminal
Empty runtime logs during build or image promotion are expected. Those stages happen before the model starts.

3. Test the deployment

The test client is in the robotics/sim/notebooks folder of the cookbook:
robotics/sim/notebooks/
reactor auth login signs the CLI in for deployment commands. The Python client needs a separate API key. Create a key in API keys under the account that owns your deployment. From the model workspace, install the client dependencies. Export the key and project name in the same terminal where you run the client:
Terminal
REACTOR_MODEL identifies the project for the cleanup and log commands below. Sessions use production by default. Set the same project name in first_cosmos_actions.py by replacing reactor/cosmos-nano-policy-droid:
first_cosmos_actions.py (session setup)
Run the test:
Terminal
The script checks that chunk 0 holds a (32, 8) array of finite values. Then it prints the shape, the first action, and the time from request to reply, and closes the session:
Expected output
The test sends synthetic camera frames and robot state, so it checks the message flow from your client to the deployment and back.

What the client sends

The script connects the 3 camera tracks and subscribes to action_prediction. It then sends a task, synthetic camera frames, and sample joint and gripper positions:
first_cosmos_actions.py (simplified)
ReactorSession publishes the frames at the configured 15 fps. encode_proprio() formats the robot state as JSON. proprio_json contains a JSON string. Decoded, the state sent by this script looks like this:
Robot state inside proprio_json
Both fields contain lists of rows, even for a single observation. Joint positions are in radians. encode_proprio() creates this structure and serializes it for the command.

Check the response

The script waits for the first action_prediction message, checks it, and prints it:
first_cosmos_actions.py (simplified)
step identifies the chunk. action holds 32 rows. Each row has 7 absolute joint-position targets and 1 gripper value.

What gets validated

The model checks whether it has the inputs needed to predict. The client test checks the returned message: Passing the test confirms the message format and the first prediction. Connect a simulator runs the full feedback loop. Before you execute actions on hardware, check them against the joint, motion, and gripper limits of the robot.

4. Stop the deployment

Closing the client leaves the GPU instance running. Stop it from the same directory:
Terminal
The command waits for the change and prints the status. Your project and image remain available.
From the client directory, inspect startup or prediction errors:
Terminal

Understand the feedback loop

The test stops after one chunk. In a robot integration, request the next chunk after executing actions:
  1. Send updated robot state with set_proprio_json.
  2. Send the step of the chunk you executed with set_executed_step_json.
  3. Keep all 3 camera tracks publishing fresh frames after that.
Each executed step must be greater than the last one the model accepted. This model uses its own flow control, not Reactor stepped-generation mode.Model walkthrough shows the code that applies these checks.See the cookbook’s client contract for command payloads and frame timing.

Change the task

In a connected session, send set_task_description to change the instruction:
Client (before closing the session)
The new instruction applies to the next prediction and keeps the step counter. The next chunk still comes after the next executed step and new camera frames. Send updated observations and execution feedback as shown above. Keep task instructions within the contract’s 300-character limit.

Connect a simulator

The first action chunk confirms that your deployed policy can receive observations and return actions. The next step is to close the loop: execute those actions in a simulation, send the resulting camera views and robot state back to the model, and request the next chunk. The Cosmos DROID simulator provides that loop. Follow its setup instructions for Isaac Sim and an RTX-class GPU. If you scaled the deployment to zero, start it again before connecting:
Pass --model "$REACTOR_MODEL" to the simulator gateway to use your deployment. Start with a task, watch the robot respond, and try a new instruction in the same session.

Run the policy in simulation

Connect the simulator to your model and test the full observation → action → feedback loop.