multimolecule/deltasplice-human7a97fb2153016f4b1778590d48e45fd4317eb969splicingnpu:0{
"torch": "2.9.0+cpu",
"torch_npu": "2.9.0.post1+gitee7ba04",
"transformers": "4.56.2",
"multimolecule": "0.2.1",
"npu_available": true,
"device_name": "Ascend910_9362",
"cann": "8.5.1"
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"reference": {
"name": "synthetic_donor_GU_512",
"length": 512,
"sha256": "e8a3944235c83eabbf29a4c9a72009621770320af2d08d6d153537bea1f97059",
"preview": "UCAUAGUACCUUUCU...GU at 200",
"alphabet": "A/C/G/U/N",
"direction": "5'->3'",
"replace_T_with_U": true,
"vocab": "A=0 C=1 G=2 U=3 N=4 pad=4",
"sequence": "UCAUAGUACCUUUCU context truncated"
},
"alternative": {
"name": "synthetic_donor_AU_SNP",
"length": 512,
"sha256": "3ac056255662426904b79371235e4bf18d0629d954abc3a893a8da6dd22c0146",
"preview": "UCAUAAUACCUUUCU...AU at 200",
"position": 200,
"ref_allele": "G",
"alt_allele": "A",
"motif_change": "GU->AU donor disruption"
},
"primary_length": 512,
"batch": 1,
"context": 30000,
"padding": "internal 15000 each side zero-pad via DeltaSpliceEmbedding",
"input_ids_shape": [
1,
512
],
"alternative_input_ids_shape": [
1,
512
]
}{
"probabilities_shape": [
1,
512,
3
],
"probabilities_device": "npu:0",
"probabilities_dtype": "float32",
"probabilities_channels": [
"no_splice",
"acceptor",
"donor"
],
"site_probabilities_shape": [
1,
512,
3
],
"site_probabilities_device": "npu:0",
"delta_shape": [
1,
512,
3
],
"delta_device": "npu:0",
"probabilities_donor_max": 0.426462,
"probabilities_donor_max_pos": 346,
"probabilities_acceptor_max": 0.002696,
"probabilities_acceptor_max_pos": 201,
"delta_donor_at_perturbed_200": -3.2e-08,
"delta_acceptor_max_abs": 0.019556,
"finite": true
}{
"atol": 0.001,
"rtol": 0.001,
"max_abs_probabilities": 0.0004889369010925293,
"mean_abs_probabilities": 6.497938606100093e-07,
"max_abs_delta": 2.0636245608329773e-05,
"mean_abs_delta": 3.7030152844512995e-08,
"max_abs_site": 0.0004889369010925293,
"mean_abs_site": 6.497938606100093e-07,
"passed": true,
"details": "CPU same seed 42, same weight, same input_ids; NPU npu:0 with torch.npu.synchronize. Probabilities max diff 4.8e-04 within 1e-03, delta 2.0e-05, site similar. Uses FLOAT32."
}{
"first_run_ms": 236.49,
"stable_avg_ms": 93.91,
"stable_min_ms": 92.74,
"stable_max_ms": 95.67,
"stable_p50_ms": 93.77,
"windows_per_s": 10.6,
"bases_per_s": 5451.8,
"seq_len": 512,
"batch": 1,
"dtype": "float32",
"device": "npu:0",
"warmup": 3,
"stable_runs": 10
}


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