2301_76761127/x-vla-libero-npu
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

X-VLA-Libero Ascend NPU inference

This repository contains an Ascend NPU-only validation entry point for the published X-VLA-Libero checkpoint. The script loads the checkpoint's Florence vision-language encoder and action transformer, builds deterministic multimodal and robot-action inputs directly on npu:0, and performs one real training forward.

Run

The back-half run used CANN 8.5.1, PyTorch 2.9.0, and torch_npu 2.9.0.post1. Keep that platform stack unchanged and restore the exact public model revision plus the isolated model-layer dependencies:

git clone https://gitcode.com/hf_mirrors/2toINF/X-VLA-Libero.git model
git -C model checkout --detach 129e71460678b7236cee6fc9707f09d9fa0c3590
git -C model lfs pull
python3 -m pip install --target ./pydeps -r requirements.txt
source /usr/local/Ascend/ascend-toolkit/set_env.sh
PYTHONPATH="$PWD/pydeps:$PYTHONPATH" python3 inference.py \
  --model ./model \
  --output ./npu-result.json

The JSON output records model, input and output devices together with output shapes, element count, and observed NaN/Inf counts. The run fails if Ascend NPU is unavailable or any returned tensor leaves the NPU device chain.

The checkpoint's optional FastAPI/OpenCV serving imports are isolated from this inference path; they are not used for model computation.

Verification evidence

The two DS-V4-Flash workflow views are independent plan-only conversations: an overall Ascend NPU migration design and a separate dependency, operator, full-NPU validation, and troubleshooting plan. They do not execute tools or modify repository files.

DS-V4-Flash overall Ascend NPU migration plan DS-V4-Flash dependency, operator, validation and troubleshooting plan NPU device call, first time point NPU device call, second time point Model result, full view Model result, concise view

本仓为 2301_76761127 队伍交付件(与备份账号合并提交)。