Unitree UnifoLM-VLM-Base 机器人视觉-语言-动作 (VLA) 基础模型的昇腾 NPU (Ascend910 + torch-npu) 推理适配。
| 项目 | 值 |
|---|---|
| 模型 | unitreerobotics/UnifoLM-VLM-Base |
| 架构 | Qwen2.5-VL (Qwen2_5_VLForConditionalGeneration) |
| 参数量 | 8.29B (bf16, ~16.6GB) |
| 输入 | 图像 + 语言指令/文本 |
| 输出 | 文本 (VLM 理解/指令跟随) |
npu:0import torch_npu + torch.npu.set_device(0), 带 try-except NPU 初始化异常捕获./model_weights/unitreerobotics/UnifoLM-VLM-Base/ (hf-mirror 优先, GitCode 镜像兜底, 429 指数退避)torch.inference_mode() 推理, 适配 64GB 卡显存AutoModelForVision2Seq / AutoProcessorpython inference.py --img test_input.png [--instruction "Describe this scene and the objects on the table."]python inference.py --serve --port 8000
curl -F "file=@test_input.png" -F "instruction=Describe this scene" http://127.0.0.1:8000/predict见 requirements.txt (torch==2.9.0, torch_npu==2.9.0.post1, transformers==4.57.6, fastapi, uvicorn, pillow)。