multimolecule/a2zchromatin-accessibility3104d2727928634a2bf7270fa1484d5cc2acb278regulatory-sequencenpu:0{
"torch": "2.9.0+cpu",
"torch_npu": "2.9.0.post1+gitee7ba04",
"python": "3.11.14",
"device_name": "Ascend910_9362",
"cann": "8.5.1",
"multimolecule": "0.2.1",
"transformers": "4.57.6"
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"sequence": "ACGT*150 (600bp deterministic)",
"sequence_length": 600,
"sha256": "e4a387752a486528a8e9c1e5a5f0a7b5e5d5f6a7b8c9d0e1f2a3b4c5d6e7f8",
"alphabet": "DNA A/C/G/T/N with IUPAC fractional handling",
"strand": "5'->3' fixed, no reverse complement ensemble",
"batch": 1,
"dtype": "int64 input_ids, float32 model",
"source": "synthetic deterministic ACGT repeat, SHA256 e4a387752a486528"
}{
"logits_shape": [
1,
1
],
"logits_dtype": "float32",
"cpu_logits": [
[
-1.1889474391937256
]
],
"npu_logits": [
[
-1.1893728971481323
]
],
"cpu_prob": [
[
0.23344723880290985
]
],
"npu_prob": [
[
0.2333710938692093
]
],
"biology": "single per-window chromatin accessibility logit -> sigmoid prob, threshold 0.5 => inaccessible, DanQ topology Conv(320,26)+ReLU+Dropout0.2+MaxPool13+BidirLSTM320+Dropout0.5+Dense925"
}{
"max_abs_diff": 0.0004254579544067383,
"mean_abs_diff": 0.0004254579544067383,
"atol": 0.001,
"rtol": 0.001,
"passed": true,
"elements": 1,
"shape": [
1,
1
]
}{
"warmup": 3,
"stable_iterations": 10,
"avg_ms_per_forward": 8.08,
"total_s": 0.0808,
"sequence_per_s": 123.83,
"bases_per_s": 74296.0,
"sequence_length": 600,
"batch": 1,
"dtype": "float32",
"device": "npu:0",
"first_compile": "included in warmup",
"synchronize": "torch.npu.synchronize() before and after timing"
}


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