Skip to content

Commit 5caf02a

Browse files
pd: update paddlepaddle version to release/3.0 (#4694)
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 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent cf70d94 commit 5caf02a

File tree

6 files changed

+19
-17
lines changed

6 files changed

+19
-17
lines changed

.github/workflows/test_cuda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- run: |
5252
export PYTORCH_ROOT=$(python -c 'import torch;print(torch.__path__[0])')
5353
export TENSORFLOW_ROOT=$(python -c 'import importlib,pathlib;print(pathlib.Path(importlib.util.find_spec("tensorflow").origin).parent)')
54-
source/install/uv_with_retry.sh pip install --system --pre https://paddle-whl.bj.bcebos.com/nightly/cu123/paddlepaddle-gpu/paddlepaddle_gpu-3.0.0.dev20241126-cp311-cp311-linux_x86_64.whl
54+
pip install "paddlepaddle-gpu==3.0.0" -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
5555
source/install/uv_with_retry.sh pip install --system -v -e .[gpu,test,lmp,cu12,torch,jax] mpi4py --reinstall-package deepmd-kit
5656
env:
5757
DP_VARIANT: cuda

.github/workflows/test_python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
export PYTORCH_ROOT=$(python -c 'import torch;print(torch.__path__[0])')
3232
source/install/uv_with_retry.sh pip install --system -e .[test,jax] mpi4py "jax==0.5.0;python_version>='3.10'"
3333
source/install/uv_with_retry.sh pip install --system horovod --no-build-isolation
34-
source/install/uv_with_retry.sh pip install --system --pre "paddlepaddle==3.0.0rc1" -i https://www.paddlepaddle.org.cn/packages/stable/cpu/
34+
source/install/uv_with_retry.sh pip install --system --pre "paddlepaddle==3.0.0" -i https://www.paddlepaddle.org.cn/packages/stable/cpu/
3535
env:
3636
# Please note that uv has some issues with finding
3737
# existing TensorFlow package. Currently, it uses

backend/find_paddle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def get_pd_requirement(pd_version: str = "") -> dict:
105105

106106
return {
107107
"paddle": [
108-
"paddlepaddle>=3.0.0b1",
108+
"paddlepaddle>=3.0.0",
109109
],
110110
}
111111

doc/install/easy-install.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ Switch to the TensorFlow {{ tensorflow_icon }} tab for more information.
190190

191191
:::::{tab-set}
192192

193-
::::{tab-item} CUDA 12.3
193+
::::{tab-item} CUDA 12.6
194194

195195
```bash
196-
pip install paddlepaddle-gpu==3.0.0rc0 -i https://www.paddlepaddle.org.cn/packages/stable/cu123/
196+
pip install paddlepaddle-gpu==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
197197
pip install deepmd-kit
198198
```
199199

@@ -202,7 +202,7 @@ pip install deepmd-kit
202202
::::{tab-item} CUDA 11.8
203203

204204
```bash
205-
pip install paddlepaddle-gpu==3.0.0rc0 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/
205+
pip install paddlepaddle-gpu==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/
206206
pip install deepmd-kit
207207
```
208208

@@ -211,7 +211,7 @@ pip install deepmd-kit
211211
::::{tab-item} CPU
212212

213213
```bash
214-
pip install paddlepaddle==3.0.0rc0 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/
214+
pip install paddlepaddle==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/
215215
pip install deepmd-kit
216216
```
217217

doc/install/install-from-source.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ One can also [use conda](https://docs.deepmodeling.org/faq/conda.html) to instal
9898
To install Paddle, run
9999

100100
```sh
101-
# cu123
102-
pip install paddlepaddle-gpu==3.0.0rc0 -i https://www.paddlepaddle.org.cn/packages/stable/cu123/
101+
# cu126
102+
pip install paddlepaddle-gpu==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
103103
# cu118
104-
pip install paddlepaddle-gpu==3.0.0rc0 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/
104+
pip install paddlepaddle-gpu==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/
105105
# cpu
106-
pip install paddlepaddle==3.0.0rc0 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/
106+
pip install paddlepaddle==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/
107107
```
108108

109109
:::

source/CMakeLists.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,23 @@ if(ENABLE_PADDLE)
3737
find_package(CUDAToolkit REQUIRED)
3838
string(REGEX MATCH "^[0-9]+" CUDA_MAJOR_VERSION "${CUDAToolkit_VERSION}")
3939
message(STATUS "Find CUDAToolkit_VERSION: ${CUDAToolkit_VERSION}")
40+
# "6ed5dd3" is the commit id of paddle release/3.0, see:
41+
# https://github.com/PaddlePaddle/Paddle/tree/v3.0.0
4042
if(CUDA_MAJOR_VERSION VERSION_EQUAL "11")
4143
message(
4244
STATUS
43-
"PADDLE_INFERENCE_DIR is not defined, downloading CUDA11.8 infernece lib to: ${CMAKE_BINARY_DIR}/"
45+
"PADDLE_INFERENCE_DIR is not defined, downloading CUDA11.8 inference lib to: ${CMAKE_BINARY_DIR}/"
4446
)
4547
set(DOWNLOAD_URL
46-
"https://paddle-qa.bj.bcebos.com/paddle-pipeline/GITHUB_Docker_Compile_Test_Cuda118_cudnn860_Trt8531_D1/latest/paddle_inference.tgz"
48+
"https://paddle-qa.bj.bcebos.com/paddle-pipeline/GITHUB_Docker_Compile_Test_Cuda118_cudnn897_Trt8616_D1/6ed5dd3833c32c3b21e14b1fb1a71f5a535a0fcc/paddle_inference.tgz"
4749
)
4850
elseif(CUDA_MAJOR_VERSION VERSION_EQUAL "12")
4951
message(
5052
STATUS
51-
"PADDLE_INFERENCE_DIR is not defined, downloading CUDA12.3 infernece lib to: ${CMAKE_BINARY_DIR}/"
53+
"PADDLE_INFERENCE_DIR is not defined, downloading CUDA12.6 inference lib to: ${CMAKE_BINARY_DIR}/"
5254
)
5355
set(DOWNLOAD_URL
54-
"https://paddle-qa.bj.bcebos.com/paddle-pipeline/GITHUB_Docker_Compile_Test_Cuda123_cudnn900_Trt8616_D1/latest/paddle_inference.tgz"
56+
"https://paddle-qa.bj.bcebos.com/paddle-pipeline/GITHUB_Docker_Compile_Test_Cuda126_cudnn951_Trt105018_D1/6ed5dd3833c32c3b21e14b1fb1a71f5a535a0fcc/paddle_inference.tgz"
5557
)
5658
else()
5759
message(
@@ -62,10 +64,10 @@ if(ENABLE_PADDLE)
6264
else()
6365
message(
6466
STATUS
65-
"PADDLE_INFERENCE_DIR is not defined, downloading CPU infernece lib to: ${CMAKE_BINARY_DIR}/"
67+
"PADDLE_INFERENCE_DIR is not defined, downloading CPU inference lib to: ${CMAKE_BINARY_DIR}/"
6668
)
6769
set(DOWNLOAD_URL
68-
"https://paddle-qa.bj.bcebos.com/paddle-pipeline/GITHUB_Docker_Compile_Test_Cpu_Mkl_Avx_D1/latest/paddle_inference.tgz"
70+
"https://paddle-qa.bj.bcebos.com/paddle-pipeline/GITHUB_Docker_Compile_Test_Cpu_Mkl_Avx_D1/6ed5dd3833c32c3b21e14b1fb1a71f5a535a0fcc/paddle_inference.tgz"
6971
)
7072
endif()
7173
set(TGZ_FILE "${CMAKE_BINARY_DIR}/paddle_inference.tgz")

0 commit comments

Comments
 (0)