multimolecule/hal8d9a34ef9a5df3a44a832786d069020d269e9208splicingnpu:0{
"torch": "2.9.0+cpu",
"torch_npu": "2.9.0.post1+gitee7ba04",
"transformers": "4.57.6",
"multimolecule": "0.2.1",
"python": "3.11.14",
"npu_available": true,
"npu_name": "Ascend910_9362",
"device_count": 2,
"cann": "/usr/local/Ascend/cann-8.5.1"
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"fixtures": [
{
"name": "ACGU_repeat_160",
"length": 160,
"sha256": "ea3085513a5844442a654c669e7c6db8c2ac35e96bc2616d84912ae0aef8a1bf",
"preview": "ACGUACGUACGUACGUACGUACGUACGUACGUACGUACGU"
},
{
"name": "A_rich_160",
"length": 160,
"sha256": "63daef30c24df9b4ed06f0af2b23ea32fd8e11b9f0ff2597acfd23f3c335a60b",
"preview": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"name": "GC_rich_160",
"length": 160,
"sha256": "2e134d0f898a737ad7a267dc69f526772ad7e37ce6f5fb38e66444601f3c2838",
"preview": "GCGCGCGCGCGCGCGCGCGCGCGCGCGCGCGCGCGCGCGC"
},
{
"name": "NRAS_5UTR_160",
"length": 160,
"sha256": "ed6828302c14345dc54cc6c99b51474909d74c48dc3f64947a28848ab3b978a8",
"preview": "GGGGCCGGAAGUGCCGCUCCUUGGUGGGGGCUGUUCAUGG"
},
{
"name": "splicing_motif_160",
"length": 160,
"sha256": "c2994e2e44674405aa0264fa5cc4a331d82f40a984fffc970093199469d69c6c",
"preview": "CAGUUUUUCCCUUUUCAGGUAAGUACGUACGUACGUACGU"
}
],
"primary": {
"name": "ACGU_repeat_160",
"length": 160,
"sha256": "ea3085513a5844442a654c669e7c6db8c2ac35e96bc2616d84912ae0aef8a1bf"
},
"variant_pair": {
"ref_len": 160,
"alt_len": 160,
"pos80_ref": "A",
"pos80_alt": "G",
"ref_sha256": "ea3085513a5844442a654c669e7c6db8c2ac35e96bc2616d84912ae0aef8a1bf",
"alt_sha256": "6c6e9aea8bbc50249024655466c4f1db63b6da130b96ababb0098d623b82c594"
},
"alphabet": "A/C/G/U/N, T->U",
"direction": "5'->3'",
"kmer_size": 6,
"region_length": 160,
"num_features": 4096,
"tokenizer": "RnaTokenizer 1-mer, replace_T_with_U True, add_special_tokens False, vocab A/C/G/U/N",
"input_ids_shape": [
1,
160
],
"sequence_length": 160
}{
"logits_shape": [
1,
1
],
"logits_dtype": "float32",
"logits_device": "npu:0",
"logits_value": 0.18374286592006683,
"logits_cpu_value": 0.18374288082122803,
"logits_stats": {
"min": 0.18374286592006683,
"max": 0.18374286592006683,
"mean": 0.18374286592006683
},
"variant_delta_npu": -0.001086890697479248,
"variant_delta_cpu": -0.001086905598640442,
"semantics": "HAL 160nt RNA window -> scalar splicing score (linear hexamer frequency model), variant effect = alt - ref (sigmoid externally)",
"per_fixture_cpu": [
0.18374288082122803,
-0.08116192370653152,
0.021264631301164627,
0.02627549134194851,
0.16260120272636414
],
"per_fixture_npu": [
0.18374286592006683,
-0.08116192370653152,
0.021264631301164627,
0.026275496929883957,
0.16260121762752533
]
}{
"atol": 0.001,
"rtol": 0.001,
"max_abs_diff": 1.4901161193847656e-08,
"mean_abs_diff": 7.078051567077636e-09,
"delta_diff": 1.4901161193847656e-08,
"per_fixture_max": [
1.4901161193847656e-08,
0.0,
0.0,
5.587935447692871e-09,
1.4901161193847656e-08
],
"per_fixture_mean": [
1.4901161193847656e-08,
0.0,
0.0,
5.587935447692871e-09,
1.4901161193847656e-08
],
"passed": true
}{
"first_run_ms": 157.8,
"stable_avg_ms": 26.39,
"stable_min_ms": 25.64,
"stable_max_ms": 26.63,
"stable_p50_ms": 26.57,
"windows_per_s": 37.9,
"bases_per_s": 6062.0,
"seq_len": 160,
"batch": 1,
"dtype": "float32",
"device": "npu:0",
"warmup": 3,
"stable_runs": 10
}


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