Skip to main content

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

```

Metadata

Release files for servz 0.1.11.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for servz 0.1.11.6
File Size Uploaded Provenance Actions
servz-0.1.11.6.tar.gz 12.3 kB Without provenance Details for servz-0.1.11.6.tar.gz

Release files / servz-0.1.11.6.tar.gz

Download URL servz-0.1.11.6.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5599c2f0590c229fd0fb29488e12532275259c5dce068c86e62df2495964ecbe
BLAKE2b-256 checksum
How to use checksums
92197c17d0aba6f29cfeb326c7cc684df22359042289eb96962296a33d34ac3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

Security for servz 0.1.11.6

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page