gcw_6a3w2yXz/scaffdiff
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

businesslion/scaffdiff on Ascend NPU

模型与任务

  • 模型:businesslion/scaffdiff
  • Revision:2a0165a5b93259d5ced2f26b196298b36e55dbf0
  • 适配路线:point-cloud-completion
  • 设备:npu:0 (Ascend910_9362)

环境依赖

{
  "torch": "2.9.0+cpu",
  "torch_npu": "2.9.0.post1+gitee7ba04",
  "device_name": "Ascend910_9362",
  "cann_version": "/usr/local/Ascend/cann-8.5.1",
  "dtype": "float32"
}

安装:pip install -r requirements.txt

NPU 推理

默认执行:python inference.py

真实输入

{
  "fixture": "deterministic SemanticKITTI-like urban scene (ground/buildings/poles/vehicles)",
  "fixture_seed": 20260822,
  "fixture_sha256": "c182be8b960b4923337ee27cda1cf1f2079228ce27183d01300639b727306f7e",
  "points": 8000,
  "units": "meters",
  "preprocess": "per-sample centering + isotropic rescale to [-1,1]",
  "checkpoint_sha256": "07a078f296c8ad3f49ac1dba5ba56631a6478538fdefb904dd222ed7408a75a7"
}

真实推理结果

{
  "latent_mu_shape": [
    1024
  ],
  "decoded_points": 8000,
  "output_dims": 3,
  "symmetric_chamfer_sq_m2_cpu": 1.3661861419677734,
  "symmetric_chamfer_sq_m2_npu": 1.366699457168579,
  "symmetric_chamfer_sq_normalized": 0.0007544824620708823
}

CPU-NPU 一致性

{
  "same_weights_input_dtype_seed": true,
  "latent_mu_max_abs_diff": 0.003552556037902832,
  "latent_mu_cosine": 0.9999960660934448,
  "recon_max_abs_diff_normalized": 0.0009444281458854675,
  "recon_max_abs_diff_meters": 0.04018826662849051,
  "chamfer_cross_device_normalized_sq": 6.284208353690701e-08,
  "chamfer_relative_agreement": 0.00037572859586052843,
  "gates": {
    "finite_outputs": true,
    "bbox_plausible": true,
    "mu_max_abs": true,
    "mu_cosine": true,
    "recon_max_abs_normalized": true,
    "chamfer_relative_agreement": true,
    "normalized_cd2_plausible": true,
    "no_silent_cpu_fallback": true
  }
}

性能

{
  "warmup_runs": 3,
  "timed_runs": 12,
  "ms_per_scene": 4.112458671443164,
  "scenes_per_s": 243.16353789619362,
  "peak_npu_memory_mb": 124.76953125,
  "timing_sync": "torch.npu.synchronize()"
}

自验证截图

Agent workflow

NPU device call

Model result

已知限制

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

标签

#NPU #Ascend #Ascend910