Closed njzjz closed 1 week ago
[!WARNING]
Rate limit exceeded
@njzjz has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 16 minutes and 33 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 556d7e4329039beabb8ccdd855b9b1a2e2222f29 and 3a703aa7ad5c0d6828b6c8de26a77dcc00387a16.
The new changes introduce improved robustness and compatibility checks for DeepMD-py wrapper based on PyTorch. These enhancements revolve around exception handling when loading shared libraries while ensuring alignment with the CXX11 ABI flag and version compatibility. Additionally, the entry points have been enhanced to provide extra backend information when custom operations are enabled.
File | Changes Summary |
---|---|
deepmd/pt/cxx_op.py |
Added exception handling for torch.ops.load_library , ensuring CXX11 ABI flag and version compatibility, and raised errors for mismatches. |
deepmd/pt/entrypoints/main.py |
Imported GLOBAL_CONFIG and modified get_backend_info to conditionally include more info if ENABLE_CUSTOMIZED_OP is set. |
sequenceDiagram
participant User
participant Main as main.py
participant PT as cxx_op.py
participant PyTorch
participant Config as deepmd.env
User->>Main: Start application
Main->>Config: Get GLOBAL_CONFIG
Main->>PT: Load CXX operations
PT->>PyTorch: torch.ops.load_library(module_file)
PyTorch-->>PT: Check CXX11 ABI and version compatibility
PT->>PT: Exception Handling and Error Raising
Main->>Main: get_backend_info()
Main-->>User: Provide backend info if ENABLE_CUSTOMIZED_OP is set
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?
Attention: Patch coverage is 30.00000%
with 14 lines
in your changes missing coverage. Please review.
Project coverage is 82.72%. Comparing base (
b6f0fa3
) to head (3a703aa
).
Files | Patch % | Lines |
---|---|---|
deepmd/pt/cxx_op.py | 18.75% | 13 Missing :warning: |
deepmd/pt/entrypoints/main.py | 75.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Most are copied from TF for consistent user experience.
The summary is like
The error message is like
Summary by CodeRabbit
New Features
Bug Fixes