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

isayevlab/aimnet2-2025 on Ascend NPU

模型与任务

  • 模型:isayevlab/aimnet2-2025
  • Revision:a2728c57db16064effa03e27006953013974db4f
  • 适配路线: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": -2078.9118042701057,
  "example_H2O_forces_eV_A": [
    [
      0.0,
      2.635642886161804e-07,
      -0.2924967408180237
    ],
    [
      0.0,
      -0.22963835299015045,
      0.146248459815979
    ],
    [
      0.0,
      0.22963811457157135,
      0.1462482511997223
    ]
  ],
  "device": "npu:0"
}

CPU-NPU 一致性

{
  "H2O_e_diff_meV_per_atom": 2.5736582902027294,
  "H2O_f_diff_max_eV_A": 0.0015828758478164673,
  "H2O_f_cosine_mean": 0.9999973773956299,
  "CH4_e_diff_meV_per_atom": 3.038900037881831,
  "CH3OH_e_diff_meV_per_atom": 3.4550743015036764,
  "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": 46.67379856109619,
  "atoms_per_second": 128.551782476971,
  "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