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
- For workloads at low scale use MaC
- 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
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
servz-0.1.11.6.tar.gz
(12.3 kB
view details)
File details
Details for the file servz-0.1.11.6.tar.gz
.
File metadata
- Download URL: servz-0.1.11.6.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5599c2f0590c229fd0fb29488e12532275259c5dce068c86e62df2495964ecbe |
|
MD5 | c98c59815ec7550354411f9c9bb64cb4 |
|
BLAKE2b-256 | 92197c17d0aba6f29cfeb326c7cc684df22359042289eb96962296a33d34ac3e |