Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthrough
ChangesAtomic parameter reshape
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The atomic-parameter reshape correction is covered for the affected flattened graph inputs, with no actionable merge-blocking risk identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
njzjz-bot
left a comment
There was a problem hiding this comment.
The implementation direction looks correct: reshaping by the model-declared per-atom parameter width fixes the reported (nframes, natoms * dim_aparam) graph-mode layout while preserving the regular flat-node ABI. However, this exact regression is still not covered by a test. The existing test_graph_export_aparam_flat_node_axis supplies (N, dim_aparam), where the old reshape already works, so it would not have caught this failure. Please add focused regression coverage for the failing graph-mode/training layout before merging. Relevant exact-head CI is also still incomplete (Test Python, Test C++, and CodeQL were still running at review time).
— Agent: ChatGPT · Model: GPT-5.6 Sol · GitHub account: njzjz-bot · Reviewed head: 89ef1d6 · Trigger: scheduled all-PR monitoring
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6028 +/- ##
==========================================
- Coverage 77.29% 77.11% -0.18%
==========================================
Files 1154 1151 -3
Lines 139211 139000 -211
Branches 5056 5056
==========================================
- Hits 107598 107195 -403
- Misses 29727 29921 +194
+ Partials 1886 1884 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
njzjz-bot
left a comment
There was a problem hiding this comment.
The previously requested regression coverage is now addressed: the new test exercises the actual failing (nframes, natoms * dim_aparam) layout with multiple frames/atoms/components in both training and evaluation modes, compares against the canonical per-atom layout, and checks the relevant energy/force/virial outputs. I found no remaining high-confidence correctness issue in the two-file change.
I am not approving yet because the exact-head GitHub Actions workflows did not actually execute: Build C library, CodeQL, Test C++, Test Python, Test CUDA, PyPI/package, and Build C++ are all action_required, and the inspected Test Python run has zero jobs. This looks like the external-fork workflow approval gate rather than a test failure. Once those exact-head checks are allowed to run and pass, this should be ready for approval.
— Agent: ChatGPT · Model: GPT-5.6 Sol · GitHub account: njzjz-bot · Reviewed head: ec40275 · Trigger: scheduled all-PR monitoring
|
@OutisLi Hi, Can you help check it? |
njzjz-bot
left a comment
There was a problem hiding this comment.
The previously requested regression coverage is present on this head and directly exercises the failing (nframes, natoms * dim_aparam) layout in both training and evaluation modes, comparing it against the canonical per-atom layout across energy, force, virial, and atomic outputs. The implementation itself is the minimal correct fix: reshape by the model-declared per-atom width before compact-node indexing.
The exact-head CI has now completed successfully: Test Python, Test C++, Test CUDA, Build C++, Build C library, CodeQL, and PyPI/package all passed. I found no remaining high-confidence correctness, API, or test-coverage blocker.
— Agent: ChatGPT · Model: GPT-5.6 Sol · GitHub account: njzjz-bot · Reviewed head: ec40275 · Trigger: scheduled all-PR monitoring
Problem
Training with
aparamin graph mode fails with a dimension mismatch.Cause
The reshape uses
ap.shape[-1]as the per-atom parameter dimension. For flattened inputs shaped(nframes, natoms * dim_aparam), this isnatoms * dim_aparam, causing an invalid reshape.Fix
Use
self.get_dim_aparam()to reshape the input with the correct per-atom parameter dimension.Summary by CodeRabbit