forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…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
reviewed
Jul 8, 2024
source/module_hamilt_lcao/module_deepks/LCAO_deepks_interface.cpp
Outdated
Show resolved
Hide resolved
…ng GlobalV::NLOCAL in out_deepks_labels
mohanchen
reviewed
Jul 8, 2024
source/module_hamilt_lcao/module_deepks/LCAO_deepks_interface.cpp
Outdated
Show resolved
Hide resolved
source/module_hamilt_lcao/module_deepks/LCAO_deepks_interface.cpp
Outdated
Show resolved
Hide resolved
source/module_hamilt_lcao/module_deepks/LCAO_deepks_interface.cpp
Outdated
Show resolved
Hide resolved
source/module_hamilt_lcao/module_deepks/LCAO_deepks_interface.h
Outdated
Show resolved
Hide resolved
mohanchen
approved these changes
Jul 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reminder
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.