multimolecule/deepstarrf52a09a023db34889a8e6a60aa8e0ffe87c59b98regulatory-sequencenpu:0{
"torch": "2.9.0+cpu",
"torch_npu": "2.9.0.post1+gitee7ba04",
"transformers": "5.9.0",
"multimolecule": "0.2.1",
"python": "3.11.14",
"cann": "8.5.1",
"device_name": "Ascend910_9362",
"npu_count": 2
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"sequence_length": 249,
"alphabet": "ACGTN",
"direction": "5'->3'",
"source": "Ensembl dm6 chr2R:6,573,000-6,573,248 eve locus",
"sha256": "5b78a50608c4cef7eadadc2695db29707968be1797c86e312ec477fc964a2396",
"tokenizer": "DnaTokenizer",
"batch": 1,
"example_sequence": "TCACACTAGACTCCTGAAAAACAATCATTTATCTTCATTTCTTACAATAAAACGCTCGGTGCACTAGGTTCTCCCCTTGGCGGGAAAATCTTTTCCACTAAGCGATAAAGATGACAGACCCTCGTTGCGTTTGCGTAACGTAGGAAAACATAAAAATCCTTTTAATCAACAACAAACTGTTGTAGCGATGACTTGGTTCCTTTGAAATCGCTGTTCAGCTGCTGAGGATCACCTGAAACCGCATCTCCT"
}{
"shape": [
1,
2
],
"dtype": "float32",
"axes": [
"batch",
"activity (developmental, housekeeping)"
],
"cpu_logits": [
0.15474535524845123,
0.49802112579345703
],
"npu_logits": [
0.154381,
0.497191
],
"biological_result": "developmental=0.154381 housekeeping=0.497191 log2 enrichment over input"
}{
"atol": 0.002,
"rtol": 0.002,
"max_abs_diff": 0.0008300542831420898,
"mean_abs_diff": 0.0005970746278762817,
"passed": true,
"compared": "logits (1,2) regression outputs",
"method": "np.allclose"
}{
"first_compile_ms": 2.1,
"stable_avg_ms": 1.47,
"iters": 10,
"warmup": 3,
"batch": 1,
"sequence_per_s": 681.9,
"bases_per_s": 169793.3,
"input_length": 249,
"dtype": "float32",
"device": "npu:0",
"synchronized": true
}


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