Python
0 stars
Production-style ML serving platform with versioned LightGBM models, runtime activation/rollback, Prometheus/Grafana monitoring, Docker, GitHub Actions, SBOM generation, and vulnerability scanning.
**Overview:** A production-style ML serving platform for versioned model inference, runtime model activation and rollback, observability, automated testing, containerized deployment, and CI security checks.
**Key features:**
- FastAPI-based ML inference service
- Two versioned LightGBM model artifacts: V1 and V2
- Runtime model activation without restarting the API
- Rollback to the previously active model
- Model metadata and feature-schema validation
- Health and readiness endpoints
- Strict request validation using Pydantic
- Prometheus metrics for HTTP request counts, duration, prediction counts by model version, and model inference latency by model version
- Grafana dashboard for model-serving observability
- Automatic Grafana datasource and dashboard provisioning
- Dockerized FastAPI application
- Full FastAPI + Prometheus + Grafana stack using Docker Compose
- 9 automated tests covering serving, validation, lifecycle management, and metrics
- GitHub Actions CI
- Automated Docker image build validation
- SBOM generation
- Container vulnerability scanning
**Tech stack:** Python
**Why it matters:** This platform demonstrates how multiple ML model versions can be registered, switched at runtime, monitored, rolled back, tested, containerized, and validated through CI, providing a robust and scalable solution for deploying and managing machine learning models in production environments.