未验证 提交 4b756813 编写于 作者: T tianshuo78520a 提交者: GitHub

update install doc for release/1.8.1. (#2133)

上级 a24e000f
此差异已折叠。
此差异已折叠。
...@@ -214,20 +214,20 @@ ...@@ -214,20 +214,20 @@
如果您是使用 Python 2,CUDA 9,cuDNN 7.3+,安装GPU版本的命令为: 如果您是使用 Python 2,CUDA 9,cuDNN 7.3+,安装GPU版本的命令为:
:: ::
python -m pip install paddlepaddle-gpu==1.8.0.post97 -i https://mirror.baidu.com/pypi/simple python -m pip install paddlepaddle-gpu==1.8.1.post97 -i https://mirror.baidu.com/pypi/simple
python -m pip install paddlepaddle-gpu==1.8.0.post97 -i https://pypi.tuna.tsinghua.edu.cn/simple python -m pip install paddlepaddle-gpu==1.8.1.post97 -i https://pypi.tuna.tsinghua.edu.cn/simple
如果您是使用 Python 2,CUDA 10.0,cuDNN 7.3+,安装GPU版本的命令为: 如果您是使用 Python 2,CUDA 10.0,cuDNN 7.3+,安装GPU版本的命令为:
:: ::
python -m pip install paddlepaddle-gpu==1.8.0.post107 -i https://mirror.baidu.com/pypi/simple python -m pip install paddlepaddle-gpu==1.8.1.post107 -i https://mirror.baidu.com/pypi/simple
python -m pip install paddlepaddle-gpu==1.8.0.post107 -i https://pypi.tuna.tsinghua.edu.cn/simple python -m pip install paddlepaddle-gpu==1.8.1.post107 -i https://pypi.tuna.tsinghua.edu.cn/simple
如果您是使用 Python 3,请将上述命令中的 **python** 更换为 **python3** 进行安装。 如果您是使用 Python 3,请将上述命令中的 **python** 更换为 **python3** 进行安装。
...@@ -430,12 +430,12 @@ ...@@ -430,12 +430,12 @@
(2). 拉取预安装 PaddlePaddle 的镜像: (2). 拉取预安装 PaddlePaddle 的镜像:
:: ::
docker pull hub.baidubce.com/paddlepaddle/paddle:1.8.0 docker pull hub.baidubce.com/paddlepaddle/paddle:1.8.1
(3). 用镜像构建并进入Docker容器: (3). 用镜像构建并进入Docker容器:
:: ::
docker run --name paddle -it -v dir1:dir2 hub.baidubce.com/paddlepaddle/paddle:1.8.0 /bin/bash docker run --name paddle -it -v dir1:dir2 hub.baidubce.com/paddlepaddle/paddle:1.8.1 /bin/bash
> --name [Name of container] 设定Docker的名称; > --name [Name of container] 设定Docker的名称;
...@@ -443,7 +443,7 @@ ...@@ -443,7 +443,7 @@
> -v 参数用于宿主机与容器里文件共享;其中dir1为宿主机目录,dir2为挂载到容器内部的目录,用户可以通过设定dir1和dir2自定义自己的挂载目录;例如:$PWD:/paddle 指定将宿主机的当前路径(Linux中PWD变量会展开为当前路径的绝对路径)挂载到容器内部的 /paddle 目录; > -v 参数用于宿主机与容器里文件共享;其中dir1为宿主机目录,dir2为挂载到容器内部的目录,用户可以通过设定dir1和dir2自定义自己的挂载目录;例如:$PWD:/paddle 指定将宿主机的当前路径(Linux中PWD变量会展开为当前路径的绝对路径)挂载到容器内部的 /paddle 目录;
> hub.baidubce.com/paddlepaddle/paddle:1.8.0 是需要使用的image名称;/bin/bash是在Docker中要执行的命令 > hub.baidubce.com/paddlepaddle/paddle:1.8.1 是需要使用的image名称;/bin/bash是在Docker中要执行的命令
2. **GPU 版本** 2. **GPU 版本**
...@@ -471,12 +471,12 @@ ...@@ -471,12 +471,12 @@
(2). 拉取支持 CUDA 10.0 , cuDNN 7.3+ 预安装 PaddlePaddle 的镜像: (2). 拉取支持 CUDA 10.0 , cuDNN 7.3+ 预安装 PaddlePaddle 的镜像:
:: ::
nvidia-docker pull hub.baidubce.com/paddlepaddle/paddle:1.8.0-gpu-cuda10.0-cudnn7 nvidia-docker pull hub.baidubce.com/paddlepaddle/paddle:1.8.1-gpu-cuda10.0-cudnn7
(3). 用镜像构建并进入Docker容器: (3). 用镜像构建并进入Docker容器:
:: ::
nvidia-docker run --name paddle -it -v dir1:dir2 hub.baidubce.com/paddlepaddle/paddle:1.8.0-gpu-cuda10.0-cudnn7 /bin/bash nvidia-docker run --name paddle -it -v dir1:dir2 hub.baidubce.com/paddlepaddle/paddle:1.8.1-gpu-cuda10.0-cudnn7 /bin/bash
> --name [Name of container] 设定Docker的名称; > --name [Name of container] 设定Docker的名称;
...@@ -484,7 +484,7 @@ ...@@ -484,7 +484,7 @@
> -v 参数用于宿主机与容器里文件共享;其中dir1为宿主机目录,dir2为挂载到容器内部的目录,用户可以通过设定dir1和dir2自定义自己的挂载目录;例如:$PWD:/paddle 指定将宿主机的当前路径(Linux中PWD变量会展开为当前路径的绝对路径)挂载到容器内部的 /paddle 目录; > -v 参数用于宿主机与容器里文件共享;其中dir1为宿主机目录,dir2为挂载到容器内部的目录,用户可以通过设定dir1和dir2自定义自己的挂载目录;例如:$PWD:/paddle 指定将宿主机的当前路径(Linux中PWD变量会展开为当前路径的绝对路径)挂载到容器内部的 /paddle 目录;
> hub.baidubce.com/paddlepaddle/paddle:1.8.0-gpu-cuda10.0-cudnn7 是需要使用的image名称;/bin/bash是在Docker中要执行的命令 > hub.baidubce.com/paddlepaddle/paddle:1.8.1-gpu-cuda10.0-cudnn7 是需要使用的image名称;/bin/bash是在Docker中要执行的命令
或如果您需要支持 **CUDA 9** 的版本,将上述命令的 **cuda10.0** 替换成 **cuda9.0** 即可 或如果您需要支持 **CUDA 9** 的版本,将上述命令的 **cuda10.0** 替换成 **cuda9.0** 即可
...@@ -492,7 +492,7 @@ ...@@ -492,7 +492,7 @@
:: ::
docker run --name paddle -it -v dir1:dir2 paddlepaddle/paddle:1.8.0 /bin/bash docker run --name paddle -it -v dir1:dir2 paddlepaddle/paddle:1.8.1 /bin/bash
> --name [Name of container] 设定Docker的名称; > --name [Name of container] 设定Docker的名称;
...@@ -500,7 +500,7 @@ ...@@ -500,7 +500,7 @@
> -v 参数用于宿主机与容器里文件共享;其中dir1为宿主机目录,dir2为挂载到容器内部的目录,用户可以通过设定dir1和dir2自定义自己的挂载目录;例如:$PWD:/paddle 指定将宿主机的当前路径(Linux中PWD变量会展开为当前路径的绝对路径)挂载到容器内部的 /paddle 目录; > -v 参数用于宿主机与容器里文件共享;其中dir1为宿主机目录,dir2为挂载到容器内部的目录,用户可以通过设定dir1和dir2自定义自己的挂载目录;例如:$PWD:/paddle 指定将宿主机的当前路径(Linux中PWD变量会展开为当前路径的绝对路径)挂载到容器内部的 /paddle 目录;
> paddlepaddle/paddle:1.8.0 是需要使用的image名称;/bin/bash是在Docker中要执行的命令 > paddlepaddle/paddle:1.8.1 是需要使用的image名称;/bin/bash是在Docker中要执行的命令
4. 验证安装 4. 验证安装
......
...@@ -216,20 +216,20 @@ This section describes how to use pip to install. ...@@ -216,20 +216,20 @@ This section describes how to use pip to install.
If you are using Python 2, CUDA 9, cuDNN 7.3+, command to install GPU version: If you are using Python 2, CUDA 9, cuDNN 7.3+, command to install GPU version:
:: ::
python -m pip install paddlepaddle-gpu==1.8.0.post97 -i https://mirror.baidu.com/pypi/simple python -m pip install paddlepaddle-gpu==1.8.1.post97 -i https://mirror.baidu.com/pypi/simple
or or
python -m pip install paddlepaddle-gpu==1.8.0.post97 -i https://pypi.tuna.tsinghua.edu.cn/simple python -m pip install paddlepaddle-gpu==1.8.1.post97 -i https://pypi.tuna.tsinghua.edu.cn/simple
If you are using Python 2, CUDA 10.0, cuDNN 7.3+, command to install GPU version: If you are using Python 2, CUDA 10.0, cuDNN 7.3+, command to install GPU version:
:: ::
python -m pip install paddlepaddle-gpu==1.8.0.post107 -i https://mirror.baidu.com/pypi/simple python -m pip install paddlepaddle-gpu==1.8.1.post107 -i https://mirror.baidu.com/pypi/simple
or or
python -m pip install paddlepaddle-gpu==1.8.0.post107 -i https://pypi.tuna.tsinghua.edu.cn/simple python -m pip install paddlepaddle-gpu==1.8.1.post107 -i https://pypi.tuna.tsinghua.edu.cn/simple
If you are using Python 3, please change **python** in the above command to **python3** and install. If you are using Python 3, please change **python** in the above command to **python3** and install.
...@@ -437,12 +437,12 @@ If you want to use `docker <https://www.docker.com>`_ to install PaddlePaddle, y ...@@ -437,12 +437,12 @@ If you want to use `docker <https://www.docker.com>`_ to install PaddlePaddle, y
(2). Pull the image of the preinstalled PaddlePaddle: (2). Pull the image of the preinstalled PaddlePaddle:
:: ::
docker pull hub.baidubce.com/paddlepaddle/paddle:1.8.0 docker pull hub.baidubce.com/paddlepaddle/paddle:1.8.1
(3). Use the image to build and enter the Docker container: (3). Use the image to build and enter the Docker container:
:: ::
docker run --name paddle -it -v dir1:dir2 hub.baidubce.com/paddlepaddle/paddle:1.8.0 /bin/bash docker run --name paddle -it -v dir1:dir2 hub.baidubce.com/paddlepaddle/paddle:1.8.1 /bin/bash
> --name [Name of container] set the name of Docker; > --name [Name of container] set the name of Docker;
...@@ -450,7 +450,7 @@ If you want to use `docker <https://www.docker.com>`_ to install PaddlePaddle, y ...@@ -450,7 +450,7 @@ If you want to use `docker <https://www.docker.com>`_ to install PaddlePaddle, y
> -v Parameter is used to share files between the host and the container. dir1 is the host directory and dir2 is the directory mounted inside the container. Users can customize their own mounting directory by setting dir1 and dir2.For example, $PWD:/paddle specifies to mount the current path of the host (PWD variable in Linux will expand to the absolute path of the current path) to the /paddle directory inside the container; > -v Parameter is used to share files between the host and the container. dir1 is the host directory and dir2 is the directory mounted inside the container. Users can customize their own mounting directory by setting dir1 and dir2.For example, $PWD:/paddle specifies to mount the current path of the host (PWD variable in Linux will expand to the absolute path of the current path) to the /paddle directory inside the container;
> hub.baidubce.com/paddlepaddle/paddle:1.8.0 is the image name you need to use;/bin/bash is the command to be executed in Docker > hub.baidubce.com/paddlepaddle/paddle:1.8.1 is the image name you need to use;/bin/bash is the command to be executed in Docker
2. **GPU version** 2. **GPU version**
...@@ -478,12 +478,12 @@ If you want to use `docker <https://www.docker.com>`_ to install PaddlePaddle, y ...@@ -478,12 +478,12 @@ If you want to use `docker <https://www.docker.com>`_ to install PaddlePaddle, y
(2). Pull the image that supports CUDA 10.0, cuDNN 7.3 + pre installed PaddlePaddle: (2). Pull the image that supports CUDA 10.0, cuDNN 7.3 + pre installed PaddlePaddle:
:: ::
nvidia-docker pull hub.baidubce.com/paddlepaddle/paddle:1.8.0-gpu-cuda10.0-cudnn7 nvidia-docker pull hub.baidubce.com/paddlepaddle/paddle:1.8.1-gpu-cuda10.0-cudnn7
(3). Use the image to build and enter the docker container: (3). Use the image to build and enter the docker container:
:: ::
nvidia-docker run --name paddle -it -v dir1:dir2 hub.baidubce.com/paddlepaddle/paddle:1.8.0-gpu-cuda10.0-cudnn7 /bin/bash nvidia-docker run --name paddle -it -v dir1:dir2 hub.baidubce.com/paddlepaddle/paddle:1.8.1-gpu-cuda10.0-cudnn7 /bin/bash
> --name [Name of container] set name of Docker; > --name [Name of container] set name of Docker;
...@@ -491,7 +491,7 @@ If you want to use `docker <https://www.docker.com>`_ to install PaddlePaddle, y ...@@ -491,7 +491,7 @@ If you want to use `docker <https://www.docker.com>`_ to install PaddlePaddle, y
> -v Parameter is used to share files between the host and the container. dir1 is the host directory and dir2 is the directory mounted inside the container. Users can customize their own mounting directory by setting dir1 and dir2.For example, $PWD:/paddle specifies to mount the current path of the host (PWD variable in Linux will expand to the absolute path of the current path) to the /paddle directory inside the container; > -v Parameter is used to share files between the host and the container. dir1 is the host directory and dir2 is the directory mounted inside the container. Users can customize their own mounting directory by setting dir1 and dir2.For example, $PWD:/paddle specifies to mount the current path of the host (PWD variable in Linux will expand to the absolute path of the current path) to the /paddle directory inside the container;
> hub.baidubce.com/paddlepaddle/paddle:1.8.0 is the image name you need to use;/bin/bash is the command to be executed in Docker > hub.baidubce.com/paddlepaddle/paddle:1.8.1 is the image name you need to use;/bin/bash is the command to be executed in Docker
Or if you need the version supporting **CUDA 9**, replace **cuda10.0** of the above command with **cuda9.0** Or if you need the version supporting **CUDA 9**, replace **cuda10.0** of the above command with **cuda9.0**
...@@ -499,7 +499,7 @@ If you want to use `docker <https://www.docker.com>`_ to install PaddlePaddle, y ...@@ -499,7 +499,7 @@ If you want to use `docker <https://www.docker.com>`_ to install PaddlePaddle, y
:: ::
docker run --name paddle -it -v dir1:dir2 paddlepaddle/paddle:1.8.0 /bin/bash docker run --name paddle -it -v dir1:dir2 paddlepaddle/paddle:1.8.1 /bin/bash
> --name [Name of container] set name of Docker; > --name [Name of container] set name of Docker;
...@@ -507,7 +507,7 @@ If you want to use `docker <https://www.docker.com>`_ to install PaddlePaddle, y ...@@ -507,7 +507,7 @@ If you want to use `docker <https://www.docker.com>`_ to install PaddlePaddle, y
> -v Parameter is used to share files between the host and the container. dir1 is the host directory and dir2 is the directory mounted inside the container. Users can customize their own mounting directory by setting dir1 and dir2.For example, $PWD:/paddle specifies to mount the current path of the host (PWD variable in Linux will expand to the absolute path of the current path) to the /paddle directory inside the container; > -v Parameter is used to share files between the host and the container. dir1 is the host directory and dir2 is the directory mounted inside the container. Users can customize their own mounting directory by setting dir1 and dir2.For example, $PWD:/paddle specifies to mount the current path of the host (PWD variable in Linux will expand to the absolute path of the current path) to the /paddle directory inside the container;
> paddlepaddle/paddle:1.8.0 is the image name you need to use;/bin/bash is the command to be executed in docker > paddlepaddle/paddle:1.8.1 is the image name you need to use;/bin/bash is the command to be executed in docker
4. Verify installation 4. Verify installation
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册