Motubrain2.0-Base / README.md
Motubrain's picture
Focus the Base model card on inference and repair documentation links
dd1eae2 verified
|
Raw History Blame Contribute Delete
8.52 kB
---
license: cc-by-nc-sa-4.0
pipeline_tag: robotics
tags:
- pytorch
- world-action-model
- robot-manipulation
---
# Motubrain2.0-Base
[Project website](https://www.motubrain.com/) · [Code](https://github.com/shengshu-ai/Motubrain-2.0) · [Usage guide](https://github.com/shengshu-ai/Motubrain-2.0/blob/main/docs/usage.md)
**Base is the 30-step Euler checkpoint** for the Motubrain 2.0 world–action model.
Given synchronized camera views and a language instruction, Motubrain jointly predicts future video latents and a chunk of robot actions. The action stream reads visual, language and depth features. A controller can use the action chunk without decoding the predicted video. [Architecture](https://github.com/shengshu-ai/Motubrain-2.0#architecture-and-parameters) · [Project evaluations](https://github.com/shengshu-ai/Motubrain-2.0#results)
| Checkpoint detail | Value |
| --- | --- |
| Backbone | 20B parameters · 24 transformer layers |
| Action representation | 55 shared coordinates, mapped to each robot’s controller by its profile |
| Default sampling | 30 Euler steps · video shift 6 · action shift 1 |
| Weights | BF16 Safetensors · 39.05 GB |
## Checkpoint I/O contract
**Embodiment** · Astribot S1 (zero-shot).
| Policy interface | Format |
| --- | --- |
| RGB observations | One current RGB image from each camera (head, left wrist, right wrist). |
| Robot state | 25D state covering torso pose, two head joints, both hand poses and gripper openings. Supply the 4 × 4 head-camera-to-base transform. |
| Instruction | Use the three-line Chinese template below. RealWorldInference applies it to the raw instruction. |
| Decoded actions (`decoded_action`) | `24 × 25` (steps × channels). Torso pose, head joint targets, both hand poses and gripper openings. |
| Execution | Binarize each gripper opening to an open or close command before execution. |
The native policy also returns `action` (DiT actions, `24 × 55`, 52/55 active channels), `video` (predicted video latents) and `decoded_valid` (a Boolean mask matching `decoded_action`).
Instruction template
```text
指令:{instruction}
本体:Astribot S1。
动作:55维;左臂关节 [0-6],左末端执行器位姿 [7-15],左夹爪 [16],右臂关节 [17-23],右末端执行器位姿 [24-32],右夹爪 [33],躯干关节 [34-40](激活 [34-37]),躯干末端执行器位姿 [41-49],头部关节 [50-51],底盘 [52-54]。其余槽位均为填充。
```
Load the profile and normalization data from the same revision as the weights. [I/O contract in `sampling.json`](./sampling.json) · [Robot profile](./astribot_s1_profile.json)
## Architecture
![Motubrain WAM architecture showing head and wrist cameras, a language instruction, geometry features and separate action and video predictions.](assets/wam-architecture.png)
*The WAM encodes each camera view separately. Action tokens attend to video and language in layers 7–24. Selected layers also read geometry from a frozen Depth Anything 3 encoder.*
## Zero-shot evaluation on Astribot S1
The robot followed language instructions in six manipulation tasks. **Clean** trials used standard white lighting. **Random** trials added flashing RGB lights and distractor objects. Each entry shows successful trials out of valid attempts in the final evaluation.
| Task | Clean | Random |
| :--- | ---: | ---: |
| Headphone hanging | 18/24 (75.00%) | 15/24 (62.50%) |
| Whiteboard wiping | 8/20 (40.00%) | 1/20 (5.00%) |
| Drawer organization | 12/24 (50.00%) | 10/24 (41.67%) |
| Pick, hand over, and place | 19/36 (52.78%) | 14/36 (38.89%) |
| Flower insertion | 12/20 (60.00%) | 8/20 (40.00%) |
| Tableware stacking | 16/24 (66.67%) | 15/24 (62.50%) |
| Total successful / valid trials | 85/148 | 63/148 |
| **Mean success, equally weighted across tasks** | **57.41%** | **41.76%** |
## Run offline inference
### 1. Install the policy and download the checkpoint
The install command requires read access to the GitHub repository. On Linux, activate a Python 3.10+ environment with CUDA-enabled PyTorch 2.9+ and a BF16-capable GPU. Allow GPU memory for the policy, its encoders and activations. On a two-GPU machine, you can place the encoders on the second GPU with `--encoder-device cuda:1`. The frozen Wan VAE, T5Gemma text encoder and Depth Anything 3 geometry encoder load separately. For T5Gemma, request access on its model page and sign in with the approved account using `hf auth login`. [Installation](https://github.com/shengshu-ai/Motubrain-2.0/blob/main/docs/usage.md#installation) · [T5Gemma access](https://huggingface.co/google/t5gemma-9b-9b-prefixlm-it)
```bash
git clone --branch main https://github.com/shengshu-ai/Motubrain-2.0.git /tmp/Motubrain-2.0
python -m pip install -e '/tmp/Motubrain-2.0[geometry]'
hf download GensPI/Motubrain2.0-Base \
config.json sampling.json model.safetensors \
--local-dir /tmp/motubrain/Motubrain2.0-Base
```
### 2. Prepare one robot observation
Prepare one robot profile and one observation. The paths below are examples you can replace with your own.
| Input | What to supply |
| --- | --- |
| `/tmp/motubrain/robot/profile.json` | Camera order and preprocessing, prediction horizon, controller fields and units, matching action normalization, and the eight DA3 layer selections in `geometry_layers`. Use the profile and statistics for your embodiment. |
| `/tmp/motubrain/robot/observation.json` | An `instruction` and a `cameras` mapping from each profile camera source to its synchronized frames. Relative fields require the current `state`. Camera-relative poses also require a calibrated 4 × 4 base-from-camera transform in `camera_extrinsic`. |
For example, the Astribot profile expects three camera sources named `head_camera`, `left_camera` and `right_camera`. Use the names from your selected profile. [Example robot profiles](https://github.com/shengshu-ai/Motubrain-2.0/tree/main/motubrain2/data/profiles) · [Observation format](https://github.com/shengshu-ai/Motubrain-2.0/blob/main/docs/usage.md#bring-your-own-data)
### 3. Predict an action chunk
Pass the downloaded directory directly to `--model`. The policy reads this checkpoint’s sampling settings automatically. Each denoising step refines the whole action chunk. The profile’s `action_steps` sets the number of predicted controller commands.
```bash
python -m motubrain2.inference \
--model /tmp/motubrain/Motubrain2.0-Base \
--profile /tmp/motubrain/robot/profile.json \
--input /tmp/motubrain/robot/observation.json \
--wan Wan-AI/Wan2.2-TI2V-5B-Diffusers --wan-subfolder vae \
--text-encoder google/t5gemma-9b-9b-prefixlm-it \
--da3 depth-anything/DA3-LARGE-1.1 --bf16 \
--output /tmp/motubrain/base-prediction.safetensors
```
Read `decoded_action` for the predicted commands in controller order and units, and `decoded_valid` for the corresponding validity mask. The file also includes `action` in model coordinates and `video` as latent patches. For repeated observations and the robot driver, follow the [LeRobot deployment guide](https://github.com/shengshu-ai/Motubrain-2.0/blob/main/docs/usage.md#live-control-with-lerobot).
## License
This repository and its associated model weights are licensed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode).
**Third-party components.** Third-party software, models and other materials are subject to their respective licenses and terms.
| Component | Part used | Inference implementation | License |
| --- | --- | --- | --- |
| Wan2.2-TI2V-5B | Video VAE for encoding camera frames and decoding video latents | Motubrain includes a light adaptation of the upstream VAE in its development pipeline. The released policy loads the VAE through Diffusers. | [Apache License 2.0](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers#license-agreement) |
| t5gemma-9b-9b-prefixlm-it | Frozen 9B text encoder for task instructions | Motubrain calls the unmodified encoder through Transformers. | [Google Gemma Terms of Use](https://ai.google.dev/gemma/terms) |
| DA3-LARGE-1.1 | Frozen backbone for extracting multi-view geometry features | Motubrain reads intermediate features from the unmodified backbone. | Code under [Apache License 2.0](https://github.com/ByteDance-Seed/Depth-Anything-3/blob/main/LICENSE). Weights listed as [CC BY-NC 4.0](https://github.com/ByteDance-Seed/Depth-Anything-3/blob/3d835ec1a5802d64a8b8b15f817a1ab54809bfe4/README.md?plain=1#L221) in the upstream model table. |