Keep the AR and FlashAR vLLM patch sets in separate conda environments. The
patch scripts check that the installed vLLM version is exactly 0.11.0.
RGB Transfer Depth Setup (Optional)
RGB Transfer uses Depth Anything 3 (DA3) to convert RGB reference images into
inverse-depth maps before Xiaomi-Robotics-U0 inference. Install the optional DA3
dependencies in the same conda environment that will run Xiaomi-Robotics-U0:
Xiaomi-Robotics-U0 uses composable Python config files. Values such as model_path,
tokenizer_path, and vq_path can be local directories or HuggingFace Hub IDs
for automatic download.
File
What to edit
configs/base.py
Model, tokenizer, and VisionTokenizer paths: model_path, tokenizer_path, vq_path.
configs/tasks/*.py
Per-task examples, prompts, CFG, shapes, and input images.
configs/tasks/common.py
Shared task helpers and common sampling parameters.
configs/runtimes.py
Eager/vLLM runtime parameters such as max_num_seqs, max_num_batched_tokens, and gpu_memory_utilization.
Use --engine ar with Xiaomi-Robotics-U0 for T2I, X2I, Scene Gen, and Transfer.
Use --engine flashar with Xiaomi-Robotics-U0-FlashAR to speed up those tasks.
The Video Gen code remains available through --engine ar --task video-gen, while
the required Xiaomi-Robotics-U0-Video checkpoint is coming soon.
Task examples come from configs/tasks/*.py. Override them from the CLI with
--prompt and --reference-image when needed. Transfer uses depth-map
references by default; RGB Transfer needs --input-image-type rgb; see
RGB Transfer Depth Setup.
Xiaomi-Robotics-U0-FlashAR vLLM keeps enable_prefix_caching = False by default.
Distributed Inference
Set visible GPUs and select the multi-GPU profile:
Set paths with environment variables or the matching server CLI arguments:
bash
1exportXR_U0_FLASHAR_MODEL_DIR=<flashar-model-or-local-path>2exportXR_U0_FLASHAR_TOKENIZER_DIR=<flashar-tokenizer-or-local-path>3exportXR_U0_VISION_TOKENIZER_DIR=<VisionTokenizer-HF-ID-or-local-path>4# Optional; only needed when using RGB images for Transfer.5exportXR_U0_DA3_MODEL_PATH=depth-anything/DA3-LARGE-1.1
XR_U0_DA3_MODEL_PATH is optional. Depth-map Transfer examples do not use it.
For RGB Transfer, first install the optional DA3 dependencies as described in
RGB Transfer Depth Setup.
Open http://127.0.0.1:7860. Outputs are saved under
outputs/gradio_flashar/ with neighboring audit JSON files.
4. Citation
If you find this work useful, please cite:
bibtex
1@misc{li2026xiaomiroboticsu0,
2 title = {{Xiaomi-Robotics-U0}: Unified Embodied Synthesis with World Foundation Model},
3 author = {Xinghang Li and Jun Guo and Qiwei Li and Long Qian and Hang Lai and Yueze Wang and Hongyu Yan and Jiahang Cao and Xi Chen and Jingen Qu and Jiaxi Song and Nan Sun and Hanye Zhao and Futeng Liu and Wanli Peng and Heyun Wang and Yunhong Wang and Caoyu Xia and Jack Zhao and Diyun Xiang and Hangjun Ye and Heng Qu and Huaping Liu and Jason Li},
4 year = {2026},
5 eprint = {2607.11643},
6 archivePrefix = {arXiv},
7 url = {https://arxiv.org/abs/2607.11643}
8}