Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

merlin-sdk

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merlin-sdk

Python SDK for Merlin

  • 0.45.3
  • PyPI
  • Socket score

Maintainers
3

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc