Giter Site home page Giter Site logo

jayinai / serve-ml-with-clipper Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 5.0 6 KB

Notebook for blog post "Serve Machine Learning Models with Clipper"

Home Page: https://shuaiw.github.io/2018/01/21/serve-ml-model-with-clipper.html

License: MIT License

Jupyter Notebook 100.00%

serve-ml-with-clipper's Introduction

The notebook works with Clipper release 0.2

Dependencies

  • Install Docker
  • Install Python: currently Clipper supports Python 2 only
  • Create an Anaconda environment. One straightforward way is to first install conda, and then create the environment by running conda create -n ml-serve python=2.x anaconda, where ml-serve is the name of our Anaconda environment
  • Activate the environment: source activate ml-serve
  • Install Clipper within the environment: pip install git+https://github.com/ucbrise/clipper.git@develop#subdirectory=clipper_admin

serve-ml-with-clipper's People

Contributors

shuaiw avatar

Stargazers

 avatar Vibert Thio avatar unipus-ai avatar Stenpiren avatar Shwet Prakash avatar Lava Kafle avatar

Watchers

James Cloos avatar  avatar  avatar

serve-ml-with-clipper's Issues

Notebook loading for long time on deploy the 'predict' function step

Hi @shuaiw

Thanks for sharing this notebook. While testing it, I got stuck at the #Deploy the 'predict' function as a model step where the Jupiter notebook just hanged trying to load. I do understand that under the hood, docker images are being created and indeed I checked it after I ran this step in the notebook.

Is this the reason why the notebook does not stop loading?

screen shot 2018-07-04 at 16 18 08

Failed to pip sklearn

in this step:
deploy_python_closure(clipper_conn, name="model-1",version=1, input_type="doubles", func=predict,,pkgs_to_install=['numpy==1.14.2','wheel==0.30.0','scripy==1.1.0','sklearn'])

i get this error!
BuildError: The command '/bin/sh -c apt-get -y install build-essential && pip install numpy==1.14.2 wheel==0.30.0 scripy==1.1.0 sklearn' returned a non-zero code: 1

and then i run a simple examples with no pkgs_to_install argument, it successed!
but i run the same simple examples with pkgs_to_install , the same erroer appeared!
can anyone give me a suggestion?

No query frontend

Thanks for the example - and for the explanation accompanying it.

Deploy the 'predict' function as a model

deploy_python_closure(clipper_conn, name="tree-model",
version=1, input_type="doubles", func=predict)

This model is not getting deployed as the error I get is "No Clipper query frontend to attach model container to"
Could you please let me know how to resolve this error ?!

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.