Skip to content

[BUG] AOT inductor compilation fails #574

@mjrs33

Description

@mjrs33

Describe the bug
When I attempted to compile the pre-trained model from nequip.net, the following error occurred:

AssertionError: Compilation check MaxAbsError: 1.24863 (tol: 5e-05) for field `atomic_energy`.

To Reproduce

nequip-compile \
  nequip.net:mir-group/NequIP-OAM-L:0.1 \
  mir-group__NequIP-OAM-L__0.1.nequip.pt2 \
  --mode aotinductor \
  --device cuda \
  --target ase \
  --modifiers enable_OpenEquivariance

Expected behavior
MaxAbsError must be less than tol: 5e-05

Environment (please complete the following information):

  • OS: Rocky Linux 9.5 (Blue Onyx)
  • python version: Python 3.12.9
  • python environment:
    • nequip==0.16.0
    • e3nn==0.5.8
    • openequivariance==0.4.1
    • torch==2.9.1 (2.9.1+cu128)
$ nvcc --version
Cuda compilation tools, release 12.8, V12.8.61
Build cuda_12.8.r12.8/compiler.35404655_0

$ python -c "import torch; print(torch.version.cuda)"
12.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions