multimolecule/aparent2d2848b4ca089699d174c23ef091428731413215polyadenylationnpu:0{
"torch": "2.9.0+cpu",
"torch_npu": "2.9.0.post1+gitee7ba04",
"transformers": "5.9.0",
"huggingface_hub": "1.28.0",
"multimolecule": "0.2.1",
"npu_name": "Ascend910_9362",
"cann": "8.5.1"
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"sequence_ref_sha256": "4f7047ecb2afa3e4",
"sequence_alt_sha256": "9ef6883f8eb6c368",
"sequence_length": 205,
"alphabet": "A/C/G/T/U/N",
"vocab_size": 5,
"batch": 1,
"replace_T_with_U": true,
"tokenizer": "RnaTokenizer",
"preview_ref": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATCTAGAGGGG...",
"description": "205 nt polyadenylation window with canonical AATAAA PAS; alt has SNP at position 100"
}{
"isoform_logits_shape": [
1,
1
],
"cleavage_logits_shape": [
1,
206
],
"isoform_ref_cpu": -1.525895,
"isoform_ref_npu": -1.525679,
"isoform_alt_cpu": -1.885323,
"cleavage_softmax_sum": 1.0,
"dtype": "float32",
"device": "npu:0"
}{
"isoform_max_abs_diff": 0.0002161264,
"isoform_mean_abs_diff": 0.0002161264,
"cleavage_max_abs_diff": 0.0013244152,
"cleavage_mean_abs_diff": 0.0004030927,
"atol": 0.005,
"rtol": 0.005,
"passed": true
}{
"first_inference_ms": 0.95,
"stable_avg_ms": 0.89,
"stable_min_ms": 0.85,
"stable_max_ms": 0.91,
"sequences_per_second": 1123.42,
"bases_per_second": 230301.95,
"batch": 1,
"length": 205,
"dtype": "float32",
"peak_memory_mb": 41.2,
"warmup_iters": 3,
"stable_iters": 10
}


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