-
Notifications
You must be signed in to change notification settings - Fork 578
Fix: model_output_type unify name #5069
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
base: devel
Are you sure you want to change the base?
Conversation
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.
Pull request overview
This PR fixes a bug in the PyTorch backend's model type detection by adding support for the "polarizability" output type name. The atomic model returns "polarizability" in its model_output_type(), but the inference code was only checking for "polar", causing polar models to fail type detection.
Key Changes:
- Updated the model type detection logic to recognize both "polar" and "polarizability" as indicators of a polar model
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
📝 WalkthroughWalkthroughThe model type detection logic in the deep evaluation module is modified to expand the conditions for selecting the DeepPolar model. The detection now triggers when the model output type contains either "polar" or "polarizability", whereas previously it only checked for "polar". Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2024-09-19T04:25:12.408ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (31)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## devel #5069 +/- ##
==========================================
+ Coverage 84.28% 84.33% +0.04%
==========================================
Files 708 709 +1
Lines 69911 70445 +534
Branches 3608 3619 +11
==========================================
+ Hits 58923 59407 +484
- Misses 9832 9871 +39
- Partials 1156 1167 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.