fAIr-models

July 22, 2026 ยท View on GitHub

codecov

Model registry and ML pipeline orchestration for fAIr.

fair-py-ops is the Python package for building ZenML pipelines, validating STAC items, and testing locally. The models/ directory is the single source of truth for base model contributions.

Quick Start

Prerequisites: Docker, uv, just.

git clone https://github.com/hotosm/fAIr-models.git
cd fAIr-models
just setup
just example

just setup installs Python deps, brings up the full stack via Docker Compose (Postgres + MinIO + STAC + MLflow + ZenML), and registers the ZenML stack. just example runs all three reference pipelines end-to-end.

ServiceURLCredentials
ZenML dashboardhttp://localhost:8080default / (empty)
MLflowhttp://localhost:5000none
STAC APIhttp://localhost:8082none
MinIO consolehttp://localhost:9001minioadmin / minioadmin

See Getting Started for the full guide. For Kubernetes parity or production deploys, see infra/README.md.

Documentation

Examples

Three reference implementations demonstrate the full workflow for each supported task:

ExampleTaskModelPath
SegmentationSemantic segmentationUNet (torchgeo)examples/segmentation/
ClassificationBinary classificationResNet18 (torchvision)examples/classification/
DetectionObject detectionYOLOv11n (ultralytics)examples/detection/

Commands

Run just to see all recipes.

just setup     # install deps + bring up stack + register ZenML stack
just example   # run all 3 example pipelines
just down      # stop the stack (state preserved, fast restart)
just up        # restart after `just down`
just tear      # destroy stack + volumes + local ZenML state
just lint      # ruff + ty
just test      # pytest
just validate  # validate STAC items + model pipelines
just docs      # serve documentation locally
just commit    # run pre-commit hooks + commitizen

Key Concepts

ConceptDescription
Base modelReusable ML blueprint (weights, code, Docker image, STAC item)
Local modelFinetuned model produced by ZenML pipeline on user data
STAC catalogModel/dataset registry with MLM and Version extensions
ZenML pipelineOrchestrated training and inference workflows

Ask DeepWiki