Skip to content

Commit

Permalink
tensorflow gpu 1.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jun 17, 2019
1 parent a7c4a19 commit feb582e
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 8 deletions.
2 changes: 0 additions & 2 deletions examples/models/gpu_tensorflow_deep_mnist/DeepMnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ def __init__(self):
def predict(self,X,feature_names):
predictions = self.sess.run(self.y,feed_dict={self.x:X})
return predictions.astype(np.float64)


10 changes: 8 additions & 2 deletions examples/models/gpu_tensorflow_deep_mnist/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04
FROM nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04
# FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04

LABEL io.openshift.s2i.scripts-url="image:///s2i/bin"

RUN apt-get update -y

# RUN apt-get install -y python
# RUN apt-get install -y python3

RUN apt-get install -y python-pip python-dev build-essential
RUN apt-get install -y python3-pip python3-dev

Expand All @@ -12,6 +17,7 @@ WORKDIR /microservice
COPY ./s2i/bin/ /s2i/bin

# keep install of seldon-core after the COPY to force re-build of layer
RUN pip install seldon-core
RUN pip3 install tensorflow-gpu==1.13.1
RUN pip3 install seldon-core

EXPOSE 5000
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/models/gpu_tensorflow_deep_mnist/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ IMAGE_VERSION=0.1


build_image:
s2i build . joelh1996/gpu-base:0.1 ${IMAGE_NAME}:${IMAGE_VERSION}
s2i build . joelh1996/gpu-base:0.4 ${IMAGE_NAME}:${IMAGE_VERSION}

push_image:
docker push $(IMAGE_NAME):$(IMAGE_VERSION)
Expand All @@ -12,7 +12,7 @@ push_image:
.PHONY: train
train:
mkdir -p model
python create_model.py
sudo python3 create_model.py

.PHONY: clean
clean:
Expand Down
2 changes: 2 additions & 0 deletions examples/models/gpu_tensorflow_deep_mnist/model/checkpoint
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
model_checkpoint_path: "deep_mnist_model"
all_model_checkpoint_paths: "deep_mnist_model"
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/models/gpu_tensorflow_deep_mnist/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tensorflow-gpu==1.12.0
tensorflow-gpu==1.13.1
2 changes: 1 addition & 1 deletion examples/models/gpu_tensorflow_deep_mnist/s2i/bin/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ cp -Rf /tmp/src/. ./

if [[ -f requirements.txt ]]; then
echo "---> Installing dependencies ..."
pip install --find-links /whl -r requirements.txt
pip3 install --find-links /whl -r requirements.txt
elif [[ -f setup.py ]]; then
echo "---> Installing application ..."
pip install --find-links /whl -e .
Expand Down

0 comments on commit feb582e

Please sign in to comment.