multimolecule/openspliceai-mane.100000f47ff0fd99a1016ad6d228dc6363c47989241c3splicingnpu:0{
"torch": "2.9.0+cpu",
"torch_npu": "2.9.0.post1+gitee7ba04",
"transformers": "5.9.0",
"multimolecule": "0.2.1",
"python": "3.11.14",
"platform": "Linux-5.10.0-182.0.0.95.r2220_156.hce2.aarch64-aarch64-with-glibc2.35",
"npu_device_name": "Ascend910_9362",
"npu_available": true,
"device_count": 2
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"sequence_source": "synthetic pre-mRNA deterministic random seed 42, 5000 nt, motifs GU at 1000 & 3000, AG at 1500",
"sequence_length": 5000,
"sequence_sha256": "5e5f31a11580de40fd043055b11e3693b45ccdf0a3692b7ec23267cd9ac743d9",
"sequence_head_100": "GACAGGUACAAGAAGGAGUAUGCAUCAAUGUGGUCGUGUGGAACAAACGCCACUGGAGACUGGGUUAACCAUUCGCUCCAGCGUCAUGAAAGUCACUGUU",
"alphabet": "A/C/G/U RNA, replace_T_with_U=True, pad=N",
"tokenizer": "RnaTokenizer vocab_size=4",
"context": 10000,
"species": "human MANE",
"input_ids_shape": [
1,
5000
],
"input_ids_dtype": "int64"
}{
"output_type": "per-nucleotide 3-class splice-site logits (neither/acceptor/donor)",
"logits_shape": [
1,
5000,
3
],
"logits_dtype": "float32",
"probs_shape": [
1,
5000,
3
],
"top_donor_cpu": [
[
180,
0.0276
],
[
1473,
0.001
],
[
1730,
0.0006
],
[
869,
0.0005
],
[
4947,
0.0003
]
],
"top_acceptor_cpu": [
[
735,
0.0107
],
[
1838,
0.0102
],
[
4855,
0.0029
],
[
4196,
0.0027
],
[
5,
0.0007
]
],
"top_donor_npu": [
[
180,
0.0276
],
[
1473,
0.001
],
[
1730,
0.0006
],
[
869,
0.0005
],
[
4947,
0.0003
]
],
"top_acceptor_npu": [
[
735,
0.0107
],
[
1838,
0.0102
],
[
4855,
0.0029
],
[
4196,
0.0027
],
[
5,
0.0007
]
],
"ranking_consistent": true,
"device_proved": "npu:0",
"note": "ranking preserves top 5 donor/acceptor sites"
}{
"logits": {
"max_abs_diff": 0.00437164306640625,
"mean_abs_diff": 0.0006299785276254018,
"atol": 0.01,
"rtol": 0.001,
"passed": true
},
"probs": {
"max_abs_diff": 2.956390380859375e-05,
"mean_abs_diff": 9.955303054834621e-09,
"atol": 0.0001,
"rtol": 0.0001,
"passed": true
},
"overall_pass": true,
"metric": "per-position 3-class splice-site logits/probs allclose; top donor/acceptor ranking consistent CPU vs NPU"
}{
"seq_len": 5000,
"batch": 1,
"dtype": "float32",
"device": "npu:0",
"warmup_iters": 3,
"stable_iters": 10,
"avg_time_ms": 131.27,
"min_time_ms": 131.14,
"max_time_ms": 131.46,
"throughput_seq_per_s": 7.62,
"throughput_bases_per_s": 38089.54,
"cpu_time_ms": 828.0,
"note": "torch.npu.synchronize used before/after timing; first compile in warmup"
}


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