README.md 4.0 KB
Newer Older
C
choijulie 已提交
1
# Deep Learning with PaddlePaddle
Y
Yi Wang 已提交
2

L
liaogang 已提交
3
[![Build Status](https://travis-ci.org/PaddlePaddle/book.svg?branch=develop)](https://travis-ci.org/PaddlePaddle/book)
R
root 已提交
4 5
[![Documentation Status](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](https://github.com/PaddlePaddle/book/blob/develop/README.md)
[![Documentation Status](https://img.shields.io/badge/中文文档-最新-brightgreen.svg)](https://github.com/PaddlePaddle/book/blob/develop/README.cn.md)
L
liaogang 已提交
6

X
xiaoting 已提交
7 8 9 10 11 12 13 14
1. [Fit a Line](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/fit_a_line/README.html)
1. [Recognize Digits](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/recognize_digits/README.html)
1. [Image Classification](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/image_classification/index_en.html)
1. [Word to Vector](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/word2vec/index_en.html)
1. [Recommender System](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/recommender_system/index_en.html)
1. [Understand Sentiment](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/understand_sentiment/index_en.html)
1. [Label Semantic Roles](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/label_semantic_roles/index_en.html)
1. [Machine Translation](https://www.paddlepaddle.org.cn/documentation/docs/en/develop/beginners_guide/basics/machine_translation/index_en.html)
L
Luo Tao 已提交
15

C
choijulie 已提交
16
## Running the Book
17

C
choijulie 已提交
18
This book you are reading is interactive -- each chapter can run as a Jupyter Notebook.
L
Luo Tao 已提交
19

C
choijulie 已提交
20
We packed this book, Jupyter, PaddlePaddle, and all dependencies into a Docker image. So you don't need to install anything except Docker. If you are using Windows, please follow [this installation guide](https://www.docker.com/docker-windows).  If you are running Mac, please follow [this](https://www.docker.com/docker-mac). For various Linux distros, please refer to https://www.docker.com.  If you are using Windows or Mac, you might want to give Docker [more memory and CPUs/cores](http://stackoverflow.com/a/39720010/724872).
21

C
choijulie 已提交
22
Just type
23 24

```bash
25 26
docker run -d -p 8888:8888 paddlepaddle/book

27 28
```

C
choijulie 已提交
29
This command will download the pre-built Docker image from DockerHub.com and run it in a container.  Please direct your Web browser to http://localhost:8888 to read the book.
30

31
If you are living in somewhere slow to access DockerHub.com, you might try our mirror server hub.baidubce.com:
32 33

```bash
34
docker run -d -p 8888:8888 hub.baidubce.com/paddlepaddle/book
35

36 37
```

C
choijulie 已提交
38
### Training with GPU
H
Helin Wang 已提交
39

C
choijulie 已提交
40
By default we are using CPU for training, if you want to train with GPU, the steps are a little different.
H
Helin Wang 已提交
41

C
choijulie 已提交
42
To make sure GPU can be successfully used from inside container, please install [nvidia-docker](https://github.com/NVIDIA/nvidia-docker). Then run:
H
Helin Wang 已提交
43 44

```bash
45 46
nvidia-docker run -d -p 8888:8888 paddlepaddle/book:latest-gpu

H
Helin Wang 已提交
47 48
```

C
choijulie 已提交
49
Or you can use the image registry mirror in China:
H
Helin Wang 已提交
50 51

```bash
52
nvidia-docker run -d -p 8888:8888 hub.baidubce.com/paddlepaddle/book:latest-gpu
53

H
Helin Wang 已提交
54 55
```

C
choijulie 已提交
56
Change the code in the chapter that you are reading from
H
Helin Wang 已提交
57
```python
58
use_cuda = False
H
Helin Wang 已提交
59 60
```

C
choijulie 已提交
61
to:
H
Helin Wang 已提交
62
```python
63
use_cuda = True
H
Helin Wang 已提交
64 65 66
```


C
choijulie 已提交
67
## Contribute
L
liaogang 已提交
68

C
choijulie 已提交
69
Your contribution is welcome!  Please feel free to file Pull Requests to add your chapter as a directory under `/pending`. Once it is going stable, the community would like to move it to `/`.
L
liaogang 已提交
70

C
choijulie 已提交
71
To write, run, and debug your chapters, you will need Python 2.x, Go >1.5. You can build the Docker image using [this script](https://github.com/PaddlePaddle/book/blob/develop/.tools/convert-markdown-into-ipynb-and-test.sh).
R
root 已提交
72
This tutorial is contributed by <a xmlns:cc="http://creativecommons.org/ns#" href="http://www.paddlepaddle.org/" property="cc:attributionName" rel="cc:attributionURL">PaddlePaddle</a>, and licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.