-
Notifications
You must be signed in to change notification settings - Fork 516
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 Request] manage testing models in a standard way #2103
Comments
7 tasks
github-project-automation
bot
moved this to Todo
in Multiple backend support for DeePMD-kit
Jan 11, 2024
njzjz
added a commit
to njzjz/deepmd-kit
that referenced
this issue
Jul 25, 2024
Propose a plain text model format based on YAML, which can be easily read by humans and might be good to be stored in the git repository (which is good for deepmodeling#2103). Signed-off-by: Jinzhe Zeng <[email protected]>
github-merge-queue bot
pushed a commit
that referenced
this issue
Jul 26, 2024
Propose a plain text model format based on YAML, which humans can easily read and might be easier to track changes in the git repository (which is good for #2103). Example: [deeppot_dpa_sel.yaml](https://github.com/user-attachments/files/16384230/deeppot_dpa_sel.yaml.txt) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added support for additional file formats (.yaml and .yml) for model saving and loading. - Enhanced the ability to serialize and deserialize model data in multiple formats. - **Bug Fixes** - Improved error handling for unsupported file formats during model loading. - **Documentation** - Updated documentation to reflect new supported file formats and clarify backend capabilities. - **Tests** - Introduced new test cases to ensure functionality for saving and loading models in YAML format. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <[email protected]>
github-merge-queue bot
pushed a commit
that referenced
this issue
Aug 5, 2024
Fix #2103. Migrate three models (se_e2_a, se_e2_r, and fparam_aparam) for the Python unit tests. Fix several bugs. Old files are kept until the C++ tests are also migrated. Note that several models (for example, the dipole model due to #3672) cannot be serialized yet. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **New Features** - Introduced a structured framework for managing and testing models with YAML files. - Added comprehensive configurations for energy calculations and molecular simulations in YAML format. - Implemented new test cases for the `DeepPot` and `DeepPotNeighborList` classes. - **Bug Fixes** - Improved robustness in tensor reshaping, resolving potential dimension mismatches. - **Tests** - Enhanced unit tests with a case-based approach for better adaptability and maintainability. - Consolidated tests by relocating obsolete classes to streamline the test suite. - **Chores** - Updated deserialization functions for better type safety and input handling. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <[email protected]>
mtaillefumier
pushed a commit
to mtaillefumier/deepmd-kit
that referenced
this issue
Sep 18, 2024
Propose a plain text model format based on YAML, which humans can easily read and might be easier to track changes in the git repository (which is good for deepmodeling#2103). Example: [deeppot_dpa_sel.yaml](https://github.com/user-attachments/files/16384230/deeppot_dpa_sel.yaml.txt) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added support for additional file formats (.yaml and .yml) for model saving and loading. - Enhanced the ability to serialize and deserialize model data in multiple formats. - **Bug Fixes** - Improved error handling for unsupported file formats during model loading. - **Documentation** - Updated documentation to reflect new supported file formats and clarify backend capabilities. - **Tests** - Introduced new test cases to ensure functionality for saving and loading models in YAML format. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <[email protected]>
mtaillefumier
pushed a commit
to mtaillefumier/deepmd-kit
that referenced
this issue
Sep 18, 2024
Fix deepmodeling#2103. Migrate three models (se_e2_a, se_e2_r, and fparam_aparam) for the Python unit tests. Fix several bugs. Old files are kept until the C++ tests are also migrated. Note that several models (for example, the dipole model due to deepmodeling#3672) cannot be serialized yet. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **New Features** - Introduced a structured framework for managing and testing models with YAML files. - Added comprehensive configurations for energy calculations and molecular simulations in YAML format. - Implemented new test cases for the `DeepPot` and `DeepPotNeighborList` classes. - **Bug Fixes** - Improved robustness in tensor reshaping, resolving potential dimension mismatches. - **Tests** - Enhanced unit tests with a case-based approach for better adaptability and maintainability. - Consolidated tests by relocating obsolete classes to streamline the test suite. - **Chores** - Updated deserialization functions for better type safety and input handling. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Currently, we have many APIs to infer models, such as Python, C++, C, LAMMPS, etc. These APIs use minified models to test. Currently, all testing models are in the Python test directory
source/tests/infer/deepdipole_fake.pbtxt
. We hope we can move them out of that directory and manage them in a standard way.Detailed Description
For each model, we may create a metafile:
I write YAML for convenience, but it could also be a JSON file. Each test program could read these files, and test results are not necessarily defined in the program.
Further Information, Files, and Links
No response
The text was updated successfully, but these errors were encountered: