Skip to content

Conversation

@xuan112358
Copy link
Collaborator

@xuan112358 xuan112358 commented Apr 3, 2025

What's changed?

  • Modify unit of output deepks *.npy from Ry to Hartree, which is consistent with deepks-kit
  • Enable deepks_out_labels as 2. When deepks_out_labels equals 2, all needed lable files are output with deepks prefix, including atom.npy, box.npy, energy.npy, as well as force.npy, stress.npy, orbital.npy, hamiltonian.npy, overlap.npy when specified. The units and formats are the same as label files required for training, except that the first dimension (nframes) is excluded. No-use files are not output. This can simplify deepks label preperation with ABACUS.
  • Doc for deepks_out_labels = 2

How to use?

If you want to get deepks labels at the level of HSE:

  • Do SCF calculations with dft_functional=hse and deepks_out_labels=2. If properties other than energy is needed, set cal_force for force label or deepks_v_delta for Hamiltonian label, etc.
  • All needed file are output in the OUT.suffix folder. Concatenate files from all different configurations and remove the deepks prefix. Then you get the labels.
  • System structrue files atom.npy and box.npy are also output in the unit of Bohr, which means lattice_constant should be set to 1 in scf_abacus.yaml when training with deepks-kit.

Unit Tests and/or Case Tests for my changes

  • An Integration test is added

@xuan112358 xuan112358 requested review from ErjieWu and mohanchen and removed request for mohanchen April 3, 2025 08:01
@mohanchen mohanchen added Machine Learning Issues related to the DeePKS Refactor Refactor ABACUS codes labels Apr 4, 2025
@mohanchen mohanchen merged commit 9fb090c into deepmodeling:develop Apr 6, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Machine Learning Issues related to the DeePKS Refactor Refactor ABACUS codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants