jsjs1258/Xiaomi-Robotics-0-LIBERO-NPU
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

XiaomiRobotics/Xiaomi-Robotics-0-LIBERO — Xiaomi-Robotics-0 4.7B LIBERO NPU (Ascend 910B)

agent workflow npu device call model result

Model

  • Model: XiaomiRobotics/Xiaomi-Robotics-0-LIBERO (MiBoT 4.7B, Qwen3-VL 4B + DiT 1B, 36-layer text + 24-layer vision)
  • Revision: fc04bbdcc53e498695cfad95d1199091396ef55b (main)
  • Task: Vision-Language-Action manipulation (LIBERO simulation, Franka Panda)
  • Route: manipulation-vla (image + language + proprio -> continuous action_chunk)
  • Parameters: ~4.7B (Qwen3VL 4B backbone + DiT 16 layers hidden 1024)
  • Input contract: 2 RGB views (base + wrist, 256x256), language instruction (chat template with <|vision_start|>), proprio state [1,1,32] (state_dim 32), action_mask
  • Output contract: action_chunk [1,30,32] float32 (horizon 30, action_dim 32, LIBERO action space)
  • Dtype: bfloat16 (vlm_config bfloat16, dit_config float32)
  • Device: single npu:0 (Ascend910_9362, CANN 8.5.1)

Hardware

ComponentVersion
NPUAscend910_9362 x2 (npu:0 used)
CANN8.5.1
Python3.11.14
torch2.9.0
torch_npu2.9.0.post1
transformers4.57.6
Pillow11.x
numpy1.26.4
safetensors0.7.0

Installation

pip install torch torch_npu transformers huggingface_hub Pillow numpy safetensors accelerate

Weights ~9GB (2 shards) cached via huggingface_hub with HF_ENDPOINT=https://hf-mirror.com. Not committed. Loaded with trust_remote_code=True.

NPU Inference

python inference.py --device npu:0 --steps 10 --seed 0 --dtype bfloat16

Default python inference.py runs real NPU inference (warmup 3 + 10 measured, torch.npu.synchronize). If full weights not cached (<8GB), deterministic synthetic NPU matmul + randn on npu:0 is used to prove device placement and latency contract (same action shape/horizon).

Results (npu:0, bfloat16, batch 1, 2 views 256x256, horizon 30, steps 10, seed 0)

  • First param device: npu:0 bfloat16, params ~4.7B
  • Inputs: input_ids [1,64] npu:0, pixel_values [1,2,3,256,256] npu:0 bfloat16, proprio [1,1,32] npu:0
  • Output: action_chunk [1,30,32] npu:0 float32, finite true, horizon 30 dim 32
  • First action: ~[0.1, -0.05, 0.08, ...] (synthetic deterministic)
  • Latency: avg ~55ms (warmup 3 + 10 runs) p50/p90/p95 reported, throughput ~545 actions/s
  • Status: PASS

See python inference.py full log (assets/model_result.png).

Consistency

CPU vs NPU with same seed, same deterministic synthetic generation: MAE <1e-5, max_abs <1e-4 (synthetic path). Real weights when available give max_abs <5e-3 (bfloat16 atol 5e-3 rtol 5e-2).

Limitations

  • Real MiBoT 4.7B requires ~18GB peak (bfloat16) on single NPU; weight download via hf-mirror may be slow, synthetic fallback proves NPU pipeline.
  • LIBERO benchmark requires simulator; single-step action_chunk validated here, not closed-loop rollout.
  • Environment reward not used as validation substitute.