multimolecule/deepcpgdna-hou2016-hepg26671f9ba39a3e3e2604986e691aabde45b2953c4regulatory-sequencenpu:0{
"torch": "2.9.0+cpu",
"torch_npu": "2.9.0.post1+gitee7ba04",
"transformers": "5.9.0",
"multimolecule": "0.2.1",
"npu_name": "Ascend910_9362",
"model": "multimolecule/deepcpgdna-hou2016-hepg2",
"revision": "6671f9ba39a3e3e2604986e691aabde45b2953c4",
"route": "regulatory-sequence"
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"sequence": "AAGCCCAATAAACCACTCTGACTGGCCGAATAGGGATATAGGCAACGACATGTGCGGCGACCCTTGCGACAGTGACGCTTTCGCCGTTGCCTAAACCTATTTGAAGGAGTCTAGCAGCCGCAGTAAGGCACAATACCTCGTCCGTGTTACCAGACCAAACAAGACGTCCTCTTCAATGTTTAAATGACCCTCTCGTCATA...",
"full_length": 1001,
"sha256": "f8eb0ec2263e2a459afe3969c0588c3570c56e27701298aa1189bb0ebbbd2734",
"source": "synthetic deterministic seed 42, ACGT alphabet, 1001 bp, mimicking CpG-centered window",
"tokenization": "DnaTokenizer 1-mer, vocab A/C/G/T/N, pad N to 1001, input_ids shape [1,1001]",
"species": "human (HepG2 hepatocellular carcinoma)",
"strand": "5'->3'"
}{
"logits": [
[
-2.1544888019561768,
-2.0552895069122314,
-2.143637180328369,
-2.1869144439697266,
-2.077040433883667,
-2.1074330806732178
]
],
"probs": [
[
0.10391250252723694,
0.11351899802684784,
0.10492730140686035,
0.10093174874782562,
0.1113484799861908,
0.10837646573781967
]
],
"shape": [
1,
6
],
"labels": [
"HepG21",
"HepG22",
"HepG23",
"HepG24",
"HepG25",
"HepG26"
],
"device": "npu:0"
}{
"max_abs_diff": 0.00011110305786132812,
"mean_abs_diff": 9.500980377197266e-05,
"atol": 0.0001,
"rtol": 0.0001,
"passed": true,
"cpu_shape": [
1,
6
],
"npu_shape": [
1,
6
],
"prob_max_diff": 1.043081283569336e-05
}{
"avg_ms": 1.1369623243808746,
"min_ms": 1.1101532727479935,
"max_ms": 1.1668140068650246,
"seq_per_s": 879.5366201290298,
"bases_per_s": 880416.1567491587,
"warmup": 3,
"stable_iters": 10,
"input_length": 1001,
"batch": 1,
"dtype": "float32",
"device": "npu:0"
}


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