NEWAI chat: ask your fleet anything, in plain language. Chat with your fleet Read more →

How to update a VLA model on robots remotely

Step by step, how to ship new VLA weights to robots in the field, with checksums, resumable downloads, atomic switches, warm-up, shadow tests and rollback.

Illustration for "Update a VLA model remotely": a robot arm, a mobile robot, with the label "v13 → v14 · atomic switch"

At Upswift, an update was a few megabytes of packages, and a bad one usually crashed. With an AI-powered robot, the update is the robot's behavior. The old machines ran fixed programs. A robot running a VLA (vision-language-action model) decides what to do many times a second from what its cameras see, and the weights you ship are what it decides with. So a model update is a behavior change, delivered as gigabytes over a link you don't control, to a machine that moves near people, far from anyone who can walk over and press stop.

This post is the procedure I'd follow, step by step, and the failure modes each step is there to prevent. It assumes the stack from the production software stack for AI-powered robots: the policy runs in a container, and the weights live on disk outside the image.

The short answer: Ship the weights, normalization stats and config as one versioned bundle with a sha256, download it with resume, extract it into a new folder and switch a current symlink atomically, keeping the previous version on disk. Restart the policy, warm it up and check its output before it acts. Test a new model in shadow mode first, roll it out in phases, and roll back by switching the link back.

First, know what you're shipping

"The model" is never just one weights file. For a typical VLA checkpoint, the thing that has to arrive together is:

  • The weights. Usually safetensors, often several files.
  • Normalization stats. The mean and std (or quantiles) used to normalize robot state and unnormalize actions. These come from the training data.
  • The model config. Action horizon, chunk size, image resolution, which cameras in which order.
  • Processor and tokenizer files. For the language part of the input.
  • The code version that can load it. A checkpoint from a newer training run may need a newer version of the policy code.

The dangerous one is normalization stats. Ship new weights with the old stats and nothing crashes. Inference runs, actions come out, they're the right shape. They're just scaled a little wrong, so the gripper closes 8 mm short or the arm overshoots. The robot does the wrong thing confidently.

So treat these as one bundle with one version, and put a small manifest in it that the policy checks at load time:

{ "name": "picker-pi05", "version": "v14", "base": "pi05",

"min_policy_code": "3.2.0", "action_horizon": 50,

"cameras": ["wrist", "top"], "image_size": [224, 224] }

If the running code is older than min_policy_code, or the cameras on this robot don't match, the policy refuses to load and says why. Failing loudly at load beats failing quietly at the first grasp.

Step 1: Package it with a checksum

Pack the bundle as one archive (picker-pi05-v14.tar), compute its sha256, and upload it to object storage the robots can reach over HTTPS. Two rules:

  • Versions are immutable. Never upload a new file under an existing version. If v14 was wrong, the fix is v15. Otherwise two robots that both say "v14" can run different weights, and you can't reason about anything.
  • The checksum travels with the release, not with the file. The release says "download this URL, expect this sha256". The robot checks against what the release says, so a corrupted or swapped file on the server can't get through.

Step 2: Check before you touch anything

Before downloading gigabytes, check that the robot can take the update:

  • Free disk. You need room for the archive, the extracted folder, and the previous version you're keeping. Roughly three times the bundle size during the update. Check for that, and leave a floor so the download never fills the disk.
  • The robot isn't busy. Never start an update in the middle of a task. The application should be able to say "I'm working, come back later", and the update should wait.
  • The network. If the robot is on a cellular plan, a 4 GB download can eat a month of data. Wait for an unmetered link, or schedule it.
  • Battery and time window. A mobile robot at 15% battery, or a factory robot during a shift, should wait for its window.

If these never hold within the release's time limit, fail without having changed anything. A robot that refused an update is fine. A robot that started one and couldn't finish is a problem.

Step 3: Download with resume, then verify

The link will drop. A robot on LTE moving between aisles loses signal at 80% of a download, and a download that restarts from zero every time may never finish.

  • Resume with HTTP range requests. Keep the partial file and continue from where it stopped.
  • Verify the sha256 before anything else uses the file. Only a verified file moves forward.
  • Cache by hash. If the release is retried, or rolled back and tried again, a file that already passed its check shouldn't be downloaded again.
  • Give slow links time. Fail on "no data for a minute", not on "took longer than five minutes". A slow download that finishes is fine.

Step 4: Versioned folders and an atomic switch

Never extract into the folder the robot is running from. Extract into a new folder next to the old ones:

/opt/models/picker/v13/

/opt/models/picker/v14/ <- extracted and checked here

/opt/models/picker/current -> v13

Then switch current with one atomic operation. On Linux, ln -sfn is not atomic: it removes the link and creates a new one, and a process reading in between sees nothing. The atomic way is to create the new link under a temporary name and rename it over the old one:

ln -s v14 /opt/models/picker/current.tmp

mv -T /opt/models/picker/current.tmp /opt/models/picker/current

At every moment, current points at a complete version. A power cut can happen before the rename (still v13) or after it (v14), never during.

Keep the previous version on disk. That's your rollback, and it should cost one rename, not a 4 GB download. If you prune old versions to save space, make sure the pruning can never delete the version you'd roll back to.

Step 5: Load, warm up, and check on the robot

The running policy has the old weights in memory. Switching the link changes nothing until the policy loads the new ones. You have two options, and I'd pick the restart:

  • Restart the policy service. Clean, simple, and it frees the old model's GPU memory first.
  • Hot swap in the process. Load the new weights while the old ones still serve, then switch. Tempting, because there's no gap. But for a while both models sit in GPU memory. On a Jetson Orin with 8 GB shared between CPU and GPU, two copies of a VLA often don't fit, and the out-of-memory kill takes the old model down with the new one.

Then warm up before the policy is allowed to act. The first inference after a load is slow: kernels compile, caches fill, and a TensorRT engine may need to be built, which can take minutes. If the robot starts its task during that, the first action chunk arrives seconds late. With ROS 2, this is what lifecycle nodes are for: load and warm up in configure, act only after activate.

Before activating, run a quick check on the robot itself. Feed one recorded observation through the model and check that the output has the expected shape, contains no NaN or Inf, and came back within the latency budget. This catches the wrong bundle, the wrong code version, and a model that ended up on the CPU because CUDA didn't initialize.

Make this check part of the update, not something someone runs afterwards. If it fails, the update fails, and everything rolls back.

Step 6: Shadow test before it acts

A model that loads, warms up and produces valid numbers can still be a worse policy. The best test before it drives is to run it on the robot's real inputs without letting it drive. That's shadow mode: the candidate gets the same live observations as the current model, in a background thread, and its actions are compared, never sent to the motors.

What you compare: how often the candidate agrees with the current model (same class for a classifier, a small action distance for continuous actions), and how its latency compares. You don't need perfect agreement, since a better model will disagree sometimes. You're looking for a candidate that disagrees all the time, or one that's twice as slow.

The catch is compute. The candidate runs on the same GPU as the live model, so run it on a sample of inputs and drop samples when it falls behind, or the shadow test will slow down the policy it's testing. Amit goes deeper on this in shadow mode testing for robot policies.

When the candidate passes, promotion is the same atomic switch of current from step 4, plus a restart of the policy so it loads the tested weights.

Step 7: Roll out in phases, behind a health gate

Never send a new model to every robot at once. Send it to a few, compare them with the robots that didn't get it yet, and only then continue. Watch inference latency, control-loop rate, errors and task success. If the updated robots are clearly worse than the ones not yet updated, halt automatically. The details of choosing phases and what to compare are in phased rollouts and automatic rollback.

Step 8: Roll back

Rolling back a model in this setup is the same switch in reverse: point current at v13, restart the policy, wait for it to warm up and pass its check. v13 is still on disk, already verified. No download.

Prepare the rollback before the rollout starts, as its own release, and try it on one robot. The worst time to write a rollback is when half your fleet is dropping parts.

The failure modes, and which step catches each

  • Half-written weights. Power cut or crash during extraction. Caught by extracting into a new folder and switching atomically (step 4). The live folder is never partly written.
  • Disk full mid-update. Caught by the free-disk precondition and a floor on the download (steps 2 and 3). The worst version of this fills the disk the logs and the DDS shared memory also need, and the robot breaks in ways that look unrelated.
  • Corrupted or swapped file. Caught by the sha256 from the release (steps 1 and 3).
  • Out of GPU memory. The new model is bigger, or two copies loaded at once. Caught by restarting instead of hot swapping, and by the on-robot check (step 5). Watch GPU memory in the first phase of the rollout too, because a model that fits at start can grow with caches.
  • Slower inference that breaks the control loop. This one is specific to models and it's the sneakiest. Say the robot executes a 50-step action chunk at 50 Hz, so one second of motion, and asks for the next chunk as it goes. If v13 took 300 ms per inference and v14 takes 1.1 s, the robot runs out of actions and stops while the model computes, every chunk. Nothing errors. The cycle just gets slower and the motion gets jerky at the chunk seams. Caught by the latency check (step 5), the latency comparison in shadow mode (step 6) and the health gate (step 7). More on the timing side in control-loop timing in production.
  • Mixed compute. Part of the fleet runs a newer Jetson, part an older one, a few run on an x86 box with a discrete GPU. A TensorRT engine built for one GPU doesn't run on another, and a model that's fast on one can be too slow on the other. Build an artifact per compute type, and use one release with conditions per step (by architecture or by tag) so each robot gets the right one. Then phase the rollout so each compute type is in the first phase.
  • Normalization stats or config mismatch. Caught by bundling them with the weights and the manifest check at load (steps 1 and 5).
  • Interrupting a task. Caught by waiting while the robot is busy (step 2).

The whole thing as one release

Put together, a VLA update is a workflow of steps, run by the robot itself, each undone in reverse if a later one fails:

  1. Preconditions: free disk, unmetered network, maintenance window, robot not busy.
  2. Download the bundle with its sha256.
  3. Deploy it into a new versioned folder and switch current atomically, keeping the previous version.
  4. Restart the policy and wait until it's healthy and warm.
  5. Run the on-robot check: shape, no NaN, latency under budget.

For a first rollout of a new model, replace steps 3 and 4 with a shadow test on a few robots, then promote behind a phased rollout.

How PhysicalFleet does it

In PhysicalFleet, this is a release with a download step (sha256), a model.deploy step that does the versioned folders and the atomic current link and keeps previous versions, and health.wait for the checks. model.shadow and model.promote cover the shadow test, and rollouts run in phases with a health gate that compares updated and not-yet-updated robots. See OTA updates.

If you're shipping VLA updates to real robots and something in here doesn't match what you've seen, tell me. I'd like to hear it.

Common questions

How do I roll back a model update on a robot?

Keep the previous version on disk in its own folder, switch the current symlink back to it, then restart the policy and let it warm up and pass its check. Done this way, a rollback is one rename and a restart, with no download. Prepare the rollback as its own release before the rollout starts and try it on one robot first.

Don't use ln -sfn, because it removes the old link and then creates a new one, and a process reading in between finds nothing. Create the new link under a temporary name, then rename it over the old one with mv -T. A rename is atomic, so the link always points at a complete version, even if the power goes out at the wrong moment.

Why does my robot move slightly wrong after a model update?

A common cause is new weights shipped with old normalization stats. Nothing crashes and the actions have the right shape, but they're scaled a little wrong, so the gripper closes short or the arm overshoots. Ship the weights, normalization stats, config and processor files as one versioned bundle, and have the policy check a manifest when it loads.

How much free disk space does a robot need for a model update?

Plan for roughly three times the bundle size during the update: the downloaded archive, the extracted folder and the previous version you keep for rollback. Check for that before downloading, and keep a floor so the download can never fill the disk. A full disk also takes down logging and DDS shared memory, and the robot breaks in ways that look unrelated.

Should I hot swap model weights or restart the policy process?

Restart. A hot swap keeps both models in GPU memory for a while, and on a board like a Jetson Orin with 8 GB shared between CPU and GPU, two copies of a VLA often don't fit. A restart frees the old model first. Then warm up and run a quick check on a recorded observation before the policy is allowed to act.

#VLA#model deployment#OTA updates#robot learning#pi0#LeRobot#rollback
Eitan ChudnovskyCo-founder, PhysicalFleet

From the lab bench. To the entire fleet.

Connect your first machine in minutes, develop it in the lab and run your whole fleet in production from one place.

Free for up to 3 machines · Then pay as you go