模型名称: IffYuan/Embodied-R1.5
模型链接: HuggingFace
模型描述: Embodied-R1.5 是一个面向具身智能(Embodied AI)和机器人任务的视觉语言模型(VLM),基于 Qwen3-VL 架构,支持图像理解和 embodied reasoning。
模型架构: Qwen3-VL (Qwen3VLForConditionalGeneration)
参数规模: ~17.5B (bf16)
输入规格:
输出规格:
| 依赖项 | 版本要求 | 说明 |
|---|---|---|
| Python | >= 3.10 | 推荐 3.11 |
| torch | >= 2.1.0 | PyTorch 框架 |
| torch_npu | >= 2.1.0 | 昇腾 NPU 后端 |
| vllm | 0.18.0 | 推理引擎 |
| vllm-ascend | 0.18.0 | 昇腾适配插件 |
| transformers | 4.57.6 | 模型加载 |
| Pillow | >= 10.0.0 | 图像处理 |
| 昇腾驱动 | CANN 8.0+ | 推荐 CANN 8.5.1 |
安装命令:
pip install torch-npu==2.9.0 vllm==0.18.0 vllm-ascend==0.18.0 \
transformers==4.57.6 Pillow>=10.0.0 numpy<2 \
sentencepiece>=0.1.99 protobuf>=3.20.0# 检查 NPU 设备
npu-smi info
# 验证 torch_npu
python3 -c "import torch_npu; import torch; print(torch.npu.device_count(), torch.npu.get_device_name(0))"方式一:HuggingFace(推荐)
huggingface-cli download IffYuan/Embodied-R1.5 --local-dir /models/Embodied-R1.5方式二:AtomGit 镜像(HuggingFace 下载慢时使用)
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download IffYuan/Embodied-R1.5 --local-dir /models/Embodied-R1.5# 单卡启动 (TP=1, max_model_len=2048)
vllm serve /models/Embodied-R1.5 \
--tensor-parallel-size 1 \
--max-model-len 2048 \
--max-num-seqs 2 \
--port 8000 \
--trust-remote-code \
--enforce-eager
# 多卡启动 (TP=2)
vllm serve /models/Embodied-R1.5 \
--tensor-parallel-size 2 \
--max-model-len 4096 \
--max-num-seqs 4 \
--port 8000 \
--trust-remote-code \
--enforce-eager| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| --model-path | str | 必填 | 模型 checkpoint 路径 |
| --tensor-parallel-size | int | 1 | NPU 卡数 |
| --max-model-len | int | 4096 | 最大序列长度 |
| --max-num-seqs | int | 4 | 最大并发序列数 |
| --port | int | 8000 | 服务端口 |
| --enforce-eager | flag | False | 禁用 CUDA graph |
[模型] IffYuan/Embodied-R1.5 (Qwen3VLForConditionalGeneration)
[设备] Ascend910_9362 (npu:0)
[输入] "say hi" (22 prompt tokens)
[输出] assistant text generation (32 completion tokens)
[耗时] ~5s (dummy weights)
[状态] SUCCESS[模型] IffYuan/Embodied-R1.5
[设备] Ascend910_9362 (npu:0)
[输入] 100x100 test image + text "What color is this image?" (92 prompt tokens)
[输出] assistant text generation (32 completion tokens)
[状态] SUCCESS运行命令:
curl -s http://127.0.0.1:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"/models/Embodied-R1.5","messages":[{"role":"user","content":"say hi"}],"temperature":0,"max_tokens":32}'输出:
{
"id": "chatcmpl-xxx",
"choices": [{
"message": {"role": "assistant", "content": " Austria Across Austria Across..."},
"finish_reason": "length"
}],
"usage": {"prompt_tokens": 22, "completion_tokens": 32}
}运行命令:
curl -s http://127.0.0.1:8000/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model":"/models/Embodied-R1.5",
"messages":[{"role":"user","content":[
{"type":"text","text":"What color is this image?"},
{"type":"image_url","image_url":{"url":"data:image/png;base64,<BASE64_IMAGE>"}}
]}],
"temperature":0,"max_tokens":32}'输出:
{
"id": "chatcmpl-yyy",
"choices": [{
"message": {"role": "assistant", "content": " Austria Across Austria Across..."},
"finish_reason": "length"
}],
"usage": {"prompt_tokens": 92, "completion_tokens": 32}
}运行命令:
python inference.py --model-path /models/Embodied-R1.5 --image test.png \
--prompt "Describe this image"输出:
[INFO] Loading model from /models/Embodied-R1.5
[Output]
Austria Across Austria Across...
[Stats] prompt_tokens=92, completion_tokens=32, time=12.45s


测试数据: 待用真实权重验证后补充
评测指标:
| 指标 | 结果 | 说明 |
|---|---|---|
| 架构兼容性 | PASS | Qwen3VLForConditionalGeneration |
| Dummy权重加载 | PASS | TP=1, enforce-eager |
| 文本推理 | PASS | 22 prompt → 32 completion tokens |
| 多模态推理 | PASS | image+text, 92 prompt tokens |
| 算子兼容性 | PASS | 标准Transformer + GQA + RMSNorm |