liucu/wifi-densepose-pretrained
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

ruvnet/wifi-densepose-pretrained on Ascend NPU

模型与任务

  • 模型:ruvnet/wifi-densepose-pretrained
  • Revision:a8a71fe866a13eb2743184ed51d09ea878f93afc
  • 适配路线:csi-pose
  • 设备:npu:0

环境依赖

{
  "torch": "2.9.0+cpu",
  "torch_npu": "2.9.0.post1+gitee7ba04",
  "device_name": "Ascend910_9362",
  "dtype": "float32",
  "input_dtype": "float32"
}

安装:pip install -r requirements.txt

NPU 推理

默认执行:python inference.py

真实输入

{
  "inputDim": 8,
  "hiddenDim": 64,
  "embeddingDim": 128,
  "single_shape": [
    1,
    8
  ],
  "batch_shape": [
    32,
    8
  ],
  "standardized": true,
  "input_single_sha256": "27504d381e1dedf535a5383d3e25a9bf738517a3c13f0340331007da83bd438a",
  "input_batch_sha256_prefix": "d70955b8b6bf8054",
  "source": "synthetic standardized 8-dim CSI feature (seed=42, deterministic, matches csi-embed-v2 contract)"
}

真实推理结果

{
  "single_shape": [
    1,
    128
  ],
  "batch_shape": [
    32,
    128
  ],
  "single_sample_first4": [
    0.08298906683921814,
    -0.02814614214003086,
    -0.07165971398353577,
    -0.08521507680416107
  ],
  "cpu_single_first4": [
    0.08295134454965591,
    -0.028136208653450012,
    -0.07166866213083267,
    -0.0852218046784401
  ],
  "L2_norm_single": 0.9999999403953552,
  "dtype": "float32"
}

CPU-NPU 一致性

{
  "single_max_abs_diff": 0.00016173720359802246,
  "single_mean_abs_diff": 1.4735136574017815e-05,
  "batch_max_abs_diff": 0.0006208866834640503,
  "batch_mean_abs_diff": 1.162998471615495e-05,
  "cosine_min_single": 1.0,
  "cosine_min_batch": 0.9999995827674866,
  "cosine_mean_batch": 1.0,
  "atol": 0.001,
  "rtol": 0.001
}

性能

{
  "windows_per_s": 155933.75391746263,
  "latency_ms_per_window": 0.006412979710148647,
  "latency_ms_per_batch": 0.20521535072475672,
  "batch_size": 32,
  "iters": 100,
  "elapsed_s": 0.020521535072475672,
  "peak_mem_mb": 0.119140625,
  "single_window_sync_s": 0.00034986715763807297,
  "device": "npu:0",
  "dtype": "float32"
}

自验证截图

Agent workflow

NPU device call

Model result

已知限制

  • 仅对本次记录的模型 revision、输入契约、dtype 与 Ascend 环境完成验证。

标签

#NPU #Ascend #Ascend910