🌐 OmTrackVLA —— 面向大众的视觉导航与跟随系统(VLA:Vision-Language-Action)。 将「单目视频 + 自然语言指令」转化为可执行的短视距路径点(waypoints)。
本仓库演示如何在本地昇腾 Ascend NPU(910 系列 / vLLM-Ascend 运行环境)上加载并服务化推理 OmTrackVLA 的 0.6B 高效 checkpoint。
omlab/OmTrackVLA-0.6B(HuggingFace,MIT)https://ai.gitcode.com/hf_mirrors/omlab/OmTrackVLA-0.6Bhttps://github.com/om-ai-lab/OmTrackVLA| 特性 | 说明 |
|---|---|
| 目标硬件 | 昇腾 Ascend910 / 910B(CANN + torch_npu) |
| 模型架构 | 自研 OpenTrackVLAForWaypoint(model_type=navfom),LLM 骨干 Qwen3-0.6B(权重已内嵌) |
| 输入 | 粗粒度(coarse)/细粒度(fine) 视觉 token + 自然语言指令 |
| 输出 | 当前时刻的下一个 short-horizon 路径点(waypoints),shape (B, n_waypoints, 3) |
| 服务 | CLI 单次推理 + FastAPI HTTP 服务(POST /predict) |
| 环境 | PyTorch 2.9 + torch_npu + transformers;vLLM-Ascend 作为昇腾 LLM 运行后端生态 |
{model_name}/
├── inference.py # 昇腾 NPU 推理 / 服务化推理脚本
├── README.md # 本部署说明
├── requirements.txt # 环境依赖清单
└── assets/ # 截图素材(agent_workflow / npu_device_call / model_result)
modeling_open_trackvla.py / configuration_open_trackvla.py / model.py / cache_gridpool.py为 HF 导出的trust_remote_code依赖,加载时需与模型放于同一目录。请一并下载到--model指定目录。
方式一:GitCode 国内镜像(推荐)
git clone --depth 1 https://ai.gitcode.com/hf_mirrors/omlab/OmTrackVLA-0.6B.git hf_export方式二:HuggingFace(海外)
git lfs install
git clone https://huggingface.co/omlab/OmTrackVLA-0.6B hf_exportpip install -r requirements.txt
# 昇腾运行还需要:CANN(>=8.5.x) + torch/torch_npu 配套安装(见 requirements.txt 注释)| 用法 | 命令 |
|---|---|
| 单次推理(CLI) | python inference.py --model hf_export |
| 指定 NPU 卡 | python inference.py --model hf_export --device 0 |
| 服务化推理 | python inference.py --model hf_export --serve --host 0.0.0.0 --port 8080 |
服务启动后:
GET http://localhost:8080/healthPOST http://localhost:8080/predictcurl -X POST http://localhost:8080/predict \
-H "Content-Type: application/json" \
-d '{"instructions": ["go straight ahead and stop at the sofa"], "n_frames": 16}'响应示例:
{
"model": "OmTrackVLA-0.6B",
"instructions": ["go straight ahead and stop at the sofa"],
"waypoint_count": 8,
"action_dim": 3,
"waypoints": [[0.02, 0.11, 0.00], [0.03, 0.23, 0.05], "..."]
}| 截图 | 说明 |
|---|---|
assets/agent_workflow.png | 推理 / 服务化调用整体流程图(模型 → NPU → 路径点) |
assets/npu_device_call.png | 昇腾 NPU 设备调用 / 日志(torch.npu 设备识别) |
assets/model_result.png | 模型加载与输出路径点结果 |
素材为人工截图,可稍后补充。
在 Ascend910(CANN 8.5.1)上,脚本打印:
[init_npu] 昇腾设备: Ascend910 device=npu:0
[load_model] 从 /opt/.../OmTrackVLA-0.6B 加载 OpenTrackVLAForWaypoint ...
waypoints (B=1, N=8, dim=3):
[[ 0.0123 0.1045 0.0031]
[ ... ]]
单次推理耗时 8.42s
npu OK ✔采用 MIT 许可证。