linked-liszt/OpenAlphaDiffract9109b0f2f205038a024de0b7382fd02a7ddb97b1diffraction-patternnpu:0{
"torch": "2.9.0+cpu",
"torch_npu_available": true,
"device_name": "Ascend910_9362",
"device_count": 2,
"torch_npu": "2.9.0.post1+gitee7ba04"
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"batch_size": 2,
"input_length": 8192,
"input_shape": [
2,
8192
],
"expanded_shape": [
2,
1,
8192
],
"two_theta_range": "5-20deg",
"preprocessing": "floor_at_zero + normalize [0,100]",
"dtype": "torch.float32",
"seed": 42,
"sha256": "a1b076d17c5d9747",
"spectra": 2,
"points_per_spectrum": 8192,
"normalization": "[0,100]"
}{
"output_shapes": {
"cs_logits": [
2,
7
],
"sg_logits": [
2,
230
],
"lp": [
2,
6
]
},
"dtypes": {
"cs_logits": "float32",
"sg_logits": "float32",
"lp": "float32"
},
"cs_probs_sample0": [
0.0025355194229632616,
0.9120612740516663,
0.08313798159360886,
7.421187910949811e-05,
0.0021880336571484804,
2.9855721095373156e-06,
1.609574626360022e-11
],
"cs_pred_sample0": "Monoclinic",
"sg_pred_sample0": 74,
"sg_top3_sample0": [
73,
43,
11
],
"lp_sample0": [
6.205404758453369,
8.313213348388672,
13.1318998336792,
91.29310607910156,
90.34532165527344,
90.68952178955078
],
"lp_bounds_ok": true,
"device_proof": "first_param:npu:0, output_cs:npu:0, input:npu:0, gemd:npu:0",
"finite": true
}{
"cs_logits": {
"passed": true,
"max_abs_diff": 0.02099609375,
"mean_abs_diff": 0.005269629614693778,
"rmse": 0.007660969731510844,
"argmax_agree": true,
"shape": [
2,
7
],
"elements": 14
},
"sg_logits": {
"passed": true,
"max_abs_diff": 0.0353240966796875,
"mean_abs_diff": 0.011453943667204484,
"rmse": 0.013571200640235544,
"argmax_agree": true,
"shape": [
2,
230
],
"elements": 460
},
"lp": {
"passed": true,
"max_abs_diff": 0.004401206970214844,
"mean_abs_diff": 0.0012262264887491863,
"rmse": 0.001799141083904231,
"mae_per_param": [
0.0005443096160888672,
0.0005326271057128906,
0.0027937889099121094,
0.001163482666015625,
0.000644683837890625,
0.001678466796875
],
"shape": [
2,
6
],
"elements": 12
},
"overall_passed": true,
"lp_bounds_ok": true
}{
"first_run_ms": 190.93561172485352,
"second_run_ms": 1.6431808471679688,
"avg_ms": 1.377415657043457,
"min_ms": 1.3468265533447266,
"max_ms": 1.447439193725586,
"p50_ms": 1.36566162109375,
"p90_ms": 1.4324188232421875,
"throughput_spectra_per_s": 1451.99453031693,
"throughput_points_per_s": 11894739.19235629,
"batch_size": 2,
"input_length": 8192,
"dtype": "float32"
}


#NPU #Ascend #Ascend910