Git Product home page Git Product logo

tensorflow-serving-gpu-s2i's Introduction

Radanalytics Tensorflow Serving GPU#

This S2I image is for running on Openshift with GPU.With CUDA-9 and CuDNN-7. This is a builder image for a tensorflow serving applications. It is meant to be used in an openshift project with tensorflow models.

The final image will have tensorflow model installed along with tensorflow_model_server binary from submod/tf-server:cuda9-cudnn7-centos7, a startup script and associated utilities to start tensorflow prediction endpoint at port 6006.

Integration With OpenShift

To make it easier to deploy a tensorflow serving endpoint a template for OpenShift is also included. This can be loaded into your project using:

oc create -f https://raw.githubusercontent.com/sub-mod/tensorflow-serving-gpu-s2i/master/template.json

Once loaded, select the tensorflow-server-gpu template from the web console. The APPLICATION_NAME , SOURCE_REPOSITORY and SOURCE_DIRECTORYmust be specified.

OR

You can create from commandline.Just create a new application within OpenShift, pointing the S2I builder at the Git repository containing your tensorflow model files.

oc new-app --template=tensorflow-server-gpu \
	--param=APPLICATION_NAME=tf-cnn-gpu \
	--param=SOURCE_REPOSITORY=https://github.com/sub-mod/mnist-models \
	--param=SOURCE_DIRECTORY=gpu/cnn

To have any changes to your model automatically redeployed when changes are pushed back up to your Git repository, you can use the web hooks integration of OpenShift to create a link from your Git repository hosting service back to OpenShift.

Producing a build image

To produce a builder image:

$ make build

To print usage information for the builder image:

$ sudo docker run -t <id from the make>

To poke around inside the builder image:

$ sudo docker run -i -t <id from the make>
bash-4.2$ cd /opt/app-root # take a look around

To tag and push a builder image:

$ sudo make push

By default this will tag the image as submod/tensorflow-serving-s2i-gpu, edit the Makefile and change PUSH_IMAGE to control this.

s2i bin files

S2i scripts are located at ./s2i/bin.

tensorflow-serving-gpu-s2i's People

Contributors

sub-mod avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

tensorflow-serving-gpu-s2i's Issues

minishift support

Should this work on minishift?

I've tried to run it but am getting an error of:
0/1 nodes are available: 1 insufficient alpha.kubernetes.io/nvidia-gpu

Identifying and allocating to a GPU

Hello

When creating a GPU based openshift application, Im asked for the GPU_NAME and also GPU_LIMITS.

How are these values used?

Im specifically interested in how I allocate a project to run on a specific GPU, or collection of GPUs. Is it possible to add the identity of the GPUs to the project?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.