m
mengsihan/borzoi-human
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

multimolecule/borzoi-human on Ascend NPU

模型与任务

  • 模型:multimolecule/borzoi-human
  • Revision:6a377a3bf83947284f601ddd57a7ed27b370e4f0
  • 适配路线:long-context-tracks
  • 设备:npu:0

环境依赖

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

安装:pip install -r requirements.txt

NPU 推理

默认执行:python inference.py

真实输入

{
  "sequence_source": "Ensembl GRCh38/hg38 chr17:7431809-7956096 (TP53-centred 524 kb window)",
  "sequence_length": 524288,
  "sequence_sha256": "ff85b34726ef3c331327058284a5e98ebc389defef9eef3681c0ea25a4074f0b",
  "tokenizer": "DnaTokenizer (nmers=1)"
}

真实推理结果

{
  "shape": [
    1,
    6144,
    7611
  ],
  "num_tracks": 7611,
  "bin_size_bp": 32,
  "coverage_mean": 0.8880775570869446,
  "tp53_gene_body_mean_coverage": 1.2092502117156982,
  "tp53_gene_body_flank_enrichment": 1.8636937130055178,
  "top_tracks": [
    5277,
    4662,
    3342,
    4526,
    4760
  ]
}

CPU-NPU 一致性

{
  "method": "identical weights, identical real 524288 bp window, fp32 CPU baseline vs NPU",
  "selected_track_pearson_mean": 0.99999994,
  "selected_track_pearson_min": 0.9999995,
  "track_total_pearson": 1.0,
  "compare_outputs_atol": 0.01,
  "compare_outputs_rtol": 0.001
}

性能

{
  "first_compile_forward_seconds": 0.642,
  "stable_forward_seconds": 0.233,
  "windows_per_second": 4.29,
  "bases_per_second": 2249097.2,
  "input_length": 524288,
  "dtype": "float32",
  "peak_memory_usage_hint": "output tensor 6144x7611 float32"
}

自验证截图

Agent workflow

NPU device call

Model result

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

已知限制

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

标签

#NPU #Ascend #Ascend910