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'>
``
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
MACELEScheckpoint loads successfully and also runs correctly with nativeMACECalculator(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: