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. #2806

Closed
wants to merge 6 commits into from

Conversation

xuan112358
Copy link

…rm 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.
Add tests for deepks_v_delta equals 1 and 2.
…rm 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.
Add tests for deepks_v_delta equals 1 and 2.
@wenfei-li
Copy link
Collaborator

Looks good to me.

@@ -362,4 +382,56 @@ void LCAO_Deepks::del_orbital_pdm_shell(const int nks)
return;
}

void LCAO_Deepks::init_v_delta_pdm_shell(const int nks,const int nlocal)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add unit test for newly added functions.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New integrate tests has covered the function.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are many newly added functions, they will reduce the coverage rate of unit tests.

@dyzheng dyzheng linked an issue Aug 29, 2023 that may be closed by this pull request
@@ -362,4 +382,56 @@ void LCAO_Deepks::del_orbital_pdm_shell(const int nks)
return;
}

void LCAO_Deepks::init_v_delta_pdm_shell(const int nks,const int nlocal)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are many newly added functions, they will reduce the coverage rate of unit tests.

@xuan112358 xuan112358 marked this pull request as draft October 24, 2023 13:19
@mohanchen
Copy link
Collaborator

Will PR again in the near future

@mohanchen mohanchen closed this Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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