Ambiq/compressionkit-ppg-2xaf00d62fcdd8e8c12a2929bae9d22911ab518966biosignal-compressionnpu:0{
"torch": "2.9.0",
"torch_npu": "2.9.0.post1",
"cann": "8.5.1",
"device_name": "Ascend910_9362",
"device_count": 2,
"python": "3.11.14",
"hf_home": "/data/adapt-npu-hf",
"model_dir": "/tmp/ppg2x"
}安装:pip install -r requirements.txt
默认执行:python inference.py
{
"sample_rate_hz": 64,
"frame_size": 320,
"duration_seconds": 5.0,
"channels": 1,
"batch": 4,
"input_shape_nchw": [
4,
1,
1,
320
],
"signal_source": "sample_stimulus.npz inputs (10,1,320,1) + demo_recordings.npz BIDMC PPG",
"dtype": "float32",
"normalization": "per-frame mean approx 0, std 0.987 (model internal)"
}{
"output_shape_nchw": [
4,
1,
1,
320
],
"output_shape_channels_last": [
4,
1,
320,
1
],
"latent_shape": [
4,
16,
1,
160
],
"compression_ratio": 2,
"recon_mean": -0.0001,
"recon_std": 0.9894,
"rvq_levels": 4,
"codebook_entries": 256,
"embedding_dim": 16
}{
"max_abs_diff": 0.011693,
"mean_abs_diff": 0.000442,
"atol": 0.02,
"rtol": 0.001,
"passed": true,
"cpu_device": "cpu",
"npu_device": "npu:0"
}{
"warmup": 3,
"stable_runs": 10,
"batch_size": 4,
"avg_latency_ms_per_batch": 0.95,
"samples_per_second": 4210.3,
"windows_per_second": 4210.3,
"dtype": "float32",
"synchronize": "torch.npu.synchronize() before and after timing",
"peak_memory_mb": "~3107 HBM used"
}


#NPU #Ascend #Ascend910