Skip to content

workaround for compile bug#390

Open
sef43 wants to merge 1 commit into
mainfrom
openmmml_fix_136
Open

workaround for compile bug#390
sef43 wants to merge 1 commit into
mainfrom
openmmml_fix_136

Conversation

@sef43

@sef43 sef43 commented Mar 31, 2026

Copy link
Copy Markdown
Collaborator

this is a workaround for the issue reported here: openmm/openmm-ml#136
which is a torch compile bug: pytorch/pytorch#178871

Essentially when the model gets torch compiled if the number of atoms is not a multiple of 2 it can end up with an offset (i think deterministic) to the total energy from buggy generated triton code. The forces are not affected, relative energies after compilation are also not affected. The error appears when comparing energy from a non-compiled model with the energy from a compiled model.

@sef43

sef43 commented Mar 31, 2026

Copy link
Copy Markdown
Collaborator Author

The failures look to be from torchscript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant