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.0.tar.gz
(1.2 MB
view details)
Built Distribution
merlin_sdk-0.45.0-py3-none-any.whl
(236.4 kB
view details)
File details
Details for the file merlin_sdk-0.45.0.tar.gz
.
File metadata
- Download URL: merlin_sdk-0.45.0.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 | 7201dc2f1601b17e17024d1f87ad2fc1c6842a7ef5269a2f4b50d91f14955ae5 |
|
MD5 | 679a35d48a2ab1c44f802e3281b3d2c1 |
|
BLAKE2b-256 | 34d71d61348625650d170ecf6bd51ad457f6c56db74206b1772e94a8eee4f2fe |
File details
Details for the file merlin_sdk-0.45.0-py3-none-any.whl
.
File metadata
- Download URL: merlin_sdk-0.45.0-py3-none-any.whl
- Upload date:
- Size: 236.4 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 | 2d6ff3a11a60685c693f8a995c7cab6634b91b4256c1bf4eb662b6cb3e5d94a9 |
|
MD5 | ff2963cdee97715d904a8668f83b9126 |
|
BLAKE2b-256 | 3c745b734c0229a503167956f85641c8293cff3c726ff17e5c9a2dc2db1330a2 |