Skip to content

Faster D3 for MACE #1340

Closed
Closed

Description

@joel-landis

While using MACE through ASE I noticed that enabling dispersion correction leads to an almost order of magnitude slowdown in relaxation time compared to running without dispersion.

From the runtime warning it seems to me that this:

torch_dftd3_calculator.py:98: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at /pytorch/torch/csrc/utils/tensor_new.cpp:254.)

Seems to cause the slowdown.

Since torch-dftd is not actively maintained any more I wonder whether it would be possible to switch the backend to the https://github.com/dftd3/tad-dftd3 library as a maintained alternative?

Thank you very much for your help

Activity

  1. ilyes319 commented on Jan 27, 2026

    @ilyes319
    Contributor

    Hey @LesTuche, we have been working on integrating the Alchemi (from Nvidia) D3. @IsaacParker30 did you make a PR already to support that in torch-dft-d3?

  2. IsaacParker30 commented on Jan 27, 2026

    @IsaacParker30
    Contributor

    No. I think @gabor1 and @WillBaldwin0 suggested other stuff was being worked on atm.
    I can link my branch here though for now:
    https://github.com/IsaacParker30/torch-dftd/tree/alchemi

  3. locked and limited conversation to collaborators on Jan 27, 2026
  4. converted this issue into a discussion #1344 on Jan 27, 2026
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