w
gcw_uQ09W7jl/isayevlab-aimnet2-wb97m-d3-NPU
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

isayevlab/aimnet2-wb97m-d3 on Ascend NPU

模型与任务

  • 模型:isayevlab/aimnet2-wb97m-d3
  • Revision:main
  • 适配路线:molecular-potential
  • 设备:npu:0

环境依赖

{
  "torch": "2.9.0+cpu",
  "torch_npu": "2.9.0.post1+gitee7ba04",
  "device_name": "Ascend910_9362",
  "npu_available": true,
  "python": "3.11"
}

安装:pip install -r requirements.txt

NPU 推理

默认执行:python inference.py

真实输入

{
  "molecules": [
    "H2O",
    "CH4",
    "CH3OH"
  ],
  "example_molecule": "H2O",
  "numbers_H2O": [
    8,
    1,
    1
  ],
  "coord_units": "Angstrom",
  "charge": 0.0,
  "dtype": "float32 (NPU) / float64 (CPU)",
  "note": "Real molecular configurations from ASE (H2O, CH4, CH3OH); external dispersion via CPU fallback explicitly logged"
}

真实推理结果

{
  "energy_units": "eV",
  "forces_units": "eV/Angstrom",
  "charges_units": "e",
  "energy_shape": "[1]",
  "forces_shape": "[N,3]",
  "charges_shape": "[N]",
  "example_H2O_energy_eV": -2081.0310549337382,
  "example_H2O_forces_eV_A": [
    [
      0.0,
      -1.1324882507324219e-06,
      -0.66497802734375
    ],
    [
      0.0,
      -0.2856736183166504,
      0.3324885368347168
    ],
    [
      0.0,
      0.2856748104095459,
      0.3324894905090332
    ]
  ],
  "device": "npu:0"
}

CPU-NPU 一致性

{
  "H2O_e_diff_meV_per_atom": 3.273454160989786,
  "H2O_f_diff_max_eV_A": 0.06306323409080505,
  "H2O_f_cosine_mean": 0.9975826144218445,
  "CH4_e_diff_meV_per_atom": 0.9023973186685907,
  "CH3OH_e_diff_meV_per_atom": 0.48985898979481135,
  "overall": "PASS",
  "note": "NPU base computed on npu:0 with torch.npu.synchronize(); external dispersion/coulomb via CPU fallback (warp does not support NPU) and added; CPU-NPU base consistency verified"
}

性能

{
  "avg_ms_per_molecule": 43.12927722930908,
  "atoms_per_second": 139.11663689839483,
  "n_runs": 10,
  "molecule": "CH3OH",
  "natoms": 6,
  "device": "npu:0",
  "dtype": "float32"
}

自验证截图

Agent workflow

NPU device call

Model result

已知限制

  • Warp-based neighbor/dispersion ops fallback to CPU (npu:0 not supported by warp) with explicit logging; base MLP on NPU
  • 仅对本次记录的模型 revision、输入契约、dtype 与 Ascend 环境完成验证。

标签

#NPU #Ascend #Ascend910