-
Notifications
You must be signed in to change notification settings - Fork 520
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
breaking(pt/dp):change env_protection for spin #4394
Conversation
📝 WalkthroughWalkthroughThe pull request includes modifications to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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 (1)
doc/model/train-energy-spin.md (1)
74-80
: Consider adding migration guidanceSince this is a breaking change, it would be helpful to add migration guidance for users updating from previous versions.
Consider adding:
For systems with nearly zero spin, users can also consider tuning this parameter to potentially enhance stability. + +If you are upgrading from a previous version and want to maintain the old behavior, you can explicitly set `env_protection: 1e-6` in your descriptor configuration.🧰 Tools
🪛 LanguageTool
[style] ~76-~76: To make your writing clearer, consider a shorter, more direct word.
Context: ...es zero (indicating the virtual atom is in close proximity to the real atom) by adjusting the non-zer...(CLOSE_PROXIMITY)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
deepmd/pt/model/model/__init__.py
(1 hunks)doc/model/train-energy-spin.md
(1 hunks)
🧰 Additional context used
🪛 LanguageTool
doc/model/train-energy-spin.md
[style] ~76-~76: To make your writing clearer, consider a shorter, more direct word.
Context: ...es zero (indicating the virtual atom is in close proximity to the real atom) by adjusting the non-zer...
(CLOSE_PROXIMITY)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## devel #4394 +/- ##
==========================================
- Coverage 84.50% 84.50% -0.01%
==========================================
Files 604 604
Lines 56944 56945 +1
Branches 3486 3486
==========================================
- Hits 48122 48119 -3
- Misses 7697 7698 +1
- Partials 1125 1128 +3 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Summary by CodeRabbit
New Features
Bug Fixes
env_protection
parameter to improve model handling of environmental protection during computations.