This project demonstrates a simplified MLOps pipeline using Podman. It uses the Credit Score Classifier dataset to train and serve a machine learning model.
Follow the tutorial: https://www.datacamp.com/tutorial/introduction-to-podman-for-machine-learning-streamlining-ml-ops-workflows
- Podman installed on your system.
- Make installed on your system.
- Dataset: Place the
train.csv
file in thedata/
directory.
mlops-podman-project/
│
├── data/
│ └── train.csv # Credit Score dataset
| └── test.csv
│
├── model/
│ └── model.pkl # Trained model will be saved here
│
├── src/
│ ├── train.py # Training script (now orchestrated by Dagster)
│ └── app.py # Prediction script (API endpoint)
│
├── Dockerfile # Dockerfile for the application
├── Makefile # Makefile to build and run the Podman container
├── requirements.txt # Python dependencies
└── README.md # Documentation of the project
git clone https://github.com/kingabzpro/mlops-with-podman
cd mlops-with-podman
To build the Podman image and run the container, execute:
make all
To view the logs and monitor the application
make logs
INFO: Started server process [1]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: 10.88.0.1:36886 - "POST /predict HTTP/1.1" 200 OK