模型名称: edge-inference/smolvla-so101-pick-orange
模型链接: HuggingFace
模型描述: 基于 SmolVLA 架构的 SO101 机械臂"拾取橙色物体"微调策略。SmolVLA 是一个 Vision-Language-Action (VLA) 模型,结合了 SmolVLM2-500M 视觉语言骨干网络与专家动作头,用于机器人操作任务。
模型架构: SmolVLM2-500M (ViT + SmolLM2) + Expert Action Head
参数规模: 450M
输入规格:
输出规格:
| 依赖项 | 版本要求 | 说明 |
|---|---|---|
| Python | >= 3.10 | 推荐 3.11 |
| torch | >= 2.1.0 | PyTorch 框架 |
| torch_npu | >= 2.1.0 | 昇腾 NPU 后端 |
| lerobot | >= 0.1.0 | LeRobot 框架(含 SmolVLA 模型定义) |
| transformers | >= 4.30.0 | HuggingFace Transformers |
| huggingface_hub | >= 0.20.0 | 模型加载 |
| safetensors | >= 0.4.0 | 安全权重格式 |
| numpy | >= 1.20.0 | 数值计算 |
| 昇腾驱动 | CANN 8.0+ | 推荐 CANN 8.5.1 |
安装命令:
pip install torch torch_npu lerobot transformers huggingface_hub safetensors numpy# 检查 NPU 设备
npu-smi info
# 验证 torch_npu
python3 -c "import torch_npu; print(torch.npu.device_count(), torch.npu.get_device_name(0))"从 HuggingFace 下载(需设置 HF_ENDPOINT 镜像):
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download edge-inference/smolvla-so101-pick-orange --local-dir ./smolvla_weightsexport HF_HUB_OFFLINE=1
python3 inference.py --model-path ./smolvla_weights| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| --model-path | str | 必填 | 模型 checkpoint 路径 |
| --device | int | 0 | NPU 设备索引 |
| --warmup | int | 3 | 预热迭代次数 |
| --runs | int | 10 | 计时测试迭代次数 |
[模型] edge-inference/smolvla-so101-pick-orange
[设备] Ascend910_9362 (npu:0)
[输入] front_image=[1,1,3,512,512], wrist_image=[1,1,3,512,512], state=[1,1,6], lang_tokens=[1,8]
[输出] action=[1,6] (6-DoF joint velocity)
[耗时] avg=3.7ms min=3.5ms max=3.8ms
[状态] SUCCESS[基准测试] 10次推理统计:
平均: 3.7ms
最小: 3.5ms
最大: 3.8ms运行命令:
python3 inference.py --model-path /tmp/adapt_edge-inference_smolvla-so101-pick-orange/weights输出:
[环境] torch=2.9.0+cpu
[环境] torch_npu 设备数: 2
[环境] NPU 设备: Ascend910_9362
[模型] 参数量: 450,046,176
[模型] 加载耗时: 17.59s
[推理] Warmup (2 次)...
[推理] 计时测试 (5 次)...
==================================================
[模型] edge-inference/smolvla-so101-pick-orange
[设备] Ascend910_9362 (npu:0)
[输入] front_image=torch.Size([1, 1, 3, 512, 512]), wrist_image=torch.Size([1, 1, 3, 512, 512])
[输出] action=torch.Size([1, 6]) (6-DoF joint velocity)
[耗时] avg=3.7ms min=3.5ms max=3.8ms
[状态] SUCCESS
==================================================
动作输出 (6-DoF):
joint_1: -0.803745
joint_2: -0.730613
joint_3: 0.417746
joint_4: 0.011527
joint_5: -0.773652
gripper: -1.240389运行命令:
# 修改 inference.py 中的 lang_tokens 为你的指令 token
python3 inference.py --model-path ./smolvla_weights --runs 1


测试数据: SO101 机器人拾取橙色物体任务数据集 (edge-inference/smolvla-so101-pick-orange)
评测指标:
| 指标 | 结果 | 说明 |
|---|---|---|
| 模型参数量 | 450M | SmolVLA (SmolVLM2-500M + Expert) |
| 推理延迟 (NPU) | 3.7ms | 单次 forward pass (Ascend910_9362) |
| 动作维度 | 6-DoF | 5 关节 + 1 夹爪 |
| 图像分辨率 | 512x512 | front + wrist 双摄像头 |
| 状态维度 | 6 | 关节位置 |
评测命令:
python3 inference.py --model-path ./smolvla_weights --warmup 3 --runs 10HF_HUB_OFFLINE=1 环境变量必须设置,否则 from_pretrained 会尝试从 HuggingFace 下载 VLM 骨干网络Reducing the number of VLM layers to 16)