Deploy DL/ ML inference pipelines with minimal extra code.
Project description
fastDeploy
easy and performant micro-services for Python Deep Learning inference pipelines
- Deploy any python inference pipeline with minimal extra code
- Auto batching of concurrent inputs is enabled out of the box
- no changes to inference code (unlike tf-serving etc), entire pipeline is run as is
- Promethues metrics (open metrics) are exposed for monitoring
- Auto generates clean dockerfiles and kubernetes health check, scaling friendly APIs
- sequentially chained inference pipelines are supported out of the box
- can be queried from any language via easy to use rest apis
- easy to understand (simple consumer producer arch) and simple code base
Installation:
pip install --upgrade fastdeploy fdclient
# fdclient is optional, only needed if you want to use python client
CLI explained
Start fastDeploy server on a recipe:
# Invoke fastdeploy
python -m fastdeploy --help
# or
fastdeploy --help
# Start prediction "loop" for recipe "echo"
fastdeploy --loop --recipe recipes/echo
# Start rest apis for recipe "echo"
fastdeploy --rest --recipe recipes/echo
Send a request and get predictions:
auto generate dockerfile and build docker image:
# Write the dockerfile for recipe "echo"
# and builds the docker image if docker is installed
# base defaults to python:3.8-slim
fastdeploy --build --recipe recipes/echo
# Run docker image
docker run -it -p8080:8080 fastdeploy_echo
Serving your model (recipe):
Where to use fastDeploy?
- to deploy any non ultra light weight models i.e: most DL models, >50ms inference time per example
- if the model/pipeline benefits from batch inference, fastDeploy is perfect for your use-case
- if you are going to have individual inputs (example, user's search input which needs to be vectorized or image to be classified)
- in the case of individual inputs, requests coming in at close intervals will be batched together and sent to the model as a batch
- perfect for creating internal micro services separating your model, pre and post processing from business logic
- since prediction loop and inference endpoints are separated and are connected via sqlite backed queue, can be scaled independently
Where not to use fastDeploy?
- non cpu/gpu heavy models that are better of running parallely rather than in batch
- if your predictor calls some external API or uploads to s3 etc in a blocking way
- io heavy non batching use cases (eg: query ES or db for each input)
- for these cases better to directly do from rest api code (instead of consumer producer mechanism) so that high concurrency can be achieved
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
fastdeploy-3.0.24.tar.gz
(16.8 kB
view details)
Built Distribution
File details
Details for the file fastdeploy-3.0.24.tar.gz
.
File metadata
- Download URL: fastdeploy-3.0.24.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18de57cd9f06be9c80b6c4ce5df1b510a51f893460dffbef18030b076b0464e9 |
|
MD5 | 40cf08bfaac1741e00b9e6b257f54bf1 |
|
BLAKE2b-256 | ea2a8bd9c9299dd642f7c892fc8f1d363b3f4ae71f02d470ba558799cfbd9ed1 |
Provenance
The following attestation bundles were made for fastdeploy-3.0.24.tar.gz
:
Publisher:
main.yml
on notAI-tech/fastDeploy
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
fastdeploy-3.0.24.tar.gz
- Subject digest:
18de57cd9f06be9c80b6c4ce5df1b510a51f893460dffbef18030b076b0464e9
- Sigstore transparency entry: 145108106
- Sigstore integration time:
- Predicate type:
File details
Details for the file fastdeploy-3.0.24-py3-none-any.whl
.
File metadata
- Download URL: fastdeploy-3.0.24-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83be3bd81638545b5136a7d439a77ebcb6ccaef844429e1292a5bd772c3e3bef |
|
MD5 | 938e6cd3a04320f8cee447dd8d54271a |
|
BLAKE2b-256 | 4758a5f8f86986e82732787dd6cb0df148c03ba539e8e4e6e5d34999fae1ce8b |
Provenance
The following attestation bundles were made for fastdeploy-3.0.24-py3-none-any.whl
:
Publisher:
main.yml
on notAI-tech/fastDeploy
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
fastdeploy-3.0.24-py3-none-any.whl
- Subject digest:
83be3bd81638545b5136a7d439a77ebcb6ccaef844429e1292a5bd772c3e3bef
- Sigstore transparency entry: 145108107
- Sigstore integration time:
- Predicate type: