multimolecule/bpnet44aafb32fc6d71fcf12d0a73054d28e095fe3099regulatory-sequencenpu:0{
"torch": "2.9.0+cpu",
"torch_npu": "2.9.0.post1+gitee7ba04",
"npu_available": true,
"device_count": 2,
"device_name": "Ascend910_9362",
"model_dir": "/tmp/bpnet",
"python": "3.11.14"
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"sequences": [
"p53_TP53_184pad1000",
"BRCA1_104pad1000",
"random_seed42_1000",
"synthetic_motif_1000"
],
"sequence_length": 1000,
"batch": 4,
"alphabet": "A/C/G/T/N",
"sha256_prefix": {
"p53_TP53_184pad1000": "31a7db94472e227b",
"BRCA1_104pad1000": "b4242279b18c4e5f",
"random_seed42_1000": "e2ef9861c2fb175a",
"synthetic_motif_1000": "2cabe42aafbe2f44"
},
"note": "padded to 1000bp with N (pad_token), deterministic random seed 42",
"id2label": {
"0": "Oct4",
"1": "Sox2",
"2": "Nanog",
"3": "Klf4"
},
"num_strands": 2,
"num_tasks": 4
}{
"profile_logits_shape": [
4,
1000,
8
],
"count_logits_shape": [
4,
8
],
"track_shape": [
4,
1000,
8
],
"logits_dtype": "torch.float32",
"logits_device": "npu:0",
"track_device": "npu:0",
"profile_finite": true,
"track_sample_npu": [
0.01602526195347309,
0.015814658254384995,
0.014753194525837898,
0.007303793448954821
]
}{
"max_abs_profile": 0.0024878978729248047,
"mean_abs_profile": 0.0002733931178227067,
"pearson_profile": 0.9999999870583116,
"max_abs_count": 0.00036406517028808594,
"mean_abs_count": 8.313357830047607e-05,
"pearson_count": 0.9999999857787862,
"max_abs_track": 0.0005899667739868164,
"mean_abs_track": 3.938806457881583e-06,
"pearson_track": 0.9999999534007179,
"passed": true
}{
"first_latency_ms": 240.97209330648184,
"avg_latency_ms": 2.4192207027226686,
"min_ms": 2.319866791367531,
"max_ms": 2.651933580636978,
"p50_ms": 2.390529029071331,
"p95_ms": 2.651933580636978,
"sequences_per_s": 1653.425003968539,
"bases_per_s": 1653425.003968539,
"batch": 4,
"seq_len": 1000,
"dtype": "float32"
}


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