Skip to content

Units of the reference DFT calculations #51

Closed

Description

@Babuji-ph21d300

Dear Team,

Thanks for open-sourcing the foundational models. I'm working on molecular solutions, such as ethylene carbonate. I use CP2K to perform single-point DFT calculations (DFT-labeling) due to its faster performance compared to VASP. But CP2K uses atomic units (Ha for energies and Ha/Bohr for forces), whereas OMAT uses eV and eV/Angstrom for total energies and forces. Can I use the foundational models trained on the OMAT_0 database and fine-tune them by adding structures from my CP2K training dataset (by converting Ha to eV and Ha/Bohr to eV/Angstrom)?

(Because my understanding is that total energy comparison of the same structure across DFT codes won't give any meaning, but the forces on atoms should be similar across different DFT codes on the same level of theory. In other words, the potential energy surfaces' shape (gradients) should be the same across DFT. If this is correct, then finetuning only needs to learn the total energies, which I believe to converge quickly.)

The idea is to leverage the chemistry learned by a foundational model and fine-tune it with a faster DFT sampling for quicker convergence in active learning.

Any advice or pointers would be greatly appreciated. Thank you for your time!

Activity

  1. gabor1 commented on Oct 24, 2025

    @gabor1
    Collaborator

    (1) you can convert all your energies, forces and stresses to eV and Angstrom units.

    (2) even though absolute energies are not comparable, remember that we use ATOMIZATION energies, and therefore you need to provide the ISOLATED ATOM ENERGY corresponding to your fine-tuning dataset.

    (3) beware of training ML models on CP2K data. we have never had good success with that, because CP2K forces have pretty large errors on them due to the numerical approach of cp2k. these errors don't affect time-integrated ensemble averages because they largely cancel out, but they do mislead you when training and validating. to get a sense of your errors, add up the forces from CP2K in a periodic cell. you should get zero, but you won't. the typical strategy is to do MD with CP2K, sample independent configs, and recompute them with a plane wave code with very high energy cutoff and k-point sampling.

  2. locked and limited conversation to collaborators on Oct 26, 2025
  3. converted this issue into a discussion #52 on Oct 26, 2025
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