jsjs1258/DeepPlant-GEP
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

Addaoud/DeepPlant-GEP on Ascend NPU

模型与任务

  • 模型:Addaoud/DeepPlant-GEP
  • Revision:57d02f6e9bfee46c98c8a0cbc1b835095898a3b6
  • 适配路线:expression
  • 设备:npu:0

环境依赖

{
  "torch": "2.9.0+cpu",
  "torch_npu": "2.9.0.post1+gitee7ba04",
  "python": "3.11.14",
  "soc": "Ascend910_9362"
}

安装:pip install -r requirements.txt

NPU 推理

默认执行:python inference.py

真实输入

{
  "sequence_source": "sequence_at5g52310_promoter_2500.fa",
  "length": 2500,
  "sha256": "04316645151c994e7fb14d34f7825575e20b64c10252d687e460d42575c0b35d",
  "tensor_shape": [
    1,
    4,
    2500
  ],
  "dtype": "torch.float32",
  "species": "Arabidopsis thaliana",
  "locus": "Chr5:21239467-21241967",
  "gene": "AT5G52310 (LTI78/RD29A)"
}

真实推理结果

{
  "shape": [
    2935
  ],
  "dtype": "torch.float32",
  "n_features": 2935,
  "device": "npu:0"
}

CPU-NPU 一致性

{
  "passed": true,
  "atol": 0.01,
  "rtol": 0.001,
  "max_abs_diff": 0.0006258487701416016,
  "mean_abs_diff": 7.772401295369491e-05,
  "pearson": 1.0000001192092896,
  "spearman": 0.9999997327822059,
  "mae": 7.772401295369491e-05,
  "rmse": 0.00010251913772663102
}

性能

{
  "device": "npu:0",
  "dtype": "torch.float32",
  "length_bp": 2500,
  "batch": 1,
  "warmup_runs": 3,
  "stable_runs": 10,
  "first_compile_seconds": 0.1907,
  "stable_mean_seconds": 0.0096,
  "stable_median_seconds": 0.0096,
  "sequences_per_second": 104.208,
  "bases_per_second": 260520.4,
  "peak_allocated_bytes": 1084502528
}

自验证截图

Agent workflow

NPU device call

Model result

三张图片为本次真实推理日志的自验证截图。

已知限制

  • 验证输入为拟南芥 AT5G52310 (LTI78/RD29A) TSS 附近 2500bp 真实基因组窗口 (TAIR10/Araport11)
  • 固定 revision 57d02f6e9bfee46c98c8a0cbc1b835095898a3b6, FP32, batch=1
  • 无真实表达标签时,一致性以 CPU-NPU 同权重同输入输出比较为准

标签

#NPU #Ascend #Ascend910