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.45.0rc1.tar.gz
(1.2 MB
view details)
Built Distribution
File details
Details for the file merlin_sdk-0.45.0rc1.tar.gz
.
File metadata
- Download URL: merlin_sdk-0.45.0rc1.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9213195af6f0ee2f42e4ce55c34fc72d102e789dfbdc3284900d5fffbaeec88c |
|
MD5 | b1841177985c37533a672febf2fa5269 |
|
BLAKE2b-256 | 9a8515b01aa77e6184736b524c95699b522dc03f26ccaa5984178a3f375b288c |
File details
Details for the file merlin_sdk-0.45.0rc1-py3-none-any.whl
.
File metadata
- Download URL: merlin_sdk-0.45.0rc1-py3-none-any.whl
- Upload date:
- Size: 236.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7cdcdd6fa11f2f2cef2210b2d92c4165f670710bae02aa1501b279255b137af |
|
MD5 | 914fbbb0dc9ffbd182792c3524bcf55b |
|
BLAKE2b-256 | 6b11c4e44c01eb0c1861823ebad786c2693d6b63446fba7c6e8c8bc6b2d6700b |