feat: enable PyTorch custom ops by default#5578
Conversation
Set the DP_ENABLE_PYTORCH build-time default to 1 so source builds include PyTorch customized C++ OPs unless explicitly disabled. Update the installation and model docs to describe the new default without over-emphasizing opt-out instructions.\n\nAuthored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)
|
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 (7)
📝 WalkthroughWalkthrough
ChangesPyTorch Enabled by Default
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 #5578 +/- ##
==========================================
- Coverage 82.15% 82.14% -0.01%
==========================================
Files 900 900
Lines 104140 104141 +1
Branches 4470 4470
==========================================
- Hits 85553 85546 -7
- Misses 17181 17186 +5
- Partials 1406 1409 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
DP_ENABLE_PYTORCHbuild-time default from0to1in the build backendDP_ENABLE_PYTORCH=1explicitlyTests
python3 -m py_compile backend/find_pytorch.py backend/read_env.py deepmd/pt/cxx_op.pygit diff --checkuv run --no-project --with dependency-groups --with packaging pythonsmoke checks for default-DENABLE_PYTORCH=ONand explicitDP_ENABLE_PYTORCH=0->-DENABLE_PYTORCH=OFFAuthored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)
Summary by CodeRabbit
New Features
Bug Fixes
Documentation