You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/installation.md
+59-15Lines changed: 59 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,34 +1,46 @@
1
-
# Install PaddlePaddle
1
+
# Preparation
2
2
3
3
---
4
-
5
4
## Catalogue
5
+
-[1. Prepara Environment](#1)
6
+
-[1.1 Install PaddlePaddle](#1.1)
7
+
-[1.1.1 By Docker](#1.1.1)
8
+
-[1.1.2 By pip](#1.1.2)
9
+
-[1.1.3 Check Installation](#1.1.3)
10
+
-[1.2 Get PaddleClas](#1.2)
11
+
-[1.3 Install Requirements](#1.3)
12
+
-[2. 快速创建PaddlePaddle, PaddleClas环境](#2)
13
+
6
14
7
15
-[1. Environment requirements](#1)
8
16
-[2.(Recommended) Prepare a docker environment](#2)
9
17
-[3. Install PaddlePaddle using pip](#3)
10
18
-[4. Verify installation](#4)
11
19
12
-
At present, **PaddleClas** requires **PaddlePaddle** version `>=2.0`. Docker is recomended to run Paddleclas, for more detailed information about docker and nvidia-docker, you can refer to the [tutorial](https://docs.docker.com/get-started/). If you do not want to use docker, you can skip section [2. (Recommended) Prepare a docker environment](#2), and go into section [3. Install PaddlePaddle using pip](#3).
20
+
Docker is recomended to run Paddleclas, for more detailed information about docker and nvidia-docker, you can refer to the [tutorial](https://docs.docker.com/get-started/). If you do not want to use docker, you can skip section [1.1.1 (Recommended) Install PaddlePaddle by docker](#1.1.1), and go into section [1.1.2 Install PaddlePaddle by pip](#1.1.2).
13
21
14
22
<aname="1"></a>
15
23
16
-
## 1. Environment requirements
24
+
## 1. Prepara Environment
25
+
26
+
<aname="1.1"></a>
27
+
28
+
## 1.1 Install PaddlePaddle
17
29
18
30
- python 3.x
19
-
- cuda >= 10.1 (necessary if paddlepaddle-gpu is used)
31
+
- cuda >= 10.2 (necessary if paddlepaddle-gpu is used)
20
32
- cudnn >= 7.6.4 (necessary if paddlepaddle-gpu is used)
21
33
- nccl >= 2.1.2 (necessary distributed training/eval is used)
22
34
- gcc >= 8.2
23
35
24
36
**Recomends**:
25
-
* When CUDA version is 10.1, the driver version `>= 418.39`;
37
+
26
38
* When CUDA version is 10.2, the driver version `>= 440.33`;
27
39
* For more CUDA versions and specific driver versions, please refer to [link](https://docs.nvidia.com/deploy/cuda-compatibility/index.html).
28
40
41
+
<aname="1.1.1"></a>
29
42
30
-
<aname="2"></a>
31
-
## 2. (Recommended) Prepare a docker environment
43
+
## 1.1.1 (Recommended) Install PaddlePaddle by Docker
32
44
33
45
* Switch to the working directory
34
46
@@ -41,10 +53,10 @@ The following commands will create a docker container named ppcls and map the cu
* If you have already installed CPU version of PaddlePaddle and want to use GPU version now, you should uninstall CPU version of PaddlePaddle and then install GPU version to avoid package confusion.
80
92
* You can also compile PaddlePaddle from source code, please refer to [PaddlePaddle Installation tutorial](http://www.paddlepaddle.org.cn/install/quick) to more compilation options.
81
93
82
-
<a name="4"></a>
94
+
<a name="1.1.3"></a>
83
95
84
-
## 4. Verify Installation
96
+
## 1.1.3 Check Installation
85
97
86
98
```python
87
99
import paddle
@@ -98,3 +110,35 @@ Note:
98
110
* Make sure the compiled source code is later than PaddlePaddle2.0.
99
111
* Indicate `WITH_DISTRIBUTE=ON` when compiling, Please refer to [Instruction](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/install/Tables.html#id3) for more details.
100
112
* When running in docker, in order to ensure that the container has enough shared memory for dataloader acceleration of Paddle, please set the parameter `--shm-size=8g` at creating a docker container, if conditions permit, you can set it to a larger value.
* Please build and install locally if you need to use the develop branch of PaddleClas to experience the latest functions, or need to redevelop based on PaddleClas. The command is as follows:
0 commit comments