test(pt_expt): document compiled neighbor type equivalence#5860
test(pt_expt): document compiled neighbor type equivalence#5860njzjz-bot wants to merge 1 commit into
Conversation
Clarify that compiled training intentionally passes merged global candidates because the lower model performs the same non-mixed type layout. Add an adversarial A/A/B regression proving early and lower-layer type splits produce the same final neighbor list under the established contract. Coding-Agent: Codex Codex-Version: codex-cli 0.144.4 Model: gpt-5.6-sol Reasoning-Effort: xhigh
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe change documents the dense compiled-training neighbor-list contract and adds a regression test comparing deferred type splitting with direct type-specific neighbor-list construction. ChangesNeighbor-list layout
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5860 +/- ##
==========================================
- Coverage 78.58% 78.32% -0.26%
==========================================
Files 1050 1050
Lines 120637 120638 +1
Branches 4356 4355 -1
==========================================
- Hits 94801 94490 -311
- Misses 24278 24586 +308
- Partials 1558 1562 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Possible reviewers based on changed lines, exact file history, and exact-file review history:
No review request was made automatically. Coding agent: Codex |
Closes #5670 as a false positive.
Summary
Why the reported divergence does not occur
This matches the maintainer conclusion on the same report in PR #5491:
#5491 (comment)
If the desired behavior is instead to retain a per-type-safe candidate superset before truncation, that is a separate cross-backend neighbor-list contract change affecting eager, inference, export, and compiled paths.
Why existing tests did not make this obvious
Validation
The local pt_expt training module could not be collected because the installed libdeepmd_op_pt.so has a stale PyTorch ABI; this PR changes no executable behavior, and the backend-independent contract regression passes.
Coding agent: Codex
Codex version: codex-cli 0.144.4
Model: gpt-5.6-sol
Reasoning effort: xhigh
Summary by CodeRabbit
Documentation
Tests