Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Commit

Permalink
Pre-built Docker images (#4)
Browse files Browse the repository at this point in the history
* Update README to provide pre-built Docker images in Quick Start section.
  • Loading branch information
nikitos9000 committed Feb 6, 2018
1 parent 92b0957 commit 0b3b647
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Expand Up @@ -64,19 +64,22 @@ The code is flexible and allows to condition a response by an arbitrary categori

## Quick start

Quickly build a CPU-only docker image, run it & start the CakeChat serving the model on 8080 port:
Run the CPU-only pre-built docker image & start the CakeChat serving the model on 8080 port:

```(bash)
# Build & run docker container
docker build -t cakechat:latest -f dockerfiles/Dockerfile.cpu dockerfiles/
docker run --name cakechat-dev -p 127.0.0.1:8080:8080 -it lukalabs/cakechat:latest \
bash -c "python bin/cakechat_server.py"
```

(Or) using the GPU-enabled image:

docker run --name cakechat-dev -p 127.0.0.1:8080:8080 -it cakechat:latest \
bash -c "python tools/download_model.py && python bin/cakechat_server.py"
```(bash)
nvidia-docker run --name cakechat-gpu-dev -p 127.0.0.1:8080:8080 -it lukalabs/cakechat-gpu:latest \
bash -c "USE_GPU=0 python bin/cakechat_server.py"
```

That's it! Now you can try it by running `python tools/test_api.py -f localhost -p 8080 -c "Hi! How are you?"` from the host command line.


## Setup

### Docker
Expand Down

0 comments on commit 0b3b647

Please sign in to comment.