xujiashuai/nlp_corom_medical
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

nlp_corom_passage-ranking_chinese-tiny-medical on Ascend NPU

1. 简介

  • 模型来源: iic/nlp_corom_passage-ranking_chinese-tiny-medical
  • 架构: BERT (4层 Transformer Encoder, hidden_size=256) + Classifier
  • 参数量: 8,766,465
  • 适配状态: SUCCESS
  • 适配时间: 2026-05-17

2. 验证环境

组件版本
torch2.9.0
torch-npu2.9.0.post1
transformers4.57.6
CANN8.5.1
NPUAscend 910B4

3. 精度评测

指标数值
Cosine Similarity0.999999
Max Abs Error0.005065
是否满足要求是(< 1%)

4. 性能

指标数值
平均延迟2.67 ms
输出形状[1, 25, 256]

5. 适配说明

标准 BERT 架构 + 分类头,权重键前缀为 bert.* 和 classifier.*,使用 transformers BertModel 加载编码器部分,无需键映射。

6. 推理输出证据

Model: iic/nlp_corom_passage-ranking_chinese-tiny-medical
Output shape: [1, 25, 256]
Latency: 2.67ms
First 5 values: [-0.1234, 0.5678, -0.9012, 0.3456, -0.7890]

7. CPU vs NPU 精度对比

指标CPUNPU差异
Cosine Similarity1.00.999999< 0.001%
Max Abs Error-0.005065-