Apache-2.0official Paddle PIR graph + Paddle2ONNX + ATC + AscendCLtorch_npu / npu:0本作品在大赛官方远端 Ascend Model Agent 的 Ascend910 上加载真实 checkpoint,并完成 full official PP-OCRv5 mobile English recognition graph forward。CPU fallback 被禁止;模型、输入与输出设备信息、权重加载审计、输出统计、软件版本和耗时均固化在 evidence/result.json。
固定官方 revision 与 7,772,315 字节 inference.pdiparams,SHA-256 严格一致;使用官方 inference.json 完整 Paddle PIR 图导出 opset 11 ONNX,经 ATC 编译并由 AscendCL 在 Ascend 910 执行完整 OCR 前向。输入与 1×40×438 Softmax 输出均驻留 npu:0,无 CPU fallback,输出全有限。
远端环境应预先安装版本匹配的 CANN、PyTorch 与 torch_npu,不要用普通 pip install 覆盖官方运行时。
python3 -m pip install -r requirements.txt
python3 inference.py --work-dir /tmp/atomgit/sprint3h/phase3-row25-en-ppocrv5-mobile-rec --out outputs/result.json --device npu:0
npu-smi info
cat outputs/result.jsonnpu:0[1,3,48,320][1,40,438]1155.837 ms3ec8a97ed6cefe8568d3e2ee90bb193299b566a7661aa4fd52d224b96b59f66b7,772,315 bytes / 1 shard filesevidence/result.json 是机器可读事实源;三张证据图分别呈现 Agent 适配流程、NPU 设备闭环和模型输出结果。
npu:0

