Floki00/cirdit_multimodal_compile_3to5qubit_v1.1bd2c968349d0915580b5acbaf970d2fc446d2503regulatory-sequencenpu:0{
"torch": "2.9.0+cpu",
"torch_npu": "2.9.0.post1+gitee7ba04",
"device_name": "Ascend910_9362",
"device_count": 2,
"python": "3.11.14",
"cann": "8.5.1",
"model_dir": "/opt/atomgit/.cache/huggingface/hub/models--Floki00--cirdit_multimodal_compile_3to5qubit_v1.1/snapshots/bd2c968349d0915580b5acbaf970d2fc446d2503",
"dtype": "float32",
"revision": "bd2c968349d0915580b5acbaf970d2fc446d2503"
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"route": "regulatory-sequence",
"model_type": "UnitaryCLIPPartialNoiseCompilationCirDiT",
"alphabet": "gate_pool [h,cx,ccx,swap,rx,ry,rz,cp] + pad 9, parametrized_tokens [5,6,7,8]",
"strand": "5'->3' (circuit forward)",
"sequence_length": 32,
"batch": 1,
"hidden": 768,
"primary_sequence_name": "compile_4qubit_QFT_32gates",
"primary_sequence": "compile 4-qubit QFT unitary with 5 qubits max, 32 gates",
"tokens_preview": [
1,
0,
5,
6,
2,
3,
1,
0
],
"pad_constant": 9,
"num_of_qubits": 5,
"max_gates": 32,
"primary_sha256": "d39ae682514427a8",
"all_sequences": {
"qft4_32gates": {
"length": 32,
"sha256": "d39ae682514427a8",
"preview": "compile 4-qubit QFT unitary with 5 qubits max, 32 gates"
}
},
"source": "genQC paper arXiv:2506.01666, config.yaml gate_pool"
}{
"output_shape": [
1,
32,
768
],
"output_dtype": "float32",
"output_device": "npu:0",
"mean": -0.0008218078874051571,
"first_val": 0.005477089900523424,
"max": 0.06903687119483948,
"pred_tokens_first10": [
7,
7,
7,
7,
7,
7,
7,
7,
7,
7
],
"total_params": 191362984,
"num_blocks_core": 12,
"heads_core": 16
}{
"passed": true,
"max_abs_diff": 1.862645213620468e-08,
"mean_abs_diff": 2.835988e-09,
"corr": 1.0,
"atol": 0.01,
"rtol": 0.01,
"shape": [
1,
32,
768
],
"elements": 24576
}{
"single_infer_ms": 0.344,
"avg_ms": 0.3,
"min_ms": 0.275,
"max_ms": 0.344,
"seq_per_s": 3332.27,
"bases_per_s": 106632.64,
"input_length": 32,
"batch_size": 1,
"dtype": "float32",
"device": "npu:0",
"warmup": 3,
"stable_runs": 10,
"peak_memory_mb": 66.2,
"first_compile_ms": 0.344
}


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