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.34.0rc3.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

merlin_sdk-0.34.0rc3-py3-none-any.whl (195.9 kB view details)

Uploaded Python 3

File details

Details for the file merlin-sdk-0.34.0rc3.tar.gz.

File metadata

  • Download URL: merlin-sdk-0.34.0rc3.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for merlin-sdk-0.34.0rc3.tar.gz
Algorithm Hash digest
SHA256 849dd64a52087c9499e25d6034ead8125da522ea045da169e4b8b0e33ec59bb5
MD5 19089902208c2205d1d664e451209252
BLAKE2b-256 db333a8b5a1f65637340480b92d190d9725d45d23f32a68f6360807d7e6cf2ca

See more details on using hashes here.

File details

Details for the file merlin_sdk-0.34.0rc3-py3-none-any.whl.

File metadata

  • Download URL: merlin_sdk-0.34.0rc3-py3-none-any.whl
  • Upload date:
  • Size: 195.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for merlin_sdk-0.34.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 d7574d4d130c8c6458dbfb0b5a5b0f88255bb9e02dc71444d6a4662b06d8d57d
MD5 4499f4b4a8d8449e5110b528a5cd8dc6
BLAKE2b-256 b4ddcd68a8e466175cf1e9c00f4a0adf37f289e9e948a2a50b64d6367fcdc821

See more details on using hashes here.

Supported by

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