-
Notifications
You must be signed in to change notification settings - Fork 526
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
docs: improve multi-backend documentation #3875
Conversation
Signed-off-by: Jinzhe Zeng <[email protected]>
WalkthroughWalkthroughThe changes primarily update documentation to enhance clarity and improve compatibility across TensorFlow and PyTorch implementations in the DeePMD-kit project. Key modifications include revising "graph files" to "model files," introducing new command-line flags ( Changes
Sequence Diagram(s)(Sequence diagrams are not provided because the changes primarily involve documentation updates and enhancements, rather than new features or control flow modifications.) Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional context usedLearnings (1)
LanguageTool
Markdownlint
Additional comments not posted (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## devel #3875 +/- ##
=======================================
Coverage 82.70% 82.70%
=======================================
Files 517 517
Lines 50141 50141
Branches 2984 2985 +1
=======================================
Hits 41469 41469
Misses 7762 7762
Partials 910 910 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
Outside diff range and nitpick comments (5)
doc/model/sel.md (2)
Line range hint
3-3
: Clarify the sentence about settingsel
. Consider rephrasing to "All descriptors are required to setsel
, which represents the expected maximum number of type-i neighbors of an atom."
Line range hint
5-5
: Improve sentence structure for clarity. Suggested change: "Ifsel
is insufficient, the energy will not be conserved, which can degrade the accuracy of the model."doc/troubleshooting/howtoset_num_nodes.md (2)
Line range hint
23-23
: Correct the grammatical errors. Suggested change: "Otherwise, one has to manually assign this information."- one have to manually assign these information + one has to manually assign this information
Line range hint
36-36
: Clarify the section title to "Parallelism within individual operators."- ## Parallelism within an individual operators + ## Parallelism within individual operatorsdoc/train/training.md (1)
Line range hint
64-64
: Correct the spelling error in "root mean square". Suggested change: "root-mean-square".- root mean square + root-mean-squareTools
LanguageTool
[uncategorized] ~33-~33: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...nvironment showing on the screen. Among them two pieces of information regarding dat...Markdownlint
16-16: null (MD014, commands-show-output)
Dollar signs used before commands without showing output
24-24: null (MD014, commands-show-output)
Dollar signs used before commands without showing output
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Outside diff range and nitpick comments (4)
doc/model/train-fitting-dos.md (4)
6-6
: Consider adding a comma for clarity.Consider adding a comma after "DP" for better readability in the list of supported backends.
Tools
LanguageTool
[uncategorized] ~6-~6: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...rch_icon }}, DP {{ dpmodel_icon }} ::: Here we present an API to DeepDOS model, whi...
Line range hint
17-17
: Clarify the provision of training and validation data.Consider rephrasing to "The training and validation data are also provided in our examples..." to clarify the ownership or source of the data.
Tools
LanguageTool
[uncategorized] ~6-~6: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...rch_icon }}, DP {{ dpmodel_icon }} ::: Here we present an API to DeepDOS model, whi...
Line range hint
70-70
: Add a missing comma for better readability.Consider adding a comma after "pref_ados" to improve the readability of the list.
Tools
LanguageTool
[uncategorized] ~6-~6: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...rch_icon }}, DP {{ dpmodel_icon }} ::: Here we present an API to DeepDOS model, whi...
Line range hint
71-71
: Correct the verb form for grammatical accuracy.- We also provides + We also provideCorrect the verb form to "provide" to match the subject "We" for grammatical accuracy.
Tools
LanguageTool
[uncategorized] ~6-~6: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...rch_icon }}, DP {{ dpmodel_icon }} ::: Here we present an API to DeepDOS model, whi...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Jinzhe Zeng <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Outside diff range and nitpick comments (4)
doc/model/train-fitting-dos.md (4)
1-1
: Add a brief introduction or summary at the beginning of the document for better clarity and context.
Line range hint
17-17
: Clarify the source of the training and validation data to avoid ambiguity.- The training and validation data are also provided our examples. + The training and validation data are also provided in our examples.Tools
LanguageTool
[uncategorized] ~6-~6: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...rch_icon }}, DP {{ dpmodel_icon }} ::: Here we present an API to DeepDOS model, whi...
Line range hint
28-35
: Replace hard tabs with spaces to maintain consistency and adhere to Markdown best practices.- "fitting_net" : { - "type": "dos", - "numb_dos": 250, - "sel_type": [0], - "neuron": [120,120,120], - "resnet_dt": true, - "fparam": 0, - "seed": 1, - }, + "fitting_net": { + "type": "dos", + "numb_dos": 250, + "sel_type": [0], + "neuron": [120, 120, 120], + "resnet_dt": true, + "fparam": 0, + "seed": 1 + },Tools
LanguageTool
[uncategorized] ~6-~6: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...rch_icon }}, DP {{ dpmodel_icon }} ::: Here we present an API to DeepDOS model, whi...
Line range hint
56-66
: Replace hard tabs with spaces in the JSON block for loss configuration to improve readability.- "loss" : { - "type": "dos", - "start_pref_dos": 0.0, - "limit_pref_dos": 0.0, - "start_pref_cdf": 0.0, - "limit_pref_cdf": 0.0, - "start_pref_ados": 1.0, - "limit_pref_ados": 1.0, - "start_pref_acdf": 0.0, - "limit_pref_acdf": 0.0 - }, + "loss": { + "type": "dos", + "start_pref_dos": 0.0, + "limit_pref_dos": 0.0, + "start_pref_cdf": 0.0, + "limit_pref_cdf": 0.0, + "start_pref_ados": 1.0, + "limit_pref_ados": 1.0, + "start_pref_acdf": 0.0, + "limit_pref_acdf": 0.0 + },Tools
LanguageTool
[uncategorized] ~6-~6: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...rch_icon }}, DP {{ dpmodel_icon }} ::: Here we present an API to DeepDOS model, whi...
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Clarified the process of freezing a model by removing references to specific code sources. - Updated command syntax for calculating neighbor statistics to include TensorFlow and PyTorch flags. - Modified descriptions to specify model files instead of graph files. - Added and adjusted commands to support both TensorFlow and PyTorch for training, freezing, and testing models. - Introduced a tabular format for configuring parallelism settings for TensorFlow and PyTorch. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary by CodeRabbit