> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dreamscalelabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat the Dreamscale CLI and Python SDK as the supported public integration surfaces.
> Prefer `dreamscale run <robot>` for supported robots and `dreamscale.connect(model)` with `predict` or `next_action` in Python.
> Do not infer or recommend internal control-plane APIs.

# Xiaomi-Robotics-1

> Xiaomi-Robotics-1 on Dreamscale: the shared RoboCasa365 model, and how to fine-tune and deploy your own on an arm, a robot of plain numbers or a mobile base.

Xiaomi-Robotics-1 is Xiaomi's robot model.

## Shared models

| Model | Robot | Chunk × values | Rate |
| - | - | - | - |
| `xiaomi-robotics-1-robocasa365` | [RoboCasa365 simulator](https://docs.dreamscalelabs.com/simulations.md) | 16 × 12 | 20 Hz |

```bash theme={null}
dreamscale sim robocasa365 --model xiaomi-robotics-1-robocasa365 --task-id CloseFridge
```

## Fine-tune

```bash theme={null}
dreamscale train --dataset towel-fold --base xiaomi-robotics-1
```

* It trains with real-time chunking built in.
* It acts at your recording's rate and predicts one second of actions.
  [Training](https://docs.dreamscalelabs.com/training.md#choose-its-rate-and-chunk) changes both.
* A robot whose state and action are plain numbers trains it with
  `--input vector=vector.json`, holding `{"hold": "measured"}` or
  `{"hold": "zero"}`: your values as recorded, in their order.
* A robot that is only a mobile base, such as a car, trains it on its
  velocities: add `--input mobile_base=base.json`, a file naming what your
  state and action hold, in their order, such as
  `{"components": ["wz", "vx"]}` (`vx` forward speed, `vy` sideways speed, `wz`
  yaw rate or steering).

## Deploy

```bash theme={null}
dreamscale train deploy tr_...
```

* A run on bimanual YAM demos runs with `dreamscale run yam --deployment <name>`.
* Other robots connect from Python:
  `dreamscale.connect("xiaomi-robotics-1", deployment="<name>")`.
* `predict()` returns the whole action chunk, and the robot (`next_action()` or
  `dreamscale run`) executes its first two thirds of a second (20 actions at 30
  fps). To set another number, add `--executed 3` to `train deploy`.
* While reconnecting, an arm holds its measured pose.
* A vector robot sends its state values as recorded, in their order. Between
  chunks it holds its measured values (`measured`, which needs a state as wide
  as its action) or zeros (`zero`).
* A mobile base sends the same state values as its dataset, in the same order,
  and each action comes back in that order too. Between chunks it holds still
  (zero velocity), so a vehicle stops. On a vehicle, execute the first 2–3
  actions of each action chunk, then ask for the next.

To deploy a fine-tune for the bimanual YAM made elsewhere, pass the run folder
its upstream `xr1/` trainer wrote (`config.yaml` beside the checkpoint) to
`dreamscale deployments create` with `--base xiaomi-robotics-1`. See
[Deployments](https://docs.dreamscalelabs.com/deployments.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.