Skip to content

Commit 0c51beb

Browse files
author
Hamel Husain
authored
Merge pull request #7 from philgooch/requirements_simplification
Adds instructions for using with AWS Deep Learning AMI and Docker
2 parents 3bc26a1 + 2724b42 commit 0c51beb

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@
33
## Sequence-to-Sequence Tutorial with Github Issues Data
44
Code For Medium Article: ["How To Create Data Products That Are Magical Using Sequence-to-Sequence Models"](https://medium.com/@hamelhusain/how-to-create-data-products-that-are-magical-using-sequence-to-sequence-models-703f86a231f8)
55

6+
## Installation
7+
8+
`pip install -r requirements.txt`
9+
10+
If you are using the AWS Deep Learning Ubuntu AMI, many of the required dependencies will already be installed,
11+
so you only need to run:
12+
13+
```
14+
source activate tensorflow_p36
15+
pip install ktext annoy nltk pydot
16+
```
17+
18+
See #4 below if you wish to run this tutorial using Docker.
19+
20+
621
## Resources:
722

823
1. [Tutorial Notebook](https://nbviewer.jupyter.org/github/hamelsmu/Seq2Seq_Tutorial/blob/master/notebooks/Tutorial.ipynb): The Jupyter notebook that coincides with the Medium post.
@@ -11,5 +26,18 @@ Code For Medium Article: ["How To Create Data Products That Are Magical Using Se
1126

1227
3. [ktext](https://github.com/hamelsmu/ktext): this library is used in the tutorial to clean data. This library can be installed with `pip`.
1328

14-
4. [Nvidia Docker Container](https://hub.docker.com/r/hamelsmu/seq2seq_tutorial/): contains all libraries that are required to run the tutorial. This container is built with Nvidia-Docker v1.0. You can run this container by executing `nvidia-docker run hamelsmu/seq2seq_tutorial/` after installing **Nvidia-Docker v1.0.** Note: I have not tested this on Nvidia-Docker v2.0.
29+
4. [Nvidia Docker Container](https://hub.docker.com/r/hamelsmu/seq2seq_tutorial/): contains all libraries that are required to run the tutorial. This container is built with Nvidia-Docker v1.0. You can install Nvidia-Docker and run this container like so:
30+
31+
32+
```
33+
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
34+
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
35+
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
36+
sudo apt-get update
37+
sudo apt-get install nvidia-docker
38+
39+
sudo nvidia-docker run hamelsmu/seq2seq_tutorial
40+
41+
```
1542

43+
This should work with both Nvidia-Docker v1.0 and v2.0.

0 commit comments

Comments
 (0)