ML-Py-Stevedore

What is it?

ML-Py-Stevedore is a ML-framework agnostic wrapper class and generic API plus Podman/Colima/Docker build automation for Python ML models. A specific use case is a set of machine learning models that may be composed, so that they can be tested and packaged together. This by no means excludes use on single model.

Why is it necessary?

ML-Py-Stevedore offers a reusable ML REST API design plus surrounding services for fast containerization of Python ML models. It offers useful premeditated standard services, naturally presented requirements for the functionality of the model, and build & test automation.

Contact

Johan Himberg
Reaktor

Send email

How does it work?

The key technologies are HTTP, Containers, JSON, Python, Make, FastAPI and JSON Schema.  

The assumptions are 

  • Request payload is presented as JSON in the HTTP request body.
  • For each model, the user supplies
    • a JSON schema for prediction and scoring inputs,
    • a couple of key methods that are missing in the Predictor base class, and
    • test inputs for predict and score to honestly test the model availability.