Back to Academic Projects

Deployment of a Machine Learning model with FastAPI

Python, FastAPI, REST API, PostgreSQL, SQLAlchemy, Pytest, GitHub Actions, CI/CD, Machine Learning, OpenAPI

Deploying a Machine Learning Model with FastAPI

Context

As part of a Machine Learning Engineering project, I industrialized a Machine Learning model by developing a secure and documented REST API. The objective was to make the model production-ready while applying best practices in software development, automated testing, and continuous deployment.


Objectives


Architecture

Client
   │
   ▼
FastAPI
   │
   ▼
Pydantic Validation
   │
   ▼
Machine Learning Model
   │
   ▼
PostgreSQL
(Input / Output / History)
   │
   ▼
Swagger / OpenAPI

Technologies Used


Achievements

Model Industrialization

Database

Tests

Development of a comprehensive validation strategy:

CI/CD

Automation of the development cycle:

Documentation


Skills Demonstrated

Machine Learning Engineering

Backend

Database

DevOps

Software Quality


Outcome

This project allowed me to transform a Machine Learning model into a production-ready application by developing a robust, tested, and documented REST API. I also implemented best practices in Machine Learning Engineering, DevOps, and continuous integration to ensure the reliability, maintainability, and traceability of the solution.


Skills Acquired