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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file merlin_sdk-0.49.4.tar.gz.
File metadata
- Download URL: merlin_sdk-0.49.4.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db5b02fed059aa10e6b0e474793d329587cf84fab16ef1bad09540de45e45705
|
|
| MD5 |
b0ee179b64ca623a82ba3ae8d0890a5e
|
|
| BLAKE2b-256 |
1b77f7f3b09377468e9c27e1c6dbcaf5411764a3a1d0bb2160ebe43262b963ba
|
File details
Details for the file merlin_sdk-0.49.4-py3-none-any.whl.
File metadata
- Download URL: merlin_sdk-0.49.4-py3-none-any.whl
- Upload date:
- Size: 254.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68ac9e2798fe1a069b5d3f0b974a52af032240fce348871fad6a760ab1809b93
|
|
| MD5 |
4a4bbbe98f145eb4d15b89855d17d3d2
|
|
| BLAKE2b-256 |
721f73b7037b74a78cb2e7162adf33aa0f56948794b6fef0a1bb76df7f71c0c2
|