-
Notifications
You must be signed in to change notification settings - Fork 526
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
ci: pin PT to 2.3.1 when using CUDA #4009
Conversation
Signed-off-by: Jinzhe Zeng <[email protected]>
WalkthroughWalkthroughThe recent changes enhance the GitHub Actions workflows and dependency management for building and testing a Python package. Key updates include optimizing the wheel building process by removing an unnecessary tools folder, locking the PyTorch version to 2.3.1 to ensure compatibility, and specifying this version in the Changes
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (3)
Files skipped from review due to trivial changes (1)
Additional comments not posted (1)
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 as PR comments)
Additionally, you can add 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: 0
Outside diff range, codebase verification and nitpick comments (1)
pyproject.toml (1)
268-269
: Compatibility Issues Found with PyTorch Version PinningThe codebase uses features introduced in PyTorch 2.4.0 and later, such as
torch._dynamo
,torch_func
, andtorch.compiled_with_cxx11_abi
. Pinning PyTorch to version 2.3.1 will likely cause compatibility issues.
- Files with incompatible features:
deepmd/pt/train/training.py
deepmd/pt/train/wrapper.py
deepmd/pt/model/network/init.py
deepmd/pt/model/descriptor/se_atten.py
deepmd/pt/infer/inference.py
deepmd/pt/cxx_op.py
Please review and address these compatibility concerns to ensure the codebase functions correctly with the specified PyTorch version.
Analysis chain
LGTM! Verify the impact of version pinning on the codebase.
The change to specify the PyTorch version as 2.3.1 is approved.
However, ensure that this version pinning does not affect other parts of the codebase that might rely on newer PyTorch features.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the impact of PyTorch version pinning on the codebase. # Test: Search for PyTorch usage. Expect: No usage of features introduced after version 2.3.1. rg --type python -A 5 $'import torch'Length of output: 69
Script:
#!/bin/bash # Description: Verify the impact of PyTorch version pinning on the codebase. # Test: Search for PyTorch usage. Expect: No usage of features introduced after version 2.3.1. rg --glob '*.py' -A 5 'import torch'Length of output: 52672
Script:
#!/bin/bash # Description: Verify the impact of PyTorch version pinning on the codebase by checking for usage of features introduced after version 2.3.1. # Test: Search for usage of features introduced in PyTorch 2.4.0 and later. rg --glob '*.py' -e 'torch.compile' -e 'torch.func' -e 'torch._dynamo' -e 'torch._inductor' -e 'torch._functorch' -e 'torch._export'Length of output: 1348
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## devel #4009 +/- ##
==========================================
+ Coverage 82.83% 82.84% +0.01%
==========================================
Files 522 522
Lines 50872 50920 +48
Branches 3015 3011 -4
==========================================
+ Hits 42142 42187 +45
- Misses 7795 7798 +3
Partials 935 935 ☔ View full report in Codecov by Sentry. |
PT 2.4.0 requires cudnn 9, incompatible with the latest TF with cudnn 8. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Updated the build process to optimize resource usage by removing unnecessary files. - Specified a fixed version for PyTorch to ensure consistent functionality across environments. - **Documentation** - Added configuration settings to manage library dependencies and ensure compatibility. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <[email protected]>
PT 2.4.0 requires cudnn 9, incompatible with the latest TF with cudnn 8.
Summary by CodeRabbit
New Features
Documentation