Skip to main content

A lightweight ML pipeline orchestrator

Project description

ML Pipeline Orchestrator

A lightweight, ML pipeline orchestrator that transforms your individual ML scripts into reliable, automated workflows. Built specifically for robust Machine Learning pipeline management without the complexity of cloud systems.

✨ Key Features

  • 🔄 Smart Dependency Management - Automatic task ordering with DAG validation
  • 💾 State Persistence - Resume interrupted pipelines from where they left off
  • 🔁 Robust Error Handling - Configurable retry logic and graceful failure recovery
  • ⚙️ CLI & Python API - Use from command line or integrate into your code
  • 📊 Real ML Examples - MNIST computer vision pipeline with PyTorch included
  • 🎯 Zero Configuration - Works with your existing Python scripts

🚀 Quick Start

Installation

pip install ml-pipeline-orchestrator

Basic Usage

  1. Create a pipeline config (my_pipeline.yml):
name: "ml_training_pipeline"
tasks:
  - name: "fetch_data"
    command: "python scripts/fetch_data.py --output data/"
    
  - name: "train_model"
    command: "python scripts/train.py --data data/ --model model.pkl"
    depends_on: ["fetch_data"]
    retry_count: 3
    
  - name: "evaluate"
    command: "python scripts/evaluate.py --model model.pkl"
    depends_on: ["train_model"]
  1. Run your pipeline:
# Command line
ml-orchestrator run my_pipeline.yml

# Python API
from ml_orchestrator import Pipeline
pipeline = Pipeline.from_config('my_pipeline.yml')
pipeline.run()
  1. Monitor and manage:
ml-orchestrator status ml_training_pipeline
ml-orchestrator resume ml_training_pipeline  # Resume if failed
ml-orchestrator list  # Show all pipelines

📋 Configuration Reference

Task Options

Option Description Example
name Unique task identifier "preprocess_data"
command Shell command to execute "python train.py"
depends_on Task dependencies ["fetch_data", "validate"]
retry_count Number of retries on failure 3
timeout Max execution time (seconds) 3600
working_dir Execution directory "/path/to/project"
environment Environment variables {"GPU": "0"}

Pipeline Options

name: "my_pipeline"
description: "ML training pipeline"
version: "1.0"
author: "Data Team"
tags: ["training", "production"]

tasks:
  # ... task definitions

🎓 Use Cases

  • Model Training Pipelines - Automate data → preprocess → train → evaluate workflows
  • Data Processing - Multi-step ETL pipelines with dependency management
  • Model Deployment - Training → validation → deployment → monitoring chains
  • Batch Inference - Scheduled prediction pipelines
  • Hyperparameter Tuning - Coordinate multiple training experiments
  • A/B Testing - Manage parallel model training and comparison

📜 License

MIT License - feel free to use in commercial and open-source projects.

🔗 Links


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ml_pipeline_orchestrator-0.1.2.tar.gz (44.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ml_pipeline_orchestrator-0.1.2-py3-none-any.whl (58.8 kB view details)

Uploaded Python 3

File details

Details for the file ml_pipeline_orchestrator-0.1.2.tar.gz.

File metadata

  • Download URL: ml_pipeline_orchestrator-0.1.2.tar.gz
  • Upload date:
  • Size: 44.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for ml_pipeline_orchestrator-0.1.2.tar.gz
Algorithm Hash digest
SHA256 342a008bbec3d2ad363d21d1dcacaff3cfe4978762c0aa7359d9e0c9381cbff6
MD5 44e54d2456dd18fd4f5dc586a6c3f938
BLAKE2b-256 f9a879151e1d29d86e8448023339fe8aad245bb774d4da175aa8faf1948bf5fd

See more details on using hashes here.

File details

Details for the file ml_pipeline_orchestrator-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ml_pipeline_orchestrator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 602704587dc90a6283afda3c507ea88393114bacbf1641ce7d6c14b7e5486d8b
MD5 9058da48c50d1ecbeef70751f6d2bf8b
BLAKE2b-256 27d19a2427605091979b54447c9c2d54dea6e2720117096023ec593dd8d035dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page