SmolVLA-Libero 是在 LIBERO 仿真任务上微调的 SmolVLA 视觉语言动作 (VLA) 策略。本仓库为 昇腾 Ascend NPU (torch_npu) 适配版, 全流程无 CUDA。
# 命令行单图推理
python3 inference.py --img sample_input.png --text "perform the task in the scene"
# FastAPI 服务 (POST /predict 上传图片返回动作 chunk JSON)
python3 inference.py --server{
"model": "HuggingFaceVLA/smolvla_libero",
"device": "npu:0",
"action_dim": 7,
"chunk_size": 50,
"inference_time_s": 0.91,
"action_chunk": [[0.01, -0.02, ...], ...]
}策略权重与 SmolVLM2-500M-Video-Instruct 处理器自动从 GitCode 镜像下载, 缓存 ./model_weights/。