Skip to main content

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:

  1. Deploying xgboost model
  2. Deploying sklearn model
  3. Deploying tensorflow model
  4. Deploying pytorch model
  5. 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.2.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

merlin_sdk-0.45.2-py3-none-any.whl (236.4 kB view details)

Uploaded Python 3

File details

Details for the file merlin_sdk-0.45.2.tar.gz.

File metadata

  • Download URL: merlin_sdk-0.45.2.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

Hashes for merlin_sdk-0.45.2.tar.gz
Algorithm Hash digest
SHA256 5ed7a6bbdcf5c1abcbfd0ee757e152edd43b7f37742545f5f4f533517b0e9c4a
MD5 10480d19bc5052abafcc754a1ce6f888
BLAKE2b-256 db2f70d97961692ba2d2574b37be413ca0714d5bf6978291572db4c2022c0661

See more details on using hashes here.

File details

Details for the file merlin_sdk-0.45.2-py3-none-any.whl.

File metadata

  • Download URL: merlin_sdk-0.45.2-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

Hashes for merlin_sdk-0.45.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cc73c2c8d8201912a19c21f5800c92c10d6c150e21670e0b8ba1cb8ee50730a8
MD5 fc3db475d5e51154cc56044afa37c190
BLAKE2b-256 931adef91bc978564ca08ff400007effc90062bec42fec7760c78168f49d837f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page