multimolecule/openspliceai-mane.100000f47ff0fd99a1016ad6d228dc6363c47989241c3splicingnpu:0{
"torch": "2.9.0+cpu",
"torch_npu": "available",
"device_name": "Ascend910_9362",
"device_count": 2,
"platform": "Linux-5.10.0-182.0.0.95.r2220_156.hce2.aarch64-aarch64-with-glibc2.35",
"python": "3.11.14",
"model_dir": "/tmp/openspliceai_mane_10000",
"weight_bytes": 5701831
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"sequence_length": 5000,
"context": 10000,
"alphabet": "A/C/G/U/N",
"replace_T_with_U": true,
"tokenizer": "RnaTokenizer",
"pad_token": "N",
"pad_id": 4,
"seq_sha256": "167575ce831c2ef7b58479eda777e58ddcdbd484854b6f81981db9907b1770f5",
"seq_preview_first80": "AUGGCGAACCUUGGCUGCUGGAUGCUGGUUCUCUUUGUGGCCACAUGGAGUGACCUGGGCCUCUGCAUGCACAGCUCAGC",
"seq_preview_last80": "CGCAGCCUUUGUGAACCAACACCUGUGCGGCUCACACCUGGUGGAAGCUCUCUACCUAGUGUGCGGGGAACGAGGCUUCU",
"donor_positions": [
1000,
2500
],
"acceptor_positions": [
2000,
4000
],
"gc_content": 0.65,
"encoding": "no truncation, attention_mask sum = seq_length",
"batch": 1,
"example_input_ids_shape": [
1,
5000
],
"example_input_ids_first20": [
0,
3,
2,
2,
1,
2,
0,
0,
1,
1,
3,
3,
2,
2,
1,
3,
2,
1,
3,
2
]
}{
"logits_shape": [
1,
5000,
3
],
"logits_dtype": "torch.float32",
"channels": [
"no_splice",
"acceptor",
"donor"
],
"logits_cpu_sample_0_3": [
[
10.893617630004883,
-10.896655082702637,
-11.399494171142578
],
[
11.441411972045898,
-12.72498893737793,
-11.023900985717773
],
[
9.993010520935059,
-12.593049049377441,
-9.51661491394043
]
],
"logits_npu_sample_0_3": [
[
10.8939790725708,
-10.897445678710938,
-11.39990520477295
],
[
11.441744804382324,
-12.72585678100586,
-11.02441120147705
],
[
9.993195533752441,
-12.593292236328125,
-9.516419410705566
]
],
"logits_cpu_donor_region_998_1003": [
[
12.199901580810547,
-7.925992488861084,
-13.789986610412598
],
[
11.078794479370117,
-9.417853355407715,
-12.391304016113281
],
[
12.158295631408691,
-8.62958812713623,
-14.97722053527832
],
[
11.508384704589844,
-5.3508219718933105,
-13.773994445800781
],
[
12.922001838684082,
-9.078421592712402,
-16.145368576049805
]
],
"logits_npu_donor_region_998_1003": [
[
12.19979190826416,
-7.925900936126709,
-13.789621353149414
],
[
11.078259468078613,
-9.416441917419434,
-12.391453742980957
],
[
12.15761661529541,
-8.628539085388184,
-14.97645378112793
],
[
11.50747013092041,
-5.349548816680908,
-13.77307415008545
],
[
12.920415878295898,
-9.076550483703613,
-16.143980026245117
]
],
"probs_cpu_mean_per_channel": [
0.9999935626983643,
2.009325498875114e-06,
4.429085493029561e-06
],
"probs_npu_mean_per_channel": [
0.9999933242797852,
2.007814600801794e-06,
4.4276689550315496e-06
],
"top_acceptor_cpu_idx": [
2514,
2490,
1543,
1567,
596
],
"top_donor_cpu_idx": [
452,
1399,
3293,
2346,
4240
],
"top_acceptor_npu_idx": [
2514,
2490,
1543,
1567,
596
],
"top_donor_npu_idx": [
452,
1399,
3293,
2346,
4240
],
"description": "per-nucleotide 3-channel logits (no_splice/acceptor/donor) with softmax probabilities; biological output is per-position donor/acceptor ranking"
}{
"max_abs_diff": 0.0035247802734375,
"mean_abs_diff": 0.0006896742852404714,
"max_abs_per_channel": {
"no_splice": 0.0018100738525390625,
"acceptor": 0.0035247802734375,
"donor": 0.0030975341796875
},
"mean_abs_per_channel": {
"no_splice": 0.0005019577802158892,
"acceptor": 0.0007656202651560307,
"donor": 0.0008014446357265115
},
"atol": 0.005,
"rtol": 0.001,
"passed": true,
"masked_length": 5000,
"probs_max_abs_diff": 4.375586286187172e-06
}{
"first_latency_s": 0.2924525737762451,
"avg_latency_s": 0.13012616634368895,
"iters": 10,
"warmup": 3,
"seq_per_s": 7.68484946646935,
"bases_per_s": 38424.24733234675,
"seq_len": 5000,
"batch": 1,
"dtype": "torch.float32",
"synchronized": true
}


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