c
cyiing/dinov2-large
模型介绍文件和版本Pull Requests讨论分析

dinov2-large on Ascend NPU

1. 模型概述

此文档记录 facebook/dinov2-large 在昇腾 NPU 上的适配验证结果。

  • 原始仓库: facebook/dinov2-large
  • 兼容性: SUCCESS
  • 适配时间: 2026-05-20

2. 运行环境

组件版本
torch2.9.0
torch-npu2.9.0.post1
transformers4.57.6
CANN8.5.1
  • NPU: Ascend 910B4
  • 系统: Ubuntu 22.04.5 LTS (aarch64)

3. 使用方法

python inference.py --model-id facebook/dinov2-large --device npu:0

4. 功能验证

指标结果
输出形状[1, 257, 1024]
推理状态SUCCESS ✅

5. 推理性能

指标数值
推理耗时11.805152893066406 ms

6. 精度评测

✅ NPU vs CPU 精度验证

指标数值
Cosine Similarity0.9999527335166931
偏差幅度0.0047%
达标判定是(< 1%)✅

7. 交付清单

材料文件说明
推理入口inference.pyNPU 推理代码
精度报告report.json结构化评测数据

8. 注意事项

  • 首次运行需要从 HuggingFace 下载模型权重
  • 建议在 NPU 设备上运行以获得最佳性能

参赛赛道: 模型适配赛道 上传日期: 2026-05-20

下载使用量0