Python SDK for Merlin
Project description
Merlin SDK
This project contains python library for interacting with Merlin, machine learning model serving component of CaraML. It provides interface to:
- Manage ML project resources
- Track metrics and training performance
- Package and Deploy Model
Installation
pip install merlin-sdk
and authenticate to gcloud
gcloud auth application-default login
Getting Started
The easiest way to get started is to explore example notebook:
- Deploying xgboost model
- Deploying sklearn model
- Deploying tensorflow model
- Deploying pytorch model
- Deploying user defined model
Development
Requirements:
- pipenv (
pip install pipenv
) - swagger code gen (
brew install swagger-codegen
)
Setup development environment:
make setup
Merlin CLI
With the CLI, users can deploy a trained model (serialized model) without touching Python code at all.
To use the CLI:
// to see available subcommands
merlin --help
// to see subcommand options
merlin SUBCOMMAND --help
// deploy existing xgboost model located inside cur_model_dir
merlin deploy --url localhost --model-type xgboost --project sample --model-dir cur_model_dir --model-name xgboost-sample --env staging
// undeploy xgboost-sample version 1
merlin undeploy --url localhost --project sample --model-name xgboost-sample --model-version=1
// generate pyfunc code base
merlin scaffold -p merlin-project -m model-name -e id
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
merlin-sdk-0.32.0.tar.gz
(1.2 MB
view hashes)
Built Distribution
merlin_sdk-0.32.0-py3-none-any.whl
(189.5 kB
view hashes)
Close
Hashes for merlin_sdk-0.32.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90b2d89a9e5c24f0d2e3e54e2747784a444b4dcdea651ee8051e24ee8b3c771c |
|
MD5 | 3d67849fc2151348392faa3984d2719c |
|
BLAKE2b-256 | 26d3e69b2873067f7d0f9c00842edac6c8a989bfb7a0ffaa02cc7a32e2f1c842 |