Instructions to use XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR") model = AutoModelForCausalLM.from_pretrained("XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR
- SGLang
How to use XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR with Docker Model Runner:
docker model run hf.co/XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR
Xiaomi-Robotics-U1
Controllable Multi-View Generation and Editing for Embodied Intelligence
Xiaomi Robotics
Scene generation from robot state, five types of multi-view editing, and real-robot gains from edited demonstrations.
About
Xiaomi-Robotics-U1 is a 34B pure autoregressive model that generates and edits the multi-view observations of a robot: the head camera and both wrist cameras. Target images are produced by next-token prediction over visual tokens, with no task-specific diffusion denoising. It is the successor to Xiaomi-Robotics-U0.
- State-conditioned scene generation. A robot's end-effector state and a four-field scene description (workspace, objects, lighting, background) produce the head, left-wrist, and right-wrist views of one scene. The arms follow the input state, and each wrist view matches the arm pose seen in the head view.
- Five edit types on multi-view observations. One instruction-guided editor covers transfer, replace, add, remove, and move. It applies the change in every view that can see it and keeps unedited content, including the robot, unchanged.
- Unified pure autoregressive co-training. Embodied generation and editing are co-trained with general T2I and X2I data in one model under one autoregressive objective.
- ScanAR. Row-parallel decoding: visual tokens in a row are generated in parallel, and rows advance autoregressively. Decoding depth drops from HΓW to H+W, 13.1Γ faster per 512Γ512 image.
News
- [2026-12-02] Technical report, model weights, and inference, training, and serving code released.
Contents
Results
Multi-view editing
On a 336-case three-view editing benchmark, U1 has the highest average score of the ten editors, and the highest instruction following and multi-view consistency (MVC). Nano Banana 2.1 has the highest original preservation. Gemini 4 Argon grades each case on a 1β10 scale. All scores come from this single judge, so small differences should be read with care.
| Model | Access | IF | OP | MVC | Avg. |
|---|---|---|---|---|---|
| Xiaomi-Robotics-U1 | open | 6.75 | 6.38 | 6.54 | 6.56 |
| Nano Banana 2.1 | closed | 6.68 | 6.74 | 6.15 | 6.52 |
| GPT-Image-2.5-Sunburst | closed | 6.61 | 6.49 | 5.95 | 6.35 |
| Qwen-Image-3.0-Pro | closed | 6.26 | 5.90 | 5.60 | 5.92 |
| Seedream 5.0 Pro | closed | 6.39 | 5.79 | 5.52 | 5.90 |
| MiniMax-H3-Image | open | 6.44 | 6.15 | 5.77 | 6.12 |
| FLUX 3 Image Klein | open | 5.93 | 5.66 | 5.11 | 5.57 |
| Qwen-Image-2.1 | open | 5.39 | 5.98 | 5.00 | 5.46 |
| FIBO 2.0 Dev | open | 5.84 | 5.41 | 4.89 | 5.38 |
| HunyuanImage-3.0-Instruct | open | 5.70 | 5.28 | 4.83 | 5.27 |
IF: instruction following. OP: original preservation. MVC: multi-view consistency. Avg.: mean of the three.
Average score by edit type
| Model | Transfer | Replace FG | Replace BG | Add | Remove | Move |
|---|---|---|---|---|---|---|
| Xiaomi-Robotics-U1 | 6.61 | 6.45 | 6.49 | 6.45 | 6.68 | 6.65 |
| Nano Banana 2.1 | 6.81 | 6.56 | 6.67 | 6.45 | 6.68 | 5.96 |
| GPT-Image-2.5-Sunburst | 6.78 | 6.31 | 6.50 | 5.91 | 6.61 | 6.00 |
| Qwen-Image-3.0-Pro | 6.35 | 6.32 | 5.98 | 5.71 | 6.08 | 5.07 |
| Seedream 5.0 Pro | 6.42 | 6.03 | 6.00 | 5.44 | 6.29 | 5.21 |
| MiniMax-H3-Image | 6.60 | 6.44 | 6.26 | 5.87 | 6.15 | 5.40 |
| FLUX 3 Image Klein | 6.62 | 5.12 | 5.85 | 5.13 | 6.08 | 4.60 |
| Qwen-Image-2.1 | 6.35 | 5.29 | 5.87 | 5.29 | 5.44 | 4.52 |
| FIBO 2.0 Dev | 5.98 | 5.34 | 5.67 | 5.12 | 5.67 | 4.52 |
| HunyuanImage-3.0-Instruct | 5.91 | 4.77 | 5.56 | 5.12 | 5.72 | 4.54 |
Cases per type: transfer 84 (including lighting), replace foreground 42, replace background 84 (including workspace surfaces), add 42, remove 42, move 42 (including rotations).
Real-robot generalization with edited demonstrations
U1 edits the tablecloth, lighting, and clutter of real demonstrations while keeping the robot and task objects unchanged, so the original action labels stay valid. Post-training the XR-1 policy with these edited demonstrations raises the average out-of-distribution (OOD) success rate on five bimanual tasks from 11.1% to 82.2%:
| Task | ID, XR-1 | ID, XR-1 + U1 | OOD, XR-1 | OOD, XR-1 + U1 |
|---|---|---|---|---|
| Store Condiments | 100% | 100% | 0.0% | 88.9% |
| Pack Fruit | 66.7% | 100% | 0.0% | 88.9% |
| Pack Phone | 33.3% | 66.7% | 11.1% | 77.8% |
| Charge Earbuds | 33.3% | 66.7% | 22.2% | 66.7% |
| Shelve Book | 100% | 100% | 22.2% | 88.9% |
| Average | 66.7% (10/15) | 86.7% (13/15) | 11.1% (5/45) | 82.2% (37/45) |
Success rates, 3 trials per scenario and policy (one in-distribution and three OOD scenarios per task). The average OOD progress score rises from 48.3% to 93.6%.
ScanAR speed
One 512Γ512 image (32Γ32 tokens) on one H20 GPU takes 57.17 s with raster AR (1,024 decoding steps) and 4.37 s with ScanAR (64 steps), end to end. More timings are in guides/inference.md.
Models
| Model | Decoding | Hugging Face | ModelScope |
|---|---|---|---|
| Xiaomi-Robotics-U1 | AR | π€ Link | Link |
| Xiaomi-Robotics-U1-ScanAR | ScanAR | π€ Link | Link |
| VisionTokenizer | β | π€ Link | Link |
- AR and ScanAR share the architecture and size. ScanAR adds no parameters; it changes only the attention mask and which hidden state predicts each token.
- The language model uses the stock
Qwen3ForCausalLMarchitecture (64 layers, hidden size 5120, GQA 64/8, QK-norm). It loads withAutoModelForCausalLMand runs on vLLM's built-in Qwen3 implementation. The tokenizer needstrust_remote_code=True. - The vision tokenizer is the IBQ tokenizer from Emu3.5: 16Γ16 pixels per token, 131,072 codes.
Quick start
conda create -n xr-u1 python=3.12 -y && conda activate xr-u1
pip install -e ".[serve,train]"
huggingface-cli download XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR --local-dir Xiaomi-Robotics-U1-ScanAR # ~65 GB
The 34B weights take about 68 GB in bf16. We recommend one GPU with 96 GB or more, or two GPUs:
vLLM with --tp 2, or transformers with device_map="auto" (--device-map auto in xr-u1-serve).
The vision tokenizer is downloaded from the Hub on first use.
Edit three views of one scene:
from PIL import Image
from xr_u1 import prompts
from xr_u1.generation.hf import U1Generator
gen = U1Generator.from_pretrained("Xiaomi-Robotics-U1-ScanAR", vision_tokenizer="BAAI/Emu3.5-VisionTokenizer")
views = [Image.open(f"examples/assets/g1_white_table_{v}.jpg") for v in ("head", "left", "right")]
out = gen.generate(prompts.scene_edit("Change the lighting to cold blue moonlight.", views))
for i, img in enumerate(out.images):
img.save(f"view_{i}.png")
Or from the command line:
xr-u1-generate --model Xiaomi-Robotics-U1-ScanAR --vision-tokenizer BAAI/Emu3.5-VisionTokenizer \
--task scene_edit --instruction "Add a yellow rubber duck on the white table." \
--images examples/assets/g1_white_table_head.jpg examples/assets/g1_white_table_left.jpg examples/assets/g1_white_table_right.jpg --out outputs/
Documentation
| Document | Contents |
|---|---|
| Inference | Installation, transformers and vLLM (with the vLLM 0.11.0 patches), CLI, timings, ScanAR decoding |
| Tasks and prompts | t2i, x2i, scene_gen, scene_edit; arm types, proprioception, edit sentence forms |
| Web service | Model backend, gateway, and browser UI with 3D robot-arm pose editing |
| Training | FSDP2 training for AR and ScanAR on one 8-GPU node, data format, losses |
Repository layout:
src/xr_u1/
tokens.py special tokens and ids (single source)
prompts.py task templates, proprioception and edit helpers
processing.py prompts + images -> token ids, generated ids -> images
models/ tokenizer, IBQ vision tokenizer
scanar/rules.py ScanAR attention / readout rule (training and inference)
generation/ transformers generator, sampling
vllm/ vLLM 0.11.0 patches and engine (AR and ScanAR)
train/ FSDP2 trainer, data, losses
serve/ model backend, gateway, web UI
configs/ examples/ guides/ scripts/ tests/
Citation
@misc{li2026xiaomiroboticsu1controllablemultiviewgeneration,
title = {Xiaomi-Robotics-U1: Controllable Multi-View Generation and Editing for Embodied Intelligence},
author = {Xinghang Li and Jiahang Cao and Jun Guo and Jingen Qu and
Jiaxi Song and Hang Lai and Qiwei Li and Long Qian and
Yingbo Tang and Hongyu Yan and Xiaoshen Han and Xi Chen and
Knagchen Lv and Yueze Wang and Zhengshen Zhang and Nan Sun and
Jiayi Chen and Futeng Liu and Mengzhen Liu and Wanli Peng and
Yunhong Wang and Caoyu Xia and Diyun Xiang and Hangjun Ye and
Heng Qu and Huaping Liu and Tao Kong},
year = {2026},
eprint = {2612.01730},
archivePrefix = {arXiv},
primaryClass = {cs.RO},
url = {https://arxiv.org/abs/2612.01730}
}
License
Apache-2.0, see LICENSE and NOTICE. The model and vision tokenizer derive from BAAI Emu3.5 (Apache-2.0).
Acknowledgements
- Downloads last month
- -