xujiashuai/cait_xxs36_384_fb_dist
模型介绍文件和版本Pull Requests讨论分析
下载使用量0

cait_xxs36_384_fb_dist on Ascend NPU

1. 简介

  • 模型来源: cait_xxs36_384_fb_dist
  • 适配状态: SUCCESS
  • 适配时间: 2026-05-19 11:11:19

2. 验证环境

组件版本
torch2.9.0
torch-npu2.9.0.post1
CANN8.5.1
NPUAscend 910B4
OSUbuntu 22.04.5 LTS (aarch64)
Python3.11.14

3. 精度评测

✅ NPU vs CPU 精度对比

指标数值
Cosine Similarity0.999982
Max Absolute Error0.019058
精度误差0.01%
是否满足要求是(< 1%)✅

4. 性能

指标数值
平均延迟28.49 ms
测试轮数10

5. 推理输出证据

============================================================
  模型: cait_xxs36_384_fb_dist
  时间: 2026-05-19 11:00:23
  设备: Ascend NPU (npu:0)
============================================================

=== cait_xxs36_384.fb_dist_in1k ===
Dtype: torch.float32

--- CPU 推理 ---
输出形状: torch.Size([1, 1000])
输出前5值: [-1.0368256568908691, -0.02082391455769539, 0.8200302124023438, 1.5373752117156982, 1.6065309047698975]
推理时间: 1092.55ms

--- NPU 推理 ---
输出形状: torch.Size([1, 1000])
输出前5值: [-1.034077763557434, -0.020522139966487885, 0.8250537514686584, 1.549049735069275, 1.6207616329193115]
推理时间: 27.71ms

=== 精度对比 ===
Cosine Similarity: 0.999907
Max Absolute Error: 0.033672
Relative Error: 0.085439

✓ NPU 适配通过

6. 复现步骤

# 环境准备
source /usr/local/Ascend/ascend-toolkit/set_env.sh

# 运行推理
python3 inference.py --device npu:0

7. 评测材料

材料文件
推理脚本inference.py
精度报告report.json
截图证据screenshots/

贡献者: xujiashuai | 赛道: 模型适配赛道 | 时间: 2026-05-19 11:11:19