m
mengsihan/wifi-view
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

Vikkyv9/wifi-view on Ascend NPU

模型与任务

  • 模型:Vikkyv9/wifi-view
  • Revision:a6202aa56f35b0fbb5df031959d0cff0f4d249b0
  • 适配路线:csi-encoding
  • 设备:npu:0

环境依赖

{
  "torch": "2.9.0+cpu",
  "torch_npu": "2.9.0.post1+gitee7ba04",
  "cann": "8.5.1",
  "npu_name": "Ascend910_9362",
  "python": "3.11.14"
}

安装:pip install -r requirements.txt

NPU 推理

默认执行:python inference.py

真实输入

{
  "type": "CSI feature vector",
  "shape": [
    32,
    8
  ],
  "dtype": "float32",
  "standardized": true,
  "windows": 32,
  "feature_description": "8-dim [presence,motion,breathing,heart_rate,phase_var,person_count,fall,rssi] standardized @1Hz (RuView)",
  "source": "synthetic deterministic PRNG seed 0 mimicking overnight-1775217646.csi.jsonl 60630 frames",
  "sha16": "ac7ccbe56d889c9d"
}

真实推理结果

{
  "shape": [
    32,
    128
  ],
  "dtype": "float32",
  "l2_normalized": true,
  "embedding_dim": 128,
  "sample_first5": [
    0.2065722644329071,
    -0.012035057879984379,
    -0.04840383306145668,
    -0.05434845760464668,
    -0.07201575487852097
  ]
}

CPU-NPU 一致性

{
  "max_abs_diff": 0.000552743673324585,
  "mean_abs_diff": 1.3761537804191093e-05,
  "min_cosine": 0.9999997615814209,
  "mean_cosine": 1.0,
  "atol": 0.001,
  "rtol": 0.001,
  "passed": true
}

性能

{
  "avg_ms_per_batch32": 0.254,
  "windows_per_sec": 126171.3,
  "dtype": "float32",
  "device": "npu:0",
  "warmup": 3,
  "stable": 10,
  "compiled": false
}

自验证截图

Agent workflow

NPU device call

Model result

已知限制

  • 仅对本次记录的模型 revision、输入契约、dtype 与 Ascend 环境完成验证。
  • Catalog 标注为 csi-vision 但实测权重契约是 csi-encoding (8->128 embedding),此处按实测契约验证。

标签

#NPU #Ascend #Ascend910