news 2026/5/9 12:10:32

Alpamayo-R1 智能驾驶VLA大模型昇腾A2平台使用指南

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
Alpamayo-R1 智能驾驶VLA大模型昇腾A2平台使用指南

Alpamayo-R1 智能驾驶VLA大模型昇腾A2平台使用指南

【免费下载链接】cann-recipes-embodied-intelligence本项目针对具身智能业务中的典型模型、加速算法,提供基于CANN平台的优化样例项目地址: https://gitcode.com/cann/cann-recipes-embodied-intelligence


本目录介绍在 A2 上如何对Alpamayo-R1(下文简称 AR-1)模型进行推理,并附带精度验证及输出示例。

AR-1整体介绍

AR-1是英伟达提出的面向L4/L5级智能驾驶的视觉-语言-动作(VLA)大模型,旨在解决自动驾驶在长尾场景中因黑箱决策导致的脆弱性与不可解释性问题。该模型通过融合视觉感知与自然语言指令,构建结构化的场景理解,并引入显式的因果思维链(Chain-of-Causal-Thinking, CoC)机制,在推理过程中模拟人类驾驶员“观察—分析因果—预判后果—决策”的认知流程,从而生成更稳健、可验证的轨迹规划,同时输出自然语言形式的决策解释,提升系统透明度与人机协同效率。

环境准备

  1. 安装CANN软件包。

    本样例的编译执行依赖CANN开发套件包(cann-toolkit)与CANN二进制算子包(cann-kernels),支持的CANN软件版本为CANN 8.5.0

    请从软件包下载地址下载Ascend-cann-toolkit_${version}_linux-${arch}.runAtlas-A2-cann-kernels_${version}_linux-${arch}.run软件包,并参考CANN安装文档进行安装。

    • ${version}表示CANN包版本号,如8.5.0。
    • ${arch}表示CPU架构,如aarch64、x86_64。
  2. 安装 uv (如果没有uv)

    curl -LsSf https://astral.sh/uv/install.sh | sh export PATH="$HOME/.local/bin:$PATH"
  3. 克隆代码

    # 克隆cann-recipes-embodied-intelligence项目代码 git clone https://gitcode.com/cann/cann-recipes-embodied-intelligence.git # 克隆alpamayo原仓库代码 git clone https://github.com/NVlabs/alpamayo.git cd alpamayo git reset --hard e0e2ac32ebd9c3ad8a314099aa5af5c3aaa28073 cd .. # 应用适配昇腾A2的patch patch -p0 < cann-recipes-embodied-intelligence/navigation/alpamayo-r1/patches/ar-1.patch # 将原仓库alpamayo的代码复制到本项目目录下 cp -rn alpamayo/* cann-recipes-embodied-intelligence/navigation/alpamayo-r1/ cd cann-recipes-embodied-intelligence/navigation/alpamayo-r1
  4. 创建虚拟环境

    uv venv ar1_venv --python python3.11 source ar1_venv/bin/activate
  5. 安装环境依赖

    # 安装alpamayo-r1依赖 uv sync --active
  6. 安装physical-ai-av(physical-ai-av依赖python312,需手动修改依赖后安装,再修改语法)

    #手动下载tar包: wget https://files.pythonhosted.org/packages/25/20/730fab2dc243e720fa107520c187c7a3a928f471c40d367d55980032daac/physical_ai_av-0.1.0.tar.gz #解压 tar -zxvf physical_ai_av-0.1.0.tar.gz #应用patch patch -p0 < patches/physical_ai_av-0.1.0-python311.patch # 安装 cd physical_ai_av-0.1.0 uv pip install . cd ..

模型权重下载

hf download nvidia/Alpamayo-R1-10B --local-dir model_ckpt

模型推理

# 执行推理 cd ./src/alpamayo_r1 python test_inference.py

基于上述运行过程,可以得到Alpamayo-R1的单次推理结果(详细的优化过程介绍见 Alpamayo-R1 优化说明文档)。

  • 推理性能:单次推理时间下降至7.32s,达到了预期的推理时间性能优化目标。
  • 推理结果:单次推理结果为10组驾驶轨迹预测序列和CoC思维链文本。

AR-1在昇腾A2上的精度验证步骤

基于minADE指标来验证昇腾的推理精度

  • 分别试验了多种输出预测轨迹,得到Physical-AI-AV-Dataset的chunk_0000共计100个clips的数据在昇腾A2平台上AR-1预测的轨迹路线minADE值,轨迹预测结果如表所示:

    预测轨迹数平台minADE(越低越好)
    1昇腾A22.2026
    3昇腾A20.9498
    5昇腾A20.8514
    10昇腾A20.5676

Citation

@article{nvidia2025alpamayo, title={{Alpamayo-R1}: Bridging Reasoning and Action Prediction for Generalizable Autonomous Driving in the Long Tail}, author={NVIDIA and Yan Wang and Wenjie Luo and Junjie Bai and Yulong Cao and Tong Che and Ke Chen and Yuxiao Chen and Jenna Diamond and Yifan Ding and Wenhao Ding and Liang Feng and Greg Heinrich and Jack Huang and Peter Karkus and Boyi Li and Pinyi Li and Tsung-Yi Lin and Dongran Liu and Ming-Yu Liu and Langechuan Liu and Zhijian Liu and Jason Lu and Yunxiang Mao and Pavlo Molchanov and Lindsey Pavao and Zhenghao Peng and Mike Ranzinger and Ed Schmerling and Shida Shen and Yunfei Shi and Sarah Tariq and Ran Tian and Tilman Wekel and Xinshuo Weng and Tianjun Xiao and Eric Yang and Xiaodong Yang and Yurong You and Xiaohui Zeng and Wenyuan Zhang and Boris Ivanovic and Marco Pavone}, year={2025}, journal={arXiv preprint arXiv:2511.00088}, }

附录

lerobot根目录相关代码目录树

  • 检查整体代码目录树,经过上述的复制及替换操作,AR-1适配昇腾的根目录中的最终相关代码目录树如下所示:
alpamayo/ ├── patches/ ├── src/ │ └── alpamayo_r1/ │ ├── action_space/ │ │ └── ... # Action space definitions │ ├── diffusion/ │ │ └── ... # Diffusion model components │ ├── geometry/ │ │ └── ... # Geometry utilities and modules │ ├── models/ │ │ ├── ... # Model components and utils functions │ ├── __init__.py # Package marker │ ├── config.py # Model and experiment configuration │ ├── helper.py # Utility functions │ ├── load_physical_aiavdataset.py # Dataset loader │ ├── test_inference.py # Inference test script ├── pyproject.toml # Project ├── README.md

【免费下载链接】cann-recipes-embodied-intelligence本项目针对具身智能业务中的典型模型、加速算法,提供基于CANN平台的优化样例项目地址: https://gitcode.com/cann/cann-recipes-embodied-intelligence

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/5/9 12:05:31

CANNBot内核调试指南

Kernel Debugging Playbook 【免费下载链接】cannbot-skills CANNBot 是面向 CANN 开发的用于提升开发效率的系列智能体&#xff0c;本仓库为其提供可复用的 Skills 模块。 项目地址: https://gitcode.com/cann/cannbot-skills Use this playbook when an existing kern…

作者头像 李华
网站建设 2026/5/9 12:03:31

终极鼠标性能测试指南:3步精准评估您的设备表现

终极鼠标性能测试指南&#xff1a;3步精准评估您的设备表现 【免费下载链接】MouseTester 项目地址: https://gitcode.com/gh_mirrors/mo/MouseTester 想要知道您的鼠标是否真的物有所值&#xff1f;MouseTester——这款专业级鼠标性能测试工具&#xff0c;为您提供精确…

作者头像 李华
网站建设 2026/5/9 12:00:36

CANN学习中心仓技能集合

Skills - CANNBot 技能集合 【免费下载链接】cann-learning-hub CANN 学习中心仓&#xff0c;支持在线互动运行、边学边练&#xff0c;提供教程、示例与优化方案&#xff0c;一站式助力昇腾开发者快速上手。 项目地址: https://gitcode.com/cann/cann-learning-hub 本目…

作者头像 李华
网站建设 2026/5/9 11:54:55

【触想智能】安卓工业一体机在工业看板上的应用优势

随着信息技术的不断发展&#xff0c;工业界越来越倾向于数字化和自动化的生产流程。在这一变革中&#xff0c;安卓工业一体机成为了工业看板的重要组成部分&#xff0c;为工厂和生产线的监控、管理和决策提供了有力支持。触想安卓工业一体机TPC-A2为了体现安卓工业一体机在工业…

作者头像 李华
网站建设 2026/5/9 11:54:03

深智微IC华润微代理:MCU选型与工业控制方案推荐

【引言/痛点】工业可编程逻辑控制器&#xff08;PLC&#xff09;的主控MCU选型&#xff0c;常让工程师在“性能冗余”与“成本控制”之间反复权衡。一个典型的中端PLC需要同时处理Modbus RTU通信、高速计数器输入、多路ADC采样以及实时逻辑控制&#xff0c;这对MCU的内核性能、…

作者头像 李华