X-VLA 0.9B (Libero Edition) — Vision-Language-Action (VLA) 策略模型,昇腾 Ascend910 适配版。
ai.gitcode.com/hf_mirrors/2toINF/X-VLA-Liberonpu:1。modeling_florence2.py:
_supports_sdpa / _supports_flash_attn_2 property 防御式处理(transformers 4.57 在 language_model 创建前访问 → 返回 True)。get_output_embeddings 返回 getattr(self, "lm_head", None)(XVLA 裁剪掉 lm_head,供 tie_weights 跳过)。inference.py 双模式(CLI + FastAPI),自包含权重下载器(缓存优先,429 退避)。CLI 单图推理:
python inference.py --img test_input.png --instruction "place the block on the table" --device npu:1FastAPI 服务:
python inference.py --serve --port 8001 --device npu:1
curl -F "file=@test_input.png" http://127.0.0.1:8001/predict推理输出: 30 步 × 20 维 ee6d 动作轨迹 (JSON),含 action_trajectory / inference_ms / npu_name / exit_status。