ML pipeline orchestration and model deployments on Kubernetes, made really easy.
Project description
Bodywork is a command line tool that deploys machine learning pipelines to Kubernetes. It takes care of everything to do with containers and orchestration, so that you don't have to.
Who is this for?
Bodywork is aimed at teams who want a solution for running ML pipelines and deploying models to Kubernetes. It is a lightweight and simpler alternative to Kubeflow, or to building your own platform based around a workflow orchestration tool like Apache Airflow, Argo Workflows or Dagster.
Pipeline = Jobs + Services
Any stage in a Bodywork pipeline can do one of two things:
- run a batch job, to prepare features, train models, compute batch predictions, etc.
- start a long-running process, like a Flask app that serves model predictions via HTTP.
You can use these to compose pipelines for many common ML use-cases, from serving pre-trained models to running continuous training on a schedule.
No Boilerplate Code Required
Defining a stage is as simple as developing an executable Python module or Jupyter notebook that performs the required tasks, and then committing it to your project's Git repository. You are free to structure your codebase as you wish and there are no new APIs to learn.
Easy to Configure
Stages are assembled into DAGs that define your pipeline's workflow. This and other key configuration is contained within a single bodywork.yaml file.
Simplified DevOps for ML
Bodywork removes the need for you to build and manage container images for any stage of your pipeline. It works by running all stages using Bodywork's custom container image. Each stage starts by pulling all the required files directly from your project's Git repository (e.g., from GitHub), pip-installing any required dependencies, and then running the stage's designated Python module (or Jupyter notebook).
Get Started
Bodywork is distributed as a Python package - install it from PyPI:
Add a bodywork.yaml file to your Python project’s Git repo. The contents of this file describe how your project will be deployed:
Bodywork is used from the command-line to deploy projects to Kubernetes clusters. With a single command, you can start Bodywork containers (hosted by us on Docker Hub), that pull Python modules directly from your project’s Git repo, and run them:
You don’t need to build Docker images or understand how to configure Kuberentes resources. Bodywork will fill the gap between executable Python modules and operational jobs and services on Kubernetes.
If you’re new to Kubernetes then check out our guide to Kubernetes for ML - we’ll have you up-and-running with a test cluster on your laptop, in under 10 minutes.
Documentation
The documentation for bodywork-core can be found here. This is the best place to start.
Deployment Templates
To accelerate your project's journey to production, we provide deployment templates for common use-cases:
- batch scoring data
- deploying a prediction service with a REST API
- scheduling a continuous-training pipeline
We want your Feedback
If Bodywork sounds like a useful tool, then please send us a signal with a GitHub ★
Contacting Us
If you:
- Have a question that these pages haven't answered, or need help getting started with Kubernetes, then please use our discussion board.
- Have found a bug, then please open an issue.
- Would like to contribute, then please talk to us first at info@bodyworkml.com.
- Would like to commission new functionality, then please contact us at info@bodyworkml.com.
Bodywork is brought to you by Bodywork Machine Learning.
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
File details
Details for the file bodywork-3.0.12.tar.gz
.
File metadata
- Download URL: bodywork-3.0.12.tar.gz
- Upload date:
- Size: 55.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.6.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96c796392ee071005ff34a053324ba46aac0db06fba20c532e854f4b2a5a2602 |
|
MD5 | 68de350b9e5ed72cd1ecc90543693f2b |
|
BLAKE2b-256 | b8cb90b2b4e9d4e11fa5c8fbb9e9327142a0b0b9c5ed49b4d5e7a1d66e3cb26d |