ML Lifecycle Management Framework
Project description
MLOPTIFLOW
Python framework and library with an integrated CLI, designed to streamline ML lifecycle management by automating project inception, real-time model monitoring, and adaptive canary deployment processes. The library facilitates automated project setup across various configurable ML paradigms (whether it is a Random Forest classification, XGBoost regression, T5-based time-series forecasting, encoder-only / encoder-decoder / decoder-only transformer-based NLP downstream tasks, or practically any other configurable ML paradigm) with optimized directories, subdirectories and configuration files adhering to recommended practices in ML development. The library features a plugin architecture for extensibility, allowing integration with other core components / packages, such as real-time model monitoring with anomaly detection mechanisms, adaptive canary deployment architectures, and integrated UI for monitoring and deployment control. Model monitoring is implemented using high-throughput, low-latency data streaming tool Apache Kafka. Deployed ML models act as Kafka producers, emitting real-time inference data and performance metrics serialized with Apache Avro for schema enforcement and efficiency. Model monitoring is accompanied with anomaly, data, and concept drift detection mechanisms via techniques like PSI, Isolation Forests, or LSTM auto-encoders. Adaptive canary deployment architectures and strategies are implemented specifically for ML models using Kubernetes for container orchestration and Istio as a service mesh for traffic management and routing between baseline and canary versions at granular levels. Integrated UI for monitoring and deployment control is implemented using Vanilla JavaScript and Bootstrap on the client-side, and FastAPI / LitServe on the server-side.
Installation
-
create a new virtual environment with python ^3.11 and activate it
-
install mloptiflow:
pip install mloptiflow
- initialize a new project and choose a name and paradigm (currently supported paradigms are:
tabular_regression,tabular_classification):
mloptiflow init <your-project-name> --paradigm=<paradigm-name>
cdinto your project directory and (if usingpoetry) updatenamefield inpyproject.tomlfile:
cd <your-project-name>
[tool.poetry]
name = "<your-project-name>"
- optionally, create a root package for the project and add
__init__.pyfile:
mkdir <your-project-name>
touch <your-project-name>/__init__.py
- install dependencies:
poetry install --no-root
or (if you created root package):
poetry install
or if using pip:
pip install -r requirements.txt
Usage
- run the application:
streamlit run app.py
or:
poetry run streamlit run app.py
- optionally, adjust
Dockerfileto your needs if you want to run the inference application in a containerized environment:
# mainly the WORKDIR
WORKDIR /<your-project-name>
- build the container image:
docker build -t <your-project-name> .
- run the container image:
docker run -p 8501:8501 <your-project-name>
Support
- TBA
Roadmap
- TBA
Contributing
- TBA
License
MIT
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mloptiflow-0.0.12.tar.gz.
File metadata
- Download URL: mloptiflow-0.0.12.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.11 Linux/5.15.154+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a263464c1c29fc1ef49ec0acddcdf7cb704a29f2961141fef92b9aaf4efd4ca4
|
|
| MD5 |
817815169007c8038a777036102e558f
|
|
| BLAKE2b-256 |
15578634b4c10724dcf90f178adb739e92b09818526e650a545f7a7e1573f76e
|
File details
Details for the file mloptiflow-0.0.12-py3-none-any.whl.
File metadata
- Download URL: mloptiflow-0.0.12-py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.11 Linux/5.15.154+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69bd94f9e03a0ebc189a8012b10c288cdab10ac36f3acfcf1ddbebd8fbc5448e
|
|
| MD5 |
1b58171f8711db3594e408513aa9dd9f
|
|
| BLAKE2b-256 |
95ea360497fff88f0ac926d4f60d015eb58eb4440a8accb616c6fc1182545aa4
|