Source Model: 2toINF/X-VLA-Pt (X-VLA 0.9B Foundation Edition)
Task: manipulation-vla (vision-language to action chunk)
Hardware: Ascend 910B (npu:0, 910_9391), tested with torch_npu and Ascend910_9362
Model Weight URL: https://huggingface.co/2toINF/X-VLA-Pt
| Component | Details |
|---|---|
| Architecture | Florence2 encoder (DaViT vision + BART encoder) + SoftPromptedTransformer (flow-matching denoiser) + ee6d ActionHub |
| Input Observation | 3-view RGB images image_input [B,3,3,224,224] + image_mask [B,3] + tokenized instruction input_ids [B,50] + proprio proprio [B,20] + domain domain_id [B] |
| Output | action_chunk [B,30,20] continuous control: ee6d = dual-arm xyz (3+3) + 6D rotation (6+6) + gripper (1+1) |
| Sampling | Flow-matching iterative denoising: x_t = t*x1 + (1-t)*x0, 10 steps, deterministic with seed 123 |
| Processor | XVLAProcessor (AutoProcessor with trust_remote_code=True) handles image resize(224)/normalize and text tokenization (max 50) |
| Action postprocess | Sigmoid on gripper indices (9,19) |
Validated on Ascend 910B npu:0 with identical weights, inputs, seed=123, steps=10, dtype=float32.
torch.npu.is_available()=True, device_count=2, device_name=Ascend910_9362 (see npu_device_call.png)npu:0, image_input npu:0, proprio npu:0, output npu:0 (synchronized, no CPU fallback)max_abs=0.002210, mean_abs=0.000441, tolerance 0.0387 (atol=0.01, rtol=0.05 for FP32 VLA), PASS via validate_policy_outputs.py[1,30,20], all finite, horizon=30, dim=20, gripper in (0,1) after sigmoid_check_and_adjust_attn_implementation to return eager for Florence2 compatibility on transformers 4.57Measured with torch.npu.synchronize() before/after each iteration (warmup 3, measured 10).
actions/s (30*1000/145.42), 6.88 chunks/s (1000/145.42)generate_actions only.See model_result.png for default python inference.py output.
torch_npu, transformers>=4.40, timm, einops/tmp/XVLA_PT_FINAL or Hugging Face 2toINF/X-VLA-Pt with trust_remote_code=Trueattn_implementation="eager"; SDPA/Flash not used to avoid Florence2 _supports_sdpa issue on newer transformerspip install -r requirements.txt
python inference.pyassets/agent_workflow.png – full workflow logs (recon, NPU check, load, CPU/NPU inference, consistency, perf)assets/npu_device_call.png – NPU availability & device proof logsassets/model_result.png – default python inference.py action & timing & PASS logs