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
Metadata
Release files for merlin-sdk 0.50.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| merlin_sdk-0.50.0.tar.gz | 1.2 MB | Without provenance | Details for merlin_sdk-0.50.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| merlin_sdk-0.50.0-py3-none-any.whl | Python 3 | none | any | Details for merlin_sdk-0.50.0-py3-none-any.whl |
Total release size: 1.5 MB
Release files / merlin_sdk-0.50.0.tar.gz
| Download URL | merlin_sdk-0.50.0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5302f678ca93bf6c3bb8b317802f2bead1686c5ae878d48eba11c63cf01fe727
|
|
BLAKE2b-256 checksum How to use checksums |
4eb77f20b579b42fee3a9cc42d6ceedc1a74b9287593f1b2615c458ae4499b05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / merlin_sdk-0.50.0-py3-none-any.whl
| Download URL | merlin_sdk-0.50.0-py3-none-any.whl |
|---|---|
| Size | 254.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d10c7152c7f49faecc442113e8cd45cacd04b0b9833c3f12496c5d18934e0f3
|
|
BLAKE2b-256 checksum How to use checksums |
ae996b4319fdbc7647cba80e0ecc164531cf578144d429e7b42a651a68543258
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for merlin-sdk 0.50.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.