ssclove/hubert-deepfake
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

hubert-base-960h-itw-deepfake on Ascend NPU

1. 简介

本文档记录 abhishtagatya/hubert-base-960h-itw-deepfake 在昇腾 NPU 上的适配验证结果。

  • 模型来源: abhishtagatya/hubert-base-960h-itw-deepfake
  • 适配状态: SUCCESS
  • 适配时间: 2026-05-23

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 abhishtagatya/hubert-base-960h-itw-deepfake --device npu:0

4. Smoke 验证

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

5. 推理正常输出证据

模型任务: 音频深度伪造检测(binary classification)

输出说明: 模型输出 [1, 2] 的 logits 张量,对应两个类别(真实/伪造)的概率分布。

NPU 推理输出:

输出形状: [1, 2]
数据类型: torch.float32
包含 NaN: False
包含 Inf: False

输出合理性验证:

  • 输出维度正确:batch_size=1, num_classes=2
  • 数值范围正常:logits 值在合理范围内,无异常极值
  • 无 NaN/Inf 异常值
  • NPU vs CPU Cosine Similarity = 1.0000001192092896,精度完全一致

结论: NPU 推理输出与 CPU 一致,模型在昇腾 NPU 上运行正常 ✅

6. 性能参考

指标数值
平均延迟6.891155242919922 ms

7. 精度评测

✅ NPU vs CPU 精度对比

指标数值
Cosine Similarity1.0000001192092896
精度误差-0.0%
是否满足要求是(< 1%)✅

8. 评测材料

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

9. 注意事项

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

参赛赛道: 模型适配赛道 提交时间: 2026-05-23