Skip to content

Conversation

@HydrogenSulfate
Copy link
Collaborator

@HydrogenSulfate HydrogenSulfate commented Apr 2, 2025

Update related document as paddle 3.0 has been released https://github.com/PaddlePaddle/Paddle/releases/tag/v3.0.0

TODO: update paddle_inference_dir auto download url

Summary by CodeRabbit

  • Documentation

    • Revised installation instructions to reference the stable PaddlePaddle release (v3.0.0) with updated CUDA version references for GPU and CPU setups.
  • Chores

    • Updated dependency specifications in continuous integration processes and internal management scripts to use the stable release, ensuring improved consistency and compatibility.

Copilot AI review requested due to automatic review settings April 2, 2025 11:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the PaddlePaddle dependency from release candidates (3.0.0rc*) to the official 3.0.0 release and adjusts corresponding documentation and workflows accordingly.

  • Updated installation instructions and URLs for PaddlePaddle in source install and easy-install documentation.
  • Modified dependency requirements in the backend and CI workflow files to target PaddlePaddle 3.0.0.
  • Updated the CUDA version references in documentation and workflows.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
doc/install/install-from-source.md Updated PaddlePaddle version and download URL; however, the comment indicating CUDA version remains as "# cu123" while the command now targets cu126.
doc/install/easy-install.md Updated installation command and tab item labels to match the new CUDA version and PaddlePaddle release.
backend/find_paddle.py Updated paddle version requirement from a beta-release to the stable release.
.github/workflows/test_python.yml Updated pip installation command for PaddlePaddle from a release candidate to the stable release.
.github/workflows/test_cuda.yml Updated pip installation for GPU testing to reflect the stable release and correct CUDA version.
Comments suppressed due to low confidence (1)

doc/install/install-from-source.md:101

  • The comment indicates CUDA 123, but the installation command below now uses a URL for cu126. Please update the comment to reflect the correct CUDA version to avoid confusion.
# cu123

@github-actions github-actions bot added the Docs label Apr 2, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Apr 2, 2025

📝 Walkthrough

Walkthrough

The pull request updates the installation commands for the PaddlePaddle library across GitHub Actions workflows, a backend script, and documentation. The changes replace pre-release versions with the stable 3.0.0 release and adjust associated URLs, including modifications to CUDA version references. Additionally, the dependency version requirement in the backend script is updated to enforce the stable release.

Changes

File(s) Change Summary
.github/workflows/test_cuda.yml
.github/workflows/test_python.yml
Updated installation commands to switch from pre-release versions (3.0.0rc1/rc0) to the stable 3.0.0 release, including changes to package index URLs.
backend/find_paddle.py Modified the version requirement in get_pd_requirement from a beta release (3.0.0b1) to the stable release (3.0.0).
doc/install/easy-install.md
doc/install/install-from-source.md
Revised installation documentation by updating PaddlePaddle commands from pre-release to stable (3.0.0) and adjusting CUDA index URLs (e.g., from cu123 to cu126 where applicable).
source/CMakeLists.txt Updated messages and download URLs for Paddle inference libraries, correcting spelling and specifying versions with commit IDs.

Possibly related PRs

Suggested labels

Python

Suggested reviewers

  • njzjz

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 37d5d4d and 2945249.

📒 Files selected for processing (1)
  • .github/workflows/test_cuda.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/test_cuda.yml
⏰ Context from checks skipped due to timeout of 90000ms (29)
  • GitHub Check: Test Python (6, 3.12)
  • GitHub Check: Test Python (6, 3.9)
  • GitHub Check: Test Python (5, 3.12)
  • GitHub Check: Test Python (5, 3.9)
  • GitHub Check: Test Python (4, 3.12)
  • GitHub Check: Test Python (4, 3.9)
  • GitHub Check: Build wheels for cp310-manylinux_aarch64
  • GitHub Check: Test Python (3, 3.12)
  • GitHub Check: Test Python (3, 3.9)
  • GitHub Check: Build wheels for cp311-win_amd64
  • GitHub Check: Test Python (2, 3.12)
  • GitHub Check: Build C++ (clang, clang)
  • GitHub Check: Build wheels for cp311-macosx_arm64
  • GitHub Check: Build C++ (rocm, rocm)
  • GitHub Check: Test Python (2, 3.9)
  • GitHub Check: Build wheels for cp311-macosx_x86_64
  • GitHub Check: Test Python (1, 3.12)
  • GitHub Check: Analyze (python)
  • GitHub Check: Build C library (2.14, >=2.5.0rc0,<2.15, libdeepmd_c_cu11.tar.gz)
  • GitHub Check: Build wheels for cp311-manylinux_x86_64
  • GitHub Check: Build C++ (cuda120, cuda)
  • GitHub Check: Test Python (1, 3.9)
  • GitHub Check: Build C library (2.18, libdeepmd_c.tar.gz)
  • GitHub Check: Build wheels for cp311-manylinux_x86_64
  • GitHub Check: Build C++ (cuda, cuda)
  • GitHub Check: Build C++ (cpu, cpu)
  • GitHub Check: Test C++ (false)
  • GitHub Check: Analyze (c-cpp)
  • GitHub Check: Test C++ (true)

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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 using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

🧹 Nitpick comments (2)
.github/workflows/test_python.yml (1)

34-34: Consider removing the --pre flag for stable release.

The version has been correctly updated from 3.0.0rc1 to the stable 3.0.0 release. However, the --pre flag is typically used for pre-release versions and may not be necessary for a stable release.

- source/install/uv_with_retry.sh pip install --system --pre "paddlepaddle==3.0.0" -i https://www.paddlepaddle.org.cn/packages/stable/cpu/
+ source/install/uv_with_retry.sh pip install --system "paddlepaddle==3.0.0" -i https://www.paddlepaddle.org.cn/packages/stable/cpu/
doc/install/install-from-source.md (1)

101-102: Updated installation command to stable release with CUDA 12.6.

The installation command has been updated from the release candidate to the stable 3.0.0 version of PaddlePaddle with CUDA 12.6 support. The comment on line 101 still says "cu123" which should be updated to match the new CUDA version.

- # cu123
+ # cu126
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5f740f9 and ec2acec.

📒 Files selected for processing (5)
  • .github/workflows/test_cuda.yml (1 hunks)
  • .github/workflows/test_python.yml (1 hunks)
  • backend/find_paddle.py (1 hunks)
  • doc/install/easy-install.md (3 hunks)
  • doc/install/install-from-source.md (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (26)
  • GitHub Check: Test Python (6, 3.12)
  • GitHub Check: Test Python (6, 3.9)
  • GitHub Check: Test Python (5, 3.12)
  • GitHub Check: Test Python (5, 3.9)
  • GitHub Check: Test Python (4, 3.12)
  • GitHub Check: Build wheels for cp310-manylinux_aarch64
  • GitHub Check: Test Python (4, 3.9)
  • GitHub Check: Build wheels for cp311-win_amd64
  • GitHub Check: Test Python (3, 3.12)
  • GitHub Check: Build wheels for cp311-macosx_arm64
  • GitHub Check: Test Python (3, 3.9)
  • GitHub Check: Build wheels for cp311-macosx_x86_64
  • GitHub Check: Test Python (2, 3.12)
  • GitHub Check: Build C++ (rocm, rocm)
  • GitHub Check: Build wheels for cp311-manylinux_x86_64
  • GitHub Check: Test Python (2, 3.9)
  • GitHub Check: Build C++ (cuda120, cuda)
  • GitHub Check: Build C library (2.14, >=2.5.0rc0,<2.15, libdeepmd_c_cu11.tar.gz)
  • GitHub Check: Build wheels for cp311-manylinux_x86_64
  • GitHub Check: Test Python (1, 3.12)
  • GitHub Check: Test C++ (false)
  • GitHub Check: Build C++ (cuda, cuda)
  • GitHub Check: Build C library (2.18, libdeepmd_c.tar.gz)
  • GitHub Check: Analyze (c-cpp)
  • GitHub Check: Test Python (1, 3.9)
  • GitHub Check: Test C++ (true)
🔇 Additional comments (7)
backend/find_paddle.py (1)

108-108: Version requirement updated to stable release.

The version requirement for the PaddlePaddle package has been correctly updated from a beta version to the stable 3.0.0 release, which aligns with the PR objectives.

.github/workflows/test_cuda.yml (1)

54-54: Updated to stable PaddlePaddle version with appropriate CUDA support.

The installation command has been updated to use the stable PaddlePaddle 3.0.0 release with CUDA 12.6 support. This aligns with the PR objectives and ensures compatibility with the container image specified in line 22 (nvidia/cuda:12.6.2-cudnn-devel-ubuntu22.04).

doc/install/install-from-source.md (2)

104-104: Updated CUDA 11.8 installation command to stable release.

The installation command for CUDA 11.8 has been correctly updated from the release candidate to the stable 3.0.0 version of PaddlePaddle.


106-106: Updated CPU installation command to stable release.

The installation command for the CPU version has been correctly updated from the release candidate to the stable 3.0.0 version of PaddlePaddle.

doc/install/easy-install.md (3)

193-198: Updated PaddlePaddle GPU Installation Command for CUDA 12.6

The command now installs the stable release (3.0.0) from the updated URL (https://www.paddlepaddle.org.cn/packages/stable/cu126/), replacing the previous release candidate version. This aligns with the PR objective to update the PaddlePaddle version.

Note: Ensure that any related auto-download URL for paddle_inference_dir (mentioned in the PR notes) is also updated consistently.


202-207: Updated PaddlePaddle GPU Installation Command for CUDA 11.8

The installation command for CUDA 11.8 has been updated to the stable version (3.0.0) while retaining the same package index URL (https://www.paddlepaddle.org.cn/packages/stable/cu118/). This change is consistent with the updates for the GPU commands and reflects the intended stable release.

Suggestion: Double-check that all system and CUDA-specific instructions elsewhere refer to the correct version if applicable.


211-216: Updated PaddlePaddle CPU Installation Command

The CPU installation command now installs paddlepaddle==3.0.0 from the stable URL (https://www.paddlepaddle.org.cn/packages/stable/cpu/), in line with the transition from a pre-release version. This update aligns with the overall documentation changes for the stable PaddlePaddle release.

Additional Check: Verify that all related documentation sections and documentation links reflect this stable version update.

@codecov
Copy link

codecov bot commented Apr 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.82%. Comparing base (2e4da81) to head (2945249).
Report is 84 commits behind head on devel.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #4694      +/-   ##
==========================================
+ Coverage   84.80%   84.82%   +0.02%     
==========================================
  Files         692      692              
  Lines       66396    66512     +116     
  Branches     3539     3538       -1     
==========================================
+ Hits        56306    56420     +114     
- Misses       8949     8952       +3     
+ Partials     1141     1140       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@HydrogenSulfate HydrogenSulfate changed the title [WIP] pd: update paddlepaddle version to release/3.0 pd: update paddlepaddle version to release/3.0 Apr 3, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

🧹 Nitpick comments (3)
source/CMakeLists.txt (3)

40-41: Clarify Paddle Release Commit Details
The added comments clearly indicate that the commit ID "6ed5dd3" is associated with Paddle release/3.0 and provide a direct link to the release. This enhances traceability for future maintainers.


45-46: Updated CUDA 11 Inference Library Message
The message now specifies that the CUDA 11 environment will download the "CUDA11.8 inference lib". Please verify that the version "11.8" is consistently referenced across all related documentation and workflows.


52-56: Updated CUDA 12 Inference Library Details
The message and URL for the CUDA 12 case have been updated—now mentioning "CUDA12.6 inference lib" and pointing to the new URL with the commit ID. Please ensure that these changes match the stable release requirements and are reflected in related documentation.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ec2acec and 37d5d4d.

📒 Files selected for processing (2)
  • doc/install/install-from-source.md (1 hunks)
  • source/CMakeLists.txt (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • doc/install/install-from-source.md
⏰ Context from checks skipped due to timeout of 90000ms (25)
  • GitHub Check: Build wheels for cp310-manylinux_aarch64
  • GitHub Check: Test Python (6, 3.12)
  • GitHub Check: Build wheels for cp311-win_amd64
  • GitHub Check: Test Python (6, 3.9)
  • GitHub Check: Test Python (5, 3.12)
  • GitHub Check: Test Python (5, 3.9)
  • GitHub Check: Build wheels for cp311-manylinux_x86_64
  • GitHub Check: Test Python (4, 3.12)
  • GitHub Check: Build wheels for cp311-manylinux_x86_64
  • GitHub Check: Analyze (python)
  • GitHub Check: Test Python (4, 3.9)
  • GitHub Check: Test Python (3, 3.12)
  • GitHub Check: Analyze (c-cpp)
  • GitHub Check: Test Python (3, 3.9)
  • GitHub Check: Test Python (2, 3.12)
  • GitHub Check: Test Python (2, 3.9)
  • GitHub Check: Build C++ (rocm, rocm)
  • GitHub Check: Test Python (1, 3.12)
  • GitHub Check: Build C++ (cuda120, cuda)
  • GitHub Check: Test C++ (false)
  • GitHub Check: Build C++ (cuda, cuda)
  • GitHub Check: Test Python (1, 3.9)
  • GitHub Check: Test C++ (true)
  • GitHub Check: Build C library (2.14, >=2.5.0rc0,<2.15, libdeepmd_c_cu11.tar.gz)
  • GitHub Check: Build C library (2.18, libdeepmd_c.tar.gz)
🔇 Additional comments (2)
source/CMakeLists.txt (2)

47-49: Revised Download URL for CUDA 11 Inference Library
The download URL has been updated to include the specific commit ID for the Paddle release/3.0. Confirm that the URL is correct and accessible, as it is critical for automated downloads in the build process.


64-71: Updated CPU Inference Library Message and URL
The message for the CPU version now correctly states that the CPU inference lib will be downloaded, and the URL has been updated with the commit ID information. This change looks good; just ensure consistency with the other Paddle release/3.0 references.

@njzjz njzjz added this pull request to the merge queue Apr 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 3, 2025
@njzjz njzjz added this pull request to the merge queue Apr 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 3, 2025
@njzjz njzjz added this pull request to the merge queue Apr 5, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 5, 2025
@njzjz
Copy link
Member

njzjz commented Apr 7, 2025

@HydrogenSulfate I reproduce the same behavior in a Google Colab environment. After 10 minutes, uv is still stuck in downloading paddlepaddle-gpu.
image
image

@njzjz njzjz added this pull request to the merge queue Apr 7, 2025
Merged via the queue into deepmodeling:devel with commit 5caf02a Apr 7, 2025
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants