multimolecule/deepcpgdna-hou2016-hcc67178e8d9ea13a9fe0f5381c2cb845916a751689regulatory-sequencenpu:0{
"torch_version": "2.9.0+cpu",
"torch_npu_available": true,
"device_name": "Ascend910_9362",
"device_count": 2,
"model_dir": "/opt/atomgit/.cache/huggingface/hub/models--multimolecule--deepcpgdna-hou2016-hcc/snapshots/67178e8d9ea13a9fe0f5381c2cb845916a751689",
"sequence_length": 1001,
"dtype": "float32"
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"sequence": "ACTCCCCTGCCCTCAACAAGATGTTTTGCCAACTGGCCAAGACCTGCCCTGTGCAGCTGTGGGTTGATTCCACACCCCCG...",
"sequence_full_sha256": "72558a15e155d8dd6edc62f222265905d7f6fc3b061c0b238f31524b7ee22f6b",
"sequence_length": 1001,
"alphabet": "A/C/G/T/N",
"strand": "5'->3'",
"species": "Homo sapiens (HCC Hepatocellular carcinoma, Hou2016)",
"example_source": "TP53 fragment from README padded to 1001, center CG at 500-501",
"tokenizer": "DnaTokenizer vocab_file A/C/G/T/N",
"input_ids_shape": [
1,
1001
],
"input_ids_dtype": "torch.int64"
}{
"output_type": "logits (binary methylation per cell)",
"logits_shape": [
1,
25
],
"logits_dtype": "torch.float32",
"num_labels": 25,
"id2label": {
"0": "Ca01",
"1": "Ca02",
"2": "Ca03",
"3": "Ca04",
"4": "Ca05",
"5": "Ca06",
"6": "Ca07",
"7": "Ca08",
"8": "Ca09",
"9": "Ca10",
"10": "Ca11",
"11": "Ca12",
"12": "Ca13",
"13": "Ca14",
"14": "Ca15",
"15": "Ca16",
"16": "Ca17",
"17": "Ca18",
"18": "Ca19",
"19": "Ca20",
"20": "Ca21",
"21": "Ca22",
"22": "Ca23",
"23": "Ca24",
"24": "Ca25"
},
"logits": [
0.44779345393180847,
0.1843743771314621,
0.32701781392097473,
0.6410053968429565,
0.2076832801103592,
0.06034330278635025,
0.27150630950927734,
0.3372948467731476,
0.2804048955440521,
0.16727396845817566,
0.4542786777019501,
0.09995292127132416,
-0.07799883931875229,
0.12686112523078918,
0.13473330438137054,
0.45244520902633667,
0.026937223970890045,
0.22541798651218414,
0.20027193427085876,
0.11123381555080414,
0.17273803055286407,
0.3522392511367798,
0.18775196373462677,
0.034242115914821625,
0.13877429068088531
],
"probs": [
0.6101144552230835,
0.54596346616745,
0.5810335874557495,
0.6549807190895081,
0.551734983921051,
0.5150812268257141,
0.567462682723999,
0.5835332870483398,
0.5696454644203186,
0.5417212843894958,
0.6116560101509094,
0.5249674320220947,
0.4805101752281189,
0.5316727757453918,
0.5336324572563171,
0.6112204194068909,
0.5067338943481445,
0.556117057800293,
0.5499013066291809,
0.5277798175811768,
0.5430774688720703,
0.5871604681015015,
0.5468006134033203,
0.5085597038269043,
0.534637987613678
],
"example_logits_first5": [
0.44779345393180847,
0.1843743771314621,
0.32701781392097473,
0.6410053968429565,
0.2076832801103592
]
}{
"cpu_logits": [
0.4475381076335907,
0.18418465554714203,
0.3267780542373657,
0.6408276557922363,
0.20749305188655853,
0.06010514870285988,
0.2712538540363312,
0.33705002069473267,
0.2801831066608429,
0.16696403920650482,
0.4541439414024353,
0.09970462322235107,
-0.07823295891284943,
0.12665119767189026,
0.13451148569583893,
0.45229464769363403,
0.02670859917998314,
0.22521933913230896,
0.2000022977590561,
0.11093912273645401,
0.17255431413650513,
0.3521091043949127,
0.1875205934047699,
0.034113261848688126,
0.138594850897789
],
"npu_logits": [
0.44779345393180847,
0.1843743771314621,
0.32701781392097473,
0.6410053968429565,
0.2076832801103592,
0.06034330278635025,
0.27150630950927734,
0.3372948467731476,
0.2804048955440521,
0.16727396845817566,
0.4542786777019501,
0.09995292127132416,
-0.07799883931875229,
0.12686112523078918,
0.13473330438137054,
0.45244520902633667,
0.026937223970890045,
0.22541798651218414,
0.20027193427085876,
0.11123381555080414,
0.17273803055286407,
0.3522392511367798,
0.18775196373462677,
0.034242115914821625,
0.13877429068088531
],
"max_abs_diff": 0.0003099292516708374,
"mean_abs_diff": 0.00021458163973875344,
"prob_max_abs_diff": 7.69495964050293e-05,
"atol": 0.001,
"rtol": 0.001,
"passed": true
}{
"device": "npu:0",
"first_latency_ms": 2.875126898288727,
"avg_latency_ms": 2.0978540182113647,
"sequences_per_second": 476.6775911569873,
"bases_per_second": 477154.2687481443,
"warmup_iterations": 3,
"stable_iterations": 10,
"dtype": "float32",
"peak_memory_mb": 44.6962890625,
"sequence_length": 1001,
"batch_size": 1
}


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