jsjs1258/openspliceai-mane.10000
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

multimolecule/openspliceai-mane.10000 on Ascend NPU

模型与任务

  • 模型:multimolecule/openspliceai-mane.10000
  • Revision:0f47ff0fd99a1016ad6d228dc6363c47989241c3
  • 适配路线:splicing
  • 设备:npu:0

环境依赖

{
  "torch": "2.9.0+cpu",
  "torch_npu": "2.9.0.post1+gitee7ba04",
  "transformers": "5.9.0",
  "multimolecule": "0.2.1",
  "device_name": "Ascend910_9362"
}

安装:pip install -r requirements.txt

NPU 推理

默认执行:python inference.py

真实输入

{
  "fixture": {
    "name": "HBB_locus_ENST00000335295_intron1_flank",
    "source": "Ensembl REST human chr11:5221800-5232000 reverse-complemented",
    "length": 10301,
    "sha256": "9dccfa587f9585e226e9c14f3937e1512b6e3c90a8d0b477350e739106e3a94b",
    "donor_positions": [
      5170
    ],
    "acceptor_positions": [
      5301
    ],
    "eval_window": [
      5100,
      5301
    ]
  },
  "shape": [
    1,
    10301
  ],
  "dtype": "float32",
  "alphabet": "ACGU (RnaTokenizer, T->U)"
}

真实推理结果

{
  "logits_shape": [
    1,
    10301,
    3
  ],
  "channels": [
    "no_splice",
    "acceptor",
    "donor"
  ],
  "finite_ratio": 1.0
}

CPU-NPU 一致性

{
  "prob_space_max_abs_diff": 0.00038039684295654297,
  "prob_space_criterion": "< 1e-3 on softmax probabilities (biological output scale)",
  "logit_max_abs_diff": 0.004192352294921875,
  "logit_mean_abs_diff": 0.000625662156380713,
  "logit_rel_p99_abs_gt_1": 0.00022402610615245111,
  "argmax_agreement": 1.0,
  "same_weights_same_seed": true,
  "donor_site_topk_hits": "1/1",
  "acceptor_site_topk_hits": "1/1"
}

性能

{
  "warmup_runs": 3,
  "timed_runs": 9,
  "batch": 1,
  "sequence_length": 10301,
  "dtype": "float32",
  "mean_latency_ms": 172.4,
  "sequences_per_s": 5.8,
  "bases_per_s": 59757,
  "npu_peak_memory_MiB": 23.3
}

自验证截图

Agent workflow

NPU device call

Model result

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

已知限制

  • 结果仅覆盖本 revision、HBB 单位点真实序列 fixture、float32 与当前 Ascend 环境;单序列一致性为 smoke consistency,非完整精度评测。

标签

#NPU #Ascend #Ascend910