z
zhangyuge147/openspliceai-zebrafish.2000
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

multimolecule/openspliceai-zebrafish.2000 on Ascend NPU

模型与任务

  • 模型:multimolecule/openspliceai-zebrafish.2000
  • Revision:main
  • 适配路线:splicing
  • 设备:npu:0

环境依赖

{
  "torch": "2.9.0+cpu",
  "torch_npu": "2.9.0.post1+gitee7ba04",
  "device_name": "Ascend910_9362",
  "dtype": "float32"
}

安装:pip install -r requirements.txt

NPU 推理

默认执行:python inference.py

真实输入

{
  "sequence_length": 5000,
  "sequence_sha256": "17af58e22d970149",
  "sequence_preview": "AAGCCCAATAAACCACTCTGACTGGCCGAATAGGGATATAGGCAACGACATGTGCGGCGACCCTTGCGACAGTGACGCTT",
  "vocab": "A,C,G,U/T->U,N->pad",
  "input_ids_shape": [
    1,
    5000
  ],
  "attention_mask_shape": [
    1,
    5000
  ]
}

真实推理结果

{
  "logits_shape": [
    1,
    5000,
    3
  ],
  "logits_dtype": "torch.float32",
  "probs_sample_2500": [
    0.9999997615814209,
    7.103732713176214e-08,
    1.1180920722608789e-07
  ],
  "probs_sample_2600": [
    0.9999979734420776,
    4.298568612171039e-08,
    2.0429722553672036e-06
  ],
  "top_donor": {
    "pos": 707,
    "score": 0.07113146781921387
  },
  "top_acceptor": {
    "pos": 4962,
    "score": 0.011066606268286705
  }
}

CPU-NPU 一致性

{
  "max_abs_diff": 0.002758026123046875,
  "mean_abs_diff": 0.0004247430635150522,
  "probs_max_abs_diff": 4.009157419204712e-05,
  "atol": 0.005,
  "rtol": 0.005,
  "passed": true
}

性能

{
  "avg_ms": 2.658677101135254,
  "min_ms": 2.61688232421875,
  "max_ms": 2.689361572265625,
  "p50_ms": 2.665877342224121,
  "p90_ms": 2.6874303817749023,
  "p95_ms": 2.6883959770202637,
  "bases_per_s": 1880634.544851273,
  "windows_per_s": 376.1269089702546,
  "dtype": "float32",
  "batch": 1,
  "sequence_length": 5000
}

自验证截图

Agent workflow

NPU device call

Model result

三张图片均由 xterm.js 根据本次真实日志生成。

已知限制

  • 仅对本次记录的模型 revision、输入契约、dtype 与 Ascend 环境完成验证。

标签

#NPU #Ascend #Ascend910