... | ... | @@ -23,10 +23,14 @@ For those of you using Jupyter notebooks (previously iPython notebooks), Paddle |
|
|
|
|
|
## How to Train Model With Paddle Book Docker Image
|
|
|
1. pull and run the docker image
|
|
|
|
|
|
To run a CPU-only Docker image:
|
|
|
```bash
|
|
|
# for CPU-only
|
|
|
docker run -it -v $HOME/.cache:/root/.cache --name xxx paddlepaddle/book:latest /bin/bash
|
|
|
# for GPU support
|
|
|
```
|
|
|
|
|
|
To run a CUDA-enabled Docker image:
|
|
|
```bash
|
|
|
nvidia-docker run -it -v $HOME/.cache:/root/.cache --name xxx paddlepaddle/book:latest-gpu /bin/bash
|
|
|
```
|
|
|
- Use `--name xx` option to specify a name for your container, so when you leave. you can use `docker start xx` and `docker attach xx` to reenter it.
|
... | ... | |