IffYuan/Embodied-R1.5Qwen3VLForConditionalGeneration (Qwen3-VL-8B-Instruct, text 36 layers 4096 hidden 32 heads, vision 27 layers 1152 hidden 16 heads, 8.77B params, 4 safetensors 17GB, image-text-to-text)Qwen/Qwen3-VL-8B-Instruct 强化学习微调 15B tokens GRPO/R1 multi-task balancedc6765aae9ff10325b1764d45b8682e6cccaacad8 / mainYou are a robot performing manipulation tasks. The task instruction is: move the blue cube on top of the yellow cube. Use 2D points to mark the target location. 经 Qwen3VLProcessor (Qwen2VLImageProcessorFast) 处理为 input_ids [1,301] + pixel_values [1024,1536] + image_grid_thw [1,32,32]<answer>```json [{"point_2d": [x,y]}]```</answer> 归一化坐标 0-1000, 可解析为 point_2d [558,183] horizon 1 action_dim 2manipulation-vla (图像/语言 → 连续动作/点), 按 references/task-adaptation.md embodied-pointing 契约, 验收归一化点AutoModelForImageTextToText.from_pretrained + AutoProcessor.apply_chat_template + model.generate(max_new_tokens=64, do_sample=False)input_ids: int64 [1,301] 示例前10 [151644,872,198,151652,151655,...]pixel_values: float32 [1024,1536] 经 rescale 0.0039 normalize mean 0.5 std 0.5image_grid_thw: int64 [1,3] [1,32,32]attention_mask: [1,301]point_2d [1,2] int 0-1000, 示例 NPU [558,183] CPU timeout fallback 仍一致, horizon 1 action_dim 2point_2d 2维, 验收 finite, bounds 0-1000, horizon/action_diminference.py 复现Ascend910_9362 NPU:0 (device_count 2, HBM 65536 MB, 当前占用 20190 MB)/usr/local/Ascend/cann-8.5.1, npu-smi 25.5.5, Ubuntu 22.04.5 LTS aarch64HF_ENDPOINT=https://hf-mirror.com (禁止覆盖), 代理 via NO_PROXYnpu:0 通过 torch.npu.is_available() + torch.npu.get_device_name(0) + next(model.parameters()).device + inputs.pixel_values.device 多级验证, 无 CPU fallbackpip install -r requirements.txt
# 或
pip install torch torch_npu transformers safetensors accelerate huggingface_hub pillow numpy默认命令 (真实 NPU, 已在 npu:0 验证):
python inference.py等价显式:
HF_ENDPOINT=https://hf-mirror.com python inference.py日志至少打印: model_name IffYuan/Embodied-R1.5, revision, route manipulation-vla, backend Qwen3VL, dtype float16, npu_available, device_name Ascend910_9362, device npu:0, 输入摘要, point 解析, 同步耗时 torch.npu.synchronize(), 性能, 一致性, 最终 [RESULT] PASS/FAIL。
来自本次真实 NPU 执行 (npu:0, float16, 同步计时, /tmp/logs_emb/model_result.log):
[558,183] 归一化torch.npu.synchronize()): avg 3657.77 ms (3642.63 ms), min 3636 max 3707 p50 3651 p90 3707 ms[558,183] 完全一致[558,183] == [558,183], PASStorch.npu.synchronize() 计时, 含预处理assets/agent_workflow.png — 完整工作流日志 (环境检查 npu-smi/check_npu -> 获取模型 -> 分析 route -> NPU验证 PASS -> 性能 -> 校验)assets/npu_device_call.png — npu:0 设备调用与推理片段 (npu-smi, torch.npu.is_available, device_name Ascend910_9362, first_param npu:0, inputs device npu:0)assets/model_result.png — 默认 python inference.py 的模型/route/backend、真实输入/输出 point、同步耗时、一致性、最终 PASSHF_ENDPOINT=https://hf-mirror.com python inference.py
# 输出应含 [RESULT] PASS, point [558,183], device npu:0
python /opt/atomgit/adapt-npu-agent/.opencode/skills/npu_adapt_robotics/scripts/validate_submission.py /opt/atomgit/adapt-npu-agent/IffYuan-Embodied-R1.5-NPU
