m
mengsihan/ruview
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

ruv/ruview on Ascend NPU

模型与任务

  • 模型:ruv/ruview
  • Revision:472cfbe8482403256d45f4acb0aed1a5f0db41be
  • 适配路线:csi-encoding
  • 设备:npu:0

环境依赖

{
  "torch": "2.9.0+cpu",
  "torch_npu": "2.9.0.post1+gitee7ba04",
  "npu_device": "Ascend910_9362",
  "npu_count": 2,
  "python": "3.11"
}

安装:pip install -r requirements.txt

NPU 推理

默认执行:python inference.py

真实输入

{
  "source": "synthetic deterministic CSI feature (seed 42)",
  "sha256": "27504d381e1dedf535a5383d3e25a9bf738517a3c13f0340331007da83bd438a",
  "sampling_rate": "1 Hz",
  "channels": 8,
  "window_length": 1,
  "input_shape": [
    1,
    8
  ],
  "dtype": "float32",
  "normalization": "per-feature z-score (synthetic)"
}

真实推理结果

{
  "output_shape": [
    1,
    128
  ],
  "embedding_dim": 128,
  "embedding_sample_head": [
    126.26372528076172,
    -74.53987884521484,
    -30.694730758666992,
    95.17665100097656,
    66.67347717285156
  ],
  "presence_prob": 1.0,
  "dtype": "float32"
}

CPU-NPU 一致性

{
  "cosine": 1.0,
  "max_abs_diff": 3.0517578125e-05,
  "mean_abs_diff": 5.58e-06,
  "atol": 0.001,
  "rtol": 0.001,
  "passed": true
}

性能

{
  "windows_per_second": 6592.3,
  "avg_ms_per_window": 0.152,
  "batch_windows_per_second": 183238.0,
  "dtype": "float32",
  "device": "npu:0"
}

自验证截图

Agent workflow

NPU device call

Model result

已知限制

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

标签

#NPU #Ascend #Ascend910