7 min read engineering

Running a robot's policy from a cloud GPU

At Qualia, we tested what happens when the models that control our robots run on cloud GPUs rather than locally. The robot sends camera frames over Wi-Fi to a remote provider. The cloud compute runs the model, which predicts the robot's next actions, and sends them back for the robot to execute. We evaluated the performance of the approach and timed every step. The arm never once had to wait for the cloud, and the success rate was the same as with local compute.

Why

Why move the model off the robot

Most robot policies run on an embedded GPU computer on the robot, such as a NVIDIA Jetson. That keeps the network out of the loop, but it ties every model to that computer’s memory and power. A bigger model may not fit or run in time, and every new version has to be prepared for each robot.

A cloud GPU removes both limits. One GPU can serve several robots, and moving to a new model is as simple as restarting a server. We keep the compiled model online, and a fresh cloud GPU downloaded it in 40 s, ready to serve.

The problem

The arm can’t stop and wait

A robot arm moves in small steps, thirty times a second. If it has to wait for an answer from far away, it stops, and a stop in the middle of a grasp is a failure. The real question for us was whether the arm could keep moving smoothly while answers travel back and forth.

Setup

One robot, three cameras, a model in the cloud

The robot is an OpenArm with two arms and three cameras, one looking at the scene and one on each wrist. Its model is π0.5 from Physical Intelligence, which we fine-tuned on our own demonstrations. The model ran on a NVIDIA L40S GPU in the cloud. The robot was located in Copenhagen, and the cloud provider in Stockholm.

With the model in the cloud, the robot side only handles the cameras and plays the plans, so it no longer needs a powerful computer of its own. We tested two such setups, a Jetson Orin and a laptop with a NVIDIA RTX 4050 GPU. We also compared them with the model running on the robot itself, on a NVIDIA Jetson Thor.

How it works

Three changes made it work

The three changes are smaller images, a compiled model, and asking for the next plan early.

Only the model moves, on the robot it runs on the Jetson, in the cloud the robot sends small images out and plays the plan that comes back

Top, the model on the robot’s Jetson. Bottom, the same robot with the model on a cloud GPU. Small images go to the cloud GPU and an action plan comes back, everything else stays on the robot.

Smaller images 158 KB → 24 KB

1. Send only what the model looks at

The model only looks at small images, 224 by 224 pixels. Instead of sending full camera frames, the local compute crops and shrinks each one first, the same way the model’s training images were prepared, so the model sees what it learned from. A request then carries only 24 KB instead of 158 KB. On the Jetson Orin and on the laptop’s RTX 4050, this happens on the GPU. The frames go through GStreamer, a standard video-processing library, straight into GPU memory, where the image preprocessing takes 2 ms or less. Only the small images are then compressed and sent.

Faster model 59 ms → 27 ms

2. A compiled 8-bit model needs less than half the inference time

We compiled the model with NVIDIA TensorRT and quantized it to 8 bits (fp8). On the L40S GPU in the cloud, it processes a request in 27 ms. In PyTorch, the framework it was trained in, the same request takes 59 ms. Its answers match the original model’s almost exactly (a cosine similarity of 0.9999, where 1 means identical).

One request from a laptop shows what the first two changes did together. The smaller images cut the upload from 25 to 10 ms, spare the server its own 10 ms crop and shrink, and are faster to decode, 3 ms instead of 7.

Cropping and shrinking on the robot, and a compiled model, take one request from 104 to 46 ms. Sending full camera frames with the PyTorch model, upload 158 KB 25 ms, decode 7 ms, crop and shrink on the server 10 ms, model 59 ms, download 3 ms, 104 ms. Cropping and shrinking first with the compiled fp8 model, crop and shrink on the robot 2 ms, upload 24 KB 10 ms, decode 3 ms, model 27 ms, download 4 ms, 46 ms.

RTC 20 steps ahead

3. Asking early keeps the arm smooth

The model sends an action plan, not a single movement. It is 35 steps, a little over a second of movement. The robot plays it step by step and asks for the next plan before it runs out.

A new plan made from scratch doesn’t know what the robot is still executing, so it can start somewhere slightly different, making the arm jump at the switch.

Real-time chunking, or RTC (Black, Galliker and Levine, 2025), removes that jump. Each request carries the part of the current plan the robot has not played yet. The model builds the new plan to match it, exactly for the steps the robot will play while it waits, then less and less, so the new plan can still follow what the cameras see.

That needs enough of the old plan left to blend. The robot asks when 20 steps, about two thirds of a second, are left. About 5 pass while the request travels, and the other 15 are where the two plans blend.

The next plan arrives while the current one still has half a second to run

Asking 8 steps ahead left only 3 steps to blend, and the arm still jumped at most switches. At 20, the jumps disappeared.

Asking for the next plan earlier removes the jumps at each switch

Results 30 ms in the cloud

Where the time goes, from camera frame to moving arm

In the cloud, every request took the same 30 ms, whether it came from a laptop or a Jetson, 3 ms to decode the images and 27 ms for the model. What changes is the robot’s side of the loop.

On the laptop

A request is only part of the loop. On the real arms, the robot also has to merge the new action plan, pass it through a safety filter that limits how fast each joint may move, and send it to the arm, whose motors then have to move.

On the laptop, from camera frame to moving arm, about 178 ms. Frame to GPU, crop, shrink, compress 4 ms, upload 10 ms, decode 3 ms, model 27 ms, download 4 ms, RTC merge and safety filter 15 ms, command applied at 62 ms, the arm's motors move it into place 116 ms, arm in place at 178 ms.

The same request as above, now on the real arms, followed by what the robot does until the arm moves.

Most of the time between camera frame and moving arm is the arm’s own motors, which take just as long with the model on the robot.

Faster than the robot’s own computer. On the robot’s own Jetson Thor, one plan takes 63 ms to compute, more than twice as long as in the cloud.

On a Jetson Orin

The Jetson Orin runs the same steps. Only the trip to the cloud and back is left out here, because it depends on the connection the robot has.

On the Jetson, from camera frame to moving arm, the network trip left out

The Jetson Orin takes longer than the laptop to get the camera frames ready and compressed, about 20 ms against 4, and to put the new plan into play, about 35 ms against 15.

Takeaway

So would we run a robot from the cloud?

Yes, on a good connection. The robot’s own computer can stay small, and a bigger model only needs a bigger cloud GPU, not new hardware on every robot.

To try this yourself, start by measuring how long a request takes on your robot and asking for the next action plan early enough to cover it. Smaller images and a compiled model then make every request faster. The GPU was in Stockholm, a short trip from the robot in Copenhagen. A server much further away adds its distance to every request, so pick one close to the robot.