multimolecule/deltasplicec3196093da03379a21515bf1a25602fa86b40f9csplicingnpu:0{
"python": "3.11.14",
"platform": "Linux-5.10.0-182.0.0.95.r2220_156.hce2.aarch64-aarch64-with-glibc2.35",
"torch": "2.9.0+cpu",
"torch_npu": "2.9.0.post1+gitee7ba04",
"transformers": "5.9.0",
"numpy": "1.26.4",
"multimolecule": "installed",
"npu_device_name": "Ascend910_9362",
"npu_device_count": 2,
"cann": "/usr/local/Ascend/cann-8.5.1",
"dtype": "float32"
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"species": "human",
"locus": "HBB (NM_000518.5 / NG_000007.3) exon1-intron1 splice donor",
"strand": "5'->3' RNA (T->U)",
"reference_rna_length": 200,
"reference_sha256": "6e66a0152255e6610b9a6b88ba8a8e990021768fe6060383c4c8d4a3b53ea4db",
"alternative_sha256": "301709968b63b0ade61c421c17e1380ff0226253bf1e97e447d95ac49415d2db",
"donor_gt_pos": 142,
"variant": "IVS1+1 G>A (beta-thalassaemia), reference donor GU -> alternative donor AU",
"tokenizer": "RnaTokenizer",
"alphabet": "A/C/G/U/N",
"pad_token": "N (id 4)"
}{
"channels": [
"no_splice",
"acceptor",
"donor"
],
"probabilities_shape": [
1,
200,
3
],
"delta_shape": [
1,
200,
3
],
"ref_scored_shape": [
1,
200,
3
],
"dtype": "float32",
"donor_channel_peak": 0.275924,
"donor_channel_peak_pos": 141,
"donor_probability_at_junction": 0.275924,
"IVS1+1_G>A_delta_donor": -0.001111,
"delta_acceptor_min": -0.262501,
"per_position_probability_sum_mean": 1.0,
"finite": true
}{
"cpu_output": "work/cpu_ref.npz",
"npu_output": "work/npu_ref.npz",
"atol": 0.001,
"rtol": 0.01,
"probabilities_max_abs_diff": 0.00017783045768737793,
"probabilities_mean_abs_diff": 8.559108826074654e-07,
"delta_max_abs_diff": 0.00011280179023742676,
"delta_mean_abs_diff": 1.1945964562561546e-06,
"ref_scored_max_abs_diff": 0.00011286139488220215,
"ref_scored_mean_abs_diff": 8.742061869545145e-07,
"same_weights": true,
"same_sequence": true,
"same_preprocessing": true,
"same_dtype": "float32",
"same_seed": 0
}{
"device": "npu:0",
"warmup": 3,
"repeats": 10,
"mean_s": 0.046625,
"median_s": 0.046633,
"min_s": 0.046538,
"max_s": 0.046707,
"input_length": 200,
"bases_per_s": 4289.5,
"timing_method": "torch.npu.synchronize() around each iteration",
"peak_memory_note": "single Ascend910 64GB HBM; model ~40.4M params float32"
}


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