multimolecule/deepmel71ce0c3a55680fff4e1e2bd81b171f82a575c78eregulatory-sequencenpu:0{
"torch": "2.9.0+cpu",
"torch_npu": "2.9.0.post1",
"npu_name": "Ascend910_9362",
"device_count": 2
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"sequence_length": 500,
"sha256": "71d6c7bd5e01147d5e68596e3e68d1b91562c56ee2cda833692fc5c658566a0e",
"preview": "ACTCCCCTGCCCTCAACAAGATGTTTTGCCAACTGGCCAAGACCTGCCCTGTGCAGCTGTGGGTTGATTCCACACCCCCG...",
"alphabet": "ACGT(N)",
"input_ids_shape": [
1,
500
],
"attention_mask_sum": 500,
"strand": "forward with internal reverse-complement"
}{
"logits_shape": [
1,
24
],
"num_labels": 24,
"logits": [
[
-3.038949489593506,
-1.8818589448928833,
-2.575767993927002,
-5.0806427001953125,
-2.60733962059021,
-4.316799163818359,
-3.621424913406372,
-3.0418190956115723,
-2.8310208320617676,
-3.23960018157959,
-2.346906900405884,
-5.217106342315674,
-1.6735174655914307,
-2.5852785110473633,
-3.6244614124298096,
-2.8683760166168213,
-2.658356189727783,
-4.060266971588135,
-3.7591171264648438,
-2.7154934406280518,
-3.0007238388061523,
-6.864166259765625,
-4.639895439147949,
-5.60035514831543
]
],
"probs": [
[
0.045696962624788284,
0.1321755051612854,
0.0707143247127533,
0.00617751432582736,
0.06866754591464996,
0.013166842982172966,
0.026047902181744576,
0.045571982860565186,
0.05567070469260216,
0.037702396512031555,
0.08731194585561752,
0.0053937481716275215,
0.15795578062534332,
0.07009189575910568,
0.025970978662371635,
0.05373917520046234,
0.06547584384679794,
0.016952086240053177,
0.022773582488298416,
0.06206529214978218,
0.047393184155225754,
0.0010434630094096065,
0.009566308930516243,
0.003682936541736126
]
],
"top5_indices": [
[
12,
1,
10,
2,
13
]
],
"finite": true
}{
"cpu_vs_npu_max_abs_diff": 0.000282,
"mean_abs_diff": 0.000107,
"atol": 0.0001,
"rtol": 0.0001,
"passed": true,
"dtype": "float32"
}{
"avg_ms": 52.57,
"first_ms": 53.15,
"seq_per_s": 19.02,
"bases_per_s": 9510.33,
"batch": 1,
"length": 500,
"dtype": "float32",
"warmup": 3,
"stable_iters": 10
}


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