Giter Site home page Giter Site logo

ai-app / modelzoo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from harbor-ml/modelzoo

0.0 2.0 0.0 3.15 MB

Live Machine Learning Model Zoo

Home Page: https://modelzoo.live

Makefile 0.52% Go 9.18% JavaScript 40.38% HTML 0.17% CSS 0.11% TypeScript 12.97% Python 36.67%

modelzoo's Introduction

ModelZoo.Live

The final layer in the prediction serving stack.

ModelZoo.Live consists of three layers - a frontend UI written in JavaScript, a Go Routing Middleware, which includes both a gRPC server, and a HTTP Reverse Proxy for gRPC, and a Python Client to aid in using the service programmatically. It is intended to be used with the prediction serving framework of your choice, such as RayServe or Clipper.

It can be used to share and keep track of ML models across teams within your organization, and to organize metrics about your models.

For more info, about ModelZoo.Live, as well as what the team hopes it can do for you, check out this talk. The corresponding slides can be found here.

Go

To seed the model database, cd into modelzoo/go, run go build and finally ./go seed --data filename, where filename is a JSON file containing your seed data. Please check this example to get an idea for how this file should look.

To run the Go Server, cd into modelzoo/go, run go build and finally ./go serve. To query this, you can use the ModelZooConnection client API, written in Python.

To run the HTTP Reverse Proxy, cd into modelzoo/go, run go build and finally, ./go proxy.

The reverse proxy can be queried with cURL. Some examples follow. Please note that http://modelzoo.url should be replaced with the URL for your proxy. For example, if you ran it locally on port 9090, you would replace http://modelzoo.url with http://localhost:9090.

List Models

curl -X POST -d '{"body": ""}' http://modelzoo.url/get/models

Get Token

curl -X POST -d '{"body": ""}' http://modelzoo.url/get/token

Create User

curl -X POST -d '{"email":"myemail", "password":"mypassword"}' http://modelzoo.url/create/user

Get User (To Check if User exists. Also used to authenticate with the python client)

curl -X POST -d '{"email":"myemail", "password":"mypassword"}' http://modelzoo.url/get/user

Text Inference

curl -X POST -d '{"text": {"access_token": "0ad62eb5-c10f-4f09-acb9-509ebf654489", \
    "metadata": {},"model_name": "text_generation_mock","texts": ["123456","654321"]}, \
    "type": "TEXT"}' http://modelzoo.url/inference

modelzoo's People

Contributors

rehansd avatar simon-mo avatar

Watchers

James Cloos avatar  avatar

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.