凤
weixin_44093752/MiniCPMV46
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

MiniCPM-V 4.6 Ascend NPU smoke adaptation

This delivery packages the official openbmb/MiniCPM-V-4.6 checkpoint with a small Transformers inference entry point and a bounded real Ascend910 image forward. Official sources:

  • https://huggingface.co/openbmb/MiniCPM-V-4.6
  • https://github.com/OpenBMB/MiniCPM-V

The Hugging Face revision was checked live on 2026-08-23: 36f34a661a4bd35d0dc2294cb044d2584646c7d3. The official source HEAD checked the same day is 8e7209ccf1ce28d94a9fd841a673b3b9d6caae72.

The official model.safetensors is 2,600,957,528 bytes with SHA-256 aa67da5820411176d0f9593a00265bc25a73c45f62dc5a605a93b1b5516a0d34. The model's config.json, preprocessor_config.json, tokenizer files and chat_template.jinja must be downloaded at the same revision.

Run

Download the files listed in model-lock.json into one directory, then run:

python inference.py --model-path /tmp/model-agent/minicpmv --device npu --output validation/runtime.json

The script uses AutoProcessor and AutoModelForImageTextToText, creates one deterministic RGB image, applies the official multimodal chat template, and executes one model forward. It fails explicitly when an Ascend device is requested but unavailable.

On the verified Ascend910 npu:0, the model loaded 1,300,428,016 parameters, accepted pixel_values, returned torch.bfloat16 finite logits with shape [1, 89, 248094], and completed the forward in about 0.724823 seconds. This is an execution compatibility gate only; no full accuracy or CPU/NPU precision evaluation is claimed.

Evidence

Model Agent CPU/NPU 推理工作流

Ascend NPU 设备调用

CPU/NPU 精度验证结果