multimolecule/openspliceai-zebrafish.2000c46e23d93d13ed32f5d7a8ca9ac1cda795c38506splicingnpu:0{
"torch": "2.9.0+cpu",
"torch_npu": "2.9.0.post1+gitee7ba04",
"transformers": "5.9.0",
"multimolecule": "0.2.1",
"device_name": "Ascend910_9362",
"dtype": "float32"
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"sequence_length": 4000,
"short_sequence": "AGCAGUCAUUAUGGCGAA",
"short_length": 18,
"sha256": "0fbd66091464c93a57da7b89f0fde59a3195f16131fff67ea101c6c6980d463c",
"source": "synthetic fixture derived from README prion mRNA example AUGGCGAACCUUGGCUGC... repeated to 4000 nt",
"alphabet": "A/C/G/U/N",
"context": 2000,
"input_shape": [
1,
4000
],
"tokenizer": "RnaTokenizer replace_T_with_U=True"
}{
"logits_shape": [
1,
4000,
3
],
"num_labels": 3,
"labels": [
"neither",
"acceptor",
"donor"
],
"sample_logits_cpu": [
[
6.792465686798096,
-3.419116497039795,
-4.6442646980285645
],
[
7.03223991394043,
-4.056284427642822,
-4.436051845550537
],
[
7.0540924072265625,
-4.22655725479126,
-3.550600051879883
]
],
"sample_logits_npu": [
[
6.79271936416626,
-3.4186227321624756,
-4.644674301147461
],
[
7.032245635986328,
-4.05592679977417,
-4.436674118041992
],
[
7.053760051727295,
-4.22633695602417,
-3.5504493713378906
]
],
"top_donor_positions_cpu": [
3998,
3997,
3995
],
"top_acceptor_positions_cpu": [
3987,
3969,
3981
],
"top_donor_positions_npu": [
3998,
3997,
3995
],
"top_acceptor_positions_npu": [
3987,
3969,
3981
]
}{
"max_abs_diff": 0.0018935203552246094,
"mean_abs_diff": 0.0003639080735544364,
"atol": 0.005,
"rtol": 0.005,
"passed": true,
"short_max_diff": 0.0011496543884277344
}{
"avg_latency_ms": 3.0557632446289062,
"sequence_per_s": 327.2504837400911,
"bases_per_s": 1309001.9349603644,
"warmup_iters": 3,
"stable_iters": 10,
"input_length": 4000,
"batch": 1,
"dtype": "float32",
"device": "npu:0"
}


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