Giter VIP home page Giter VIP logo

modelstore's Introduction

modelstore

modelstore is a Python library that allows you to version, export, save and download machine learning models in your choice of storage.

Downloads Downloads

πŸ’­ Give us feedback by completing this survey: https://forms.gle/XShU3zrZcnLRWsk36

modelstore is an open source model registry

βœ… No tracking server required

  • Store models on a local file system or in a bucket
  • Support for multiple clouds (AWS, GCP, Azure)

βœ… Upload and version all your models

  • Models are versioned on each upload
  • Replaces all the boiler plate code you need to save models

βœ… Manage models by domains and states

  • List models in a domain
  • Create model states and manage which state a model is in

βœ… Download or load straight into memory

  • Download models by id
  • Load models straight from your storage back into memory

βœ… Use as a command line tool

  • Download models from the command line

For more details, please refer to the documentation.

modelstore is being built in the open

πŸ’¬ Come and find us in the MLOps Community Slack's #oss-modelstore channel.

Installation

pip install modelstore

Supported storage types

  • AWS S3 Bucket (example)
  • Azure Blob Storage (example)
  • Google Cloud Storage Bucket (example)
  • Any s3-compatible object storage that you can access via MinIO
  • A filesystem directory (example)

Supported machine learning libraries

Is there a machine learning framework that is missing?

Read more about modelstore

Example Usage

Colab Notebook

There is a full example in this Colab notebook.

Python Script

from modelstore import ModelStore
#Β And your other imports

# Train your model
clf = RandomForestClassifier(n_estimators=10)
clf = clf.fit(X, Y)

# Create a model store that uses a one of the storage options
# In this example, the model store is created with a GCP bucket
model_store = ModelStore.from_gcloud(
   project_name="my-project",
   bucket_name="my-bucket",
)

# Upload the archive to your model store
domain = "example-model"
meta_data = model_store.upload(domain, model=clf)

# Print the meta-data about the model
print(json.dumps(meta_data, indent=4))

# Load the model back!
clf = model_store.load(domain=model_domain, model_id=meta["model"]["model_id"])

License

Copyright 2020 Neal Lathia

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

modelstore's People

Contributors

nlathia avatar dependabot[bot] avatar cdknorow avatar ionicsolutions avatar robertpknight avatar sspillard avatar trellixvulnteam avatar rladbrua0207 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.