Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature : Add deepks_v_delta, which can help to train DeepKS model with loss term about Hamiltonian, psi and band #4594

Merged
merged 25 commits into from
Jul 12, 2024

Conversation

xuan112358
Copy link
Collaborator

Reminder

  • Have you linked an issue with this pull request?
  • Have you added adequate unit tests and/or case tests for your pull request?
  • Have you noticed possible changes of behavior below or in the linked issue?
  • Have you explained the changes of codes in core modules of ESolver, HSolver, ElecState, Hamilt, Operator or Psi? (ignore if not applicable)

Linked Issue

Fix #2805

Unit Tests and/or Case Tests for my changes

Case Tests: tests/deepks/603_NO_deepks_H2O_v_delta_1 and 603_NO_deepks_H2O_v_delta_2

What's changed?

Enable outputting files required by v_delta label for DeePKS training

Any changes of core modules? (ignore if not applicable)

I call a new function save_h_mat in the update_pot function of the esolver_ks_lcao.cpp to save the Hamiltonian matrix.

xuan112358 and others added 8 commits July 3, 2024 17:11
…erm about Hamiltonian, psi and band.

    When deepks_out_labels equals 1 , it can output labels about Hamiltonian. Meanwhile, it will output v_delta_precalc when deepks_v_delta equals 1, and output psialpha and grad_evdm to save disk memory when deepks_v_delta equal 2.
@mohanchen mohanchen added the The Absolute Zero Reduce the "entropy" of the code to 0 label Jul 8, 2024
@mohanchen mohanchen merged commit 796c911 into deepmodeling:develop Jul 12, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
The Absolute Zero Reduce the "entropy" of the code to 0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable Hamiltonian/psi/band training for DeePKS model
2 participants