multimolecule/xpressoa40f5d8be7f28e93001677d11cb469bf96c66d52expressionnpu: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": 99,
"padded_length": 10500,
"alphabet": "ACGTN",
"direction": "5'->3'",
"source": "multimolecule/xpresso widget BRCA1 DNA repair associated (padded to 10500)",
"sha256": "f60583147541647f44153ef3ff53c06dc45585703484619fffdc9a6c4e2bf5fb",
"tokenizer": "DnaTokenizer",
"vocab_size": 5,
"batch": 1,
"example_sequence": "TCATTGGAACAGAAAGAAATGGATTTATCTGCTCTTCGCGTTGAAGAAGTACAAAATGTCATTAATGCTATGCAGAAAATCTTAGAGTGTCCCATCTGG",
"num_features": 6,
"features": [
0.33669036626815796,
0.12880940735340118,
0.23446236550807953,
0.23033303022384644,
-1.1228563785552979,
-0.18632829189300537
],
"features_note": "synthetic deterministic half-life features seed 42"
}{
"shape": [
1,
1
],
"dtype": "float32",
"axes": [
"batch",
"mRNA_abundance"
],
"cpu_logits": [
-0.1394929736852646
],
"npu_logits": [
-0.13949646055698395
],
"biological_result": "predicted log median mRNA abundance CPU=-0.139493 NPU=-0.139496"
}{
"atol": 0.001,
"rtol": 0.001,
"max_abs_diff": 3.4868717193603516e-06,
"mean_abs_diff": 3.4868717193603516e-06,
"passed": true,
"compared": "logits (1,1) scalar regression",
"method": "np.allclose"
}{
"first_compile_ms": 1.112,
"stable_avg_ms": 0.987,
"iters": 10,
"warmup": 3,
"batch": 1,
"sequence_per_s": 1013.55,
"bases_per_s": 10642313.46,
"input_length": 10500,
"dtype": "float32",
"device": "npu:0",
"synchronized": true
}


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