multimolecule/hal8d9a34ef9a5df3a44a832786d069020d269e9208splicingnpu:0{
"python": "3.11.14",
"torch": "2.9.0+cpu",
"torch_npu": "2.9.0.post1+gitee7ba04",
"transformers": "5.9.0",
"multimolecule": "0.2.1",
"numpy": "2.4.6",
"device_name": "Ascend910_9362",
"device_count": 2
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"alphabet": "ACGU",
"window_length": 160,
"sequence_source": "Homo sapiens HBB (NCBI NG_000007.3) exon1/intron1 donor region",
"variant": "IVS1+1 G>A (c.92+1G>A), GT->AT",
"reference_sha256": "5e9dac1257eca5b837b3a3d3ea4c98009a8750fec2bf185eb9e4e6d7ef38004b",
"alternative_sha256": "f1b74d20bb689bb1b5afcef9d849a429e76e3e44154d9b4704b7aa19a3ffa01b",
"input_ids_shape": [
2,
160
]
}{
"output_name": "logits",
"output_shape": [
2,
1
],
"output_dtype": "torch.float32",
"reference_logit": 0.028038963675498962,
"alternative_logit": 0.01727430894970894,
"sigmoid_reference": 0.5070092678070068,
"sigmoid_alternative": 0.5043184757232666,
"variant_effect_sigmoid_diff": -0.0026907920837402344
}{
"method": "same weights, same inputs, CPU baseline vs NPU",
"max_abs_diff": 5.587935447692871e-09,
"mean_abs_diff": 4.6566128730773926e-09,
"atol": 0.0001,
"rtol": 0.0001,
"passed": true
}{
"warmup_runs": 3,
"stable_iters": 10,
"windows_per_second": 70.7,
"mean_latency_ms": 28.2825,
"p50_latency_ms": 28.4679,
"p95_latency_ms": 28.7945,
"batch_windows": 2,
"dtype": "float32"
}


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