Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Filter by Categories
About Article
Analyze Data
Archive
Best Practices
Better Outputs
Blog
Code Optimization
Code Quality
Command Line
Daily tips
Dashboard
Data Analysis & Manipulation
Data Engineer
Data Visualization
DataFrame
Delta Lake
DevOps
DuckDB
Environment Management
Feature Engineer
Git
Jupyter Notebook
LLM
LLM
Machine Learning
Machine Learning
Machine Learning & AI
Manage Data
MLOps
Natural Language Processing
NumPy
Pandas
Polars
PySpark
Python Tips
Python Utilities
Python Utilities
Scrape Data
SQL
Testing
Time Series
Tools
Visualization
Visualization & Reporting
Workflow & Automation
Workflow Automation

modelstore: A Unified Solution for Cloud and Local Model Storage

Table of Contents

modelstore: A Unified Solution for Cloud and Local Model Storage

Different cloud providers and storage systems require unique implementation methods, making retrieving and loading stored models for deployment or further use complex. 

modelstore offers a unified interface for storing models across multiple cloud platforms (AWS, GCP, Azure) and local storage. It provides easy methods to download models by ID or load them directly into memory.

modelstore supports the following storages:

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

Here is an example of how to use modelstore:

from modelstore import ModelStore

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

# Create a model store with a GCP bucket
model_store = ModelStore.from_gcloud(
   project_name="my-project",
   bucket_name="my-bucket",
)

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

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

Link to modelstore.

Leave a Comment

Your email address will not be published. Required fields are marked *

0
    0
    Your Cart
    Your cart is empty
    Scroll to Top

    Work with Khuyen Tran

    Work with Khuyen Tran