multimolecule/maxentscan-score3a6329dab709cf4e4a15c70124acbdafa48097d28splicingnpu:0{
"torch": "2.9.0+cpu",
"torch_npu_available": true,
"device_name": "Ascend910_9362",
"device_count": 2,
"torch_npu": "2.9.0.post1+gitee7ba04"
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"alphabet": "ACGUN (RNA, T->U)",
"strand": "5'->3'",
"window": 23,
"mode": "score3",
"add_special_tokens": false,
"N_handling": "clamped to A (0) before base-4 hash",
"consensus_positions": [
18,
19
],
"consensus_bases": "AG",
"rest_positions": "0-17 + 20-22 (21-mer decomposed into 9 submodels)",
"compare_sequences": {
"strong_polyU_GUG": {
"sequence": "UUUUUUUUUUUUUUUUUUAGGUG",
"sha256": "8d7212a84c645a74",
"length": 23,
"AG": "AG"
},
"strong_CU_GUG": {
"sequence": "CCCCCCCCCUUUUUUUUUAGGUG",
"sha256": "636f8938a8e51996",
"length": 23,
"AG": "AG"
},
"moderate_polyU_CAG": {
"sequence": "UUUUUUUUUUUUUUUUUUAGCAG",
"sha256": "7585804ecb2dc174",
"length": 23,
"AG": "AG"
},
"moderate_polyU_CUU": {
"sequence": "UUUUUUUUUUUUUUUUUUAGCUU",
"sha256": "130ff54517aca783",
"length": 23,
"AG": "AG"
},
"moderate_mixed": {
"sequence": "UUUUUUUUUCCCCCCCCCAGCUU",
"sha256": "75730096384e1c04",
"length": 23,
"AG": "AG"
},
"weak_polyA_GUG": {
"sequence": "AAAAAAAAAAAAAAAAAAAGGUG",
"sha256": "a87289bafd96a634",
"length": 23,
"AG": "AG"
},
"mutated_AA_GUG": {
"sequence": "UUUUUUUUUUUUUUUUUUAAGUG",
"sha256": "960d6c4339346db4",
"length": 23,
"AG": "AA"
},
"strong_GAA_exon": {
"sequence": "UUUUUUUUUUUUUUUUUUAGGAA",
"sha256": "59e85feb38ed2ead",
"length": 23,
"AG": "AG"
}
},
"batch_size": 8,
"compare_sequence_names": [
"strong_polyU_GUG",
"strong_CU_GUG",
"moderate_polyU_CAG",
"moderate_polyU_CUU",
"moderate_mixed",
"weak_polyA_GUG",
"mutated_AA_GUG",
"strong_GAA_exon"
],
"tokenizer": "RnaTokenizer (multimolecule)",
"note": "Fixed 23-mer acceptor scorer; 18 intron pyrimidine tract + AG + 3 exon. Strong acceptors have pyrimidine-rich upstream; weak poly-A scores negative."
}{
"output_shape": [
8,
1
],
"dtype": "float32",
"window": 23,
"mode": "score3",
"scores": {
"strong_polyU_GUG": 13.509608268737793,
"strong_CU_GUG": 13.316720008850098,
"moderate_polyU_CAG": 9.767723083496094,
"moderate_polyU_CUU": 11.259613990783691,
"moderate_mixed": 10.185270309448242,
"weak_polyA_GUG": -4.124968528747559,
"mutated_AA_GUG": 4.759230136871338,
"strong_GAA_exon": 13.154698371887207
},
"score_canonical": 13.509608268737793,
"score_weak": -4.124968528747559,
"score_strong_vs_weak_delta": 17.63457679748535,
"stats": {
"min": -4.124968528747559,
"max": 13.509608268737793,
"mean": 8.978487014770508
},
"device_proof": "buffer:npu:0, logits:npu:0, input:npu:0, model_device_prop:npu:0",
"compare_sequence": "UUUUUUUUUUUUUUUUUUAGGUG"
}{
"atol": 1e-05,
"rtol": 1e-05,
"max_abs_diff": 9.5367431640625e-07,
"mean_abs_diff": 2.384185791015625e-07,
"passed": true,
"pearson": 0.9999999999999964,
"shape": [
8,
1
],
"per_item_max_diff": 9.5367431640625e-07
}{
"first_run_ms": 154.2973518371582,
"second_run_ms": 3.304004669189453,
"avg_ms": 2.7413368225097656,
"min_ms": 2.5658607482910156,
"max_ms": 2.8095245361328125,
"p50_ms": 2.760648727416992,
"p90_ms": 2.8063058853149414,
"throughput_windows_per_s": 2918.28422334319,
"throughput_bases_per_s": 67120.53713689337,
"batch_size": 8,
"window": 23,
"dtype": "float32"
}


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