| 指标 | 值 |
|---|---|
| 设备 | Ascend 910B4 |
| 精度 | float32 |
| 余弦相似度 | 0.999976 |
| 最大绝对误差 | 0.020105 |
| NPU 推理时间 | 7.27ms |
python3 inference.py
=== coat_lite_tiny.in1k ===
Dtype: torch.float32
--- CPU 推理 ---
输出形状: torch.Size([1, 1000])
输出前5值: [-0.469443678855896, -0.19310304522514343, -0.14344646036624908, -0.3358815610408783, -0.07744921743869781]
推理时间: 201.22ms
--- NPU 推理 ---
输出形状: torch.Size([1, 1000])
输出前5值: [-0.4679797887802124, -0.18757759034633636, -0.1433342695236206, -0.3346256613731384, -0.07607928663492203]
推理时间: 7.27ms
=== 精度对比 ===
Cosine Similarity: 0.999976
Max Absolute Error: 0.020105
Relative Error: 0.026274
✓ NPU 适配通过pip install torch torch_npu timm huggingface_hub safetensors
python3 inference.py本适配由 vision-encoder-npu-adapt 智能体技能自动完成。