Skip to main content

DO NOT USE - This is a sample program

Project description

Servz

Machine Learning Model Serving

This library is a pre-alpha right now

The intent of this package is to provide a machine learning deplpoyment layer for model predictions.

Features

  • pipeline driven
  • deployment via task runner
  • deployment via flask or other endpoint
  • MLFlow based deployment
  • Seldon deployment (in progress)

Model Serving Architectures

Model as Code

Model is written by some developer and relatively standard IT DevOps procedures used to bring model into production.

Frameworks using the MoC architecture include:

  • MLFlow
  • Seldon
  • Clipper
  • Tensorflow Serving

pros:

  • easy development
  • data scientist does not need to be an SRE or deal with deployment
  • automation (of standardized parts, if any)
  • model state included in production code

cons:

  • ever increasing complexities with scale
  • increased latency, becomes a bottleneck at scale
  • different toolsets used
  • difficult to update
  • hard to rebuild
  • overall lack of scale

Model as Data

The model is implemented via a parameter file of some kind.

Data formats used in MaD architectures include:

  • Tensorflow SavedModelks
  • PMML
  • PFA
  • ONNX

Frameworks using MaD concepts include:

  • Lightbend
  • Akka Serving
  • Spark Structured Streaming
  • Flink
  • Kafka Queryable State

pros:

  • simple model management
  • model standardization
  • low latency
  • easy to implement
  • forces cross-silo communication

cons:

  • not all tools support model formats
  • standardization still in early stages

Other Model Serving Patterns

  • TBA

Current opinion

  1. For workloads at low scale use MaC
  2. For workloads at high scale (aka batch() use MaD

structure

/base  - common library
/core - core files for servz
/orchestration_artifact_builder - artifact packager
/orchestration_artifact_deployer - deployment runner
/packager - manifest packager
/pipeline - loading and validation of serving pipeline
/server_templates - artifacts for artifact builder to construct endpoints
/tests - unit tests and e2e tests

```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

servz-0.1.11.6.tar.gz (12.3 kB view hashes)

Uploaded Source

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