Skip to content

issue while running pretrained mace model with openmm MACELES checkpoint runs in native MACE GPU but fails in OpenMM-ML CUDA with CPU/CUDA tensor mismatch in torch.functional.tensordot #142

Description

@jagriti-iisc

File "/.../torch/functional.py", line 1333, in tensordot
return _VF.tensordot(a, b, dims_a, dims_b)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

tensordot = torch.functional.tensordot(einsum_11, mul_15, ([3, 4], [0, 1]), out = None)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument mat2 in method wrapper_CUDA_mm)

Summary

A local MACELES checkpoint loads successfully and also runs correctly with native MACECalculator(device="cuda"), but fails during GPU execution inside OpenMM-ML with a CPU/CUDA tensor mismatch.

The model can be loaded with torch.load() and resolves to:

<class 'mace.modules.extensions.MACELES'>
``

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions