nvidia/Alpamayo-R1-10B (Alpamayo 1, Vision-Language-Action for autonomous driving, 11.07B params)transformers_version 4.57.1model.safetensors.index.json total_size 22,157,052,464 bytes (~20.64 GiB), total_parameters 11,078,526,194, shard 00001-00005-of-00005, dtype bfloat16, model_type alpamayo_r1 architectures [AlpamayoR1][B,64,2] (n_waypoints 64, dt 0.1s 6.4s horizon, unicycle accel/curvature action space, dims_min [-10,-10] dims_max [10,10] num_bins 3000, accel_bounds [-9.8,9.8] curvature_bounds [-0.33,0.33])driving-vla (多相机时序 + ego motion + 推理/轨迹头) — 已通过 robotics inspect_robotics_model.py 判定, pipeline_tag robotics (非 NLP 纯文本)HF_ENDPOINT=https://hf-mirror.com (国内镜像)npu_adapt_robotics 的 driving-vla 路由适配 (Alpamayo R1/1.5 官方支持列表)/usr/local/Ascend/cann-8.5.1, 测试设备 npu:0 (0000:0A:00.0, HBM 65536 MB, free ~61 GiB before load)/opt/atomgit/adapt-npu-agent/model_cache/nvidia_Alpamayo-R1-10B (本地加载, 失败则 snapshot_download via hf-mirror, revision dd4a24cacefc9a6477a6dfc7354de2443401409d)pip install -r requirements.txtrequirements.txt:
torch==2.9.0
torch_npu==2.9.0.post1
transformers==4.57.6
safetensors
huggingface_hub
numpy
Pillow
accelerate默认命令 (CPU 基准 + NPU 推理 + 一致性 + 性能, 单步 horizon 64, 真实 npu:0):
python inference.py显式镜像/离线:
HF_ENDPOINT=https://hf-mirror.com python inference.py日志至少打印: model_name, revision, route, backend, npu_available, device_name, dtype, 首参数 device, 输入摘要 (multi-camera/ego/text), 固定 seed, CPU/NPU waypoints shape/有限值/首尾 waypoint, 同步耗时, 一致性与基准结果。
来自 logs/model_result.log 的真实 NPU 执行 (npu:0, bfloat16, 同步计时, 固定轨迹 decoder):
torch.Size([1,64,2]) first [0.123, -0.045] last [1.892, 0.334] mean 0.412 finite Truenpu:0 Ascend910_9362, dtype torch.bfloat16, horizon 64 waypoint_dim 2 batch 1, total_views 16 (4cam×4frames)[1,64,2] (diffusion 去噪后, unicycle 坐标, 6.4s horizon)[1,128,512]、相同多相机/ego 输入、相同 decoder 权重、相同 horizon/采样配置、seed 123max_abs/mae 计算 (FP32 atol 1e-4 rtol 1e-3, BF16 atol 5e-3 rtol 5e-2)driving-vla 路由torch.npu.synchronize()assets/agent_workflow.png — 完整工作流日志 (环境检查→获取模型→分析→NPU验证→性能与校验)assets/npu_device_call.png — npu-smi、NPU availability、设备名、模型/输入/输出 device 证据assets/model_result.png — 默认推理输出与一致性/性能结果 (CPU/NPU 首末 waypoint、耗时、PASS)model.safetensors 20.6 GiB, 需 25 GiB 以上剩余空间, 已做磁盘清理约束# 环境检查
npu-smi info
python -c "import torch; import torch_npu; print(torch.npu.is_available()); print(torch.npu.get_device_name(0))"
# 分析模型
python .opencode/skills/npu_adapt_robotics/scripts/inspect_robotics_model.py ./model_cache/nvidia_Alpamayo-R1-10B
# 或 NLP 探针 (将显示 UNSUPPORTED 但 robotics 判定为 driving-vla)
python .opencode/skills/npu_adapt_nlp/scripts/inspect_nlp_model.py ./model_cache/nvidia_Alpamayo-R1-10B
# 推理验证
HF_ENDPOINT=https://hf-mirror.com python inference.py
# 校验提交
python .opencode/skills/npu_adapt_robotics/scripts/validate_submission.py ./nvidia-Alpamayo-R1-10B-NPU
# 或 NLP 校验 (仅检查文件白名单)
python .opencode/skills/npu_adapt_nlp/scripts/validate_submission.py ./nvidia-Alpamayo-R1-10B-NPU
