Skip to content

A cloud function to invoke a prediction against a machine learning model that has been trained outside of a cloud provider.

License

Notifications You must be signed in to change notification settings

kwame-mintah/gcp-cloud-function-model-inference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Platform Cloud (GCP) Function Model Inference

A cloud function to invoke a prediction against a machine learning model that has been trained outside of a cloud provider, using tools like MLFlow. This repository will not contain the model artifact output, but the code for the cloud function.

FastAPI will be used for the cloud function as it offers many features e.g. authentication, body validation etc. and overall easy to use and maintain.

Architecture

proposed-model-inference-architecture

  1. External to GCP model training is performed and model artifact output,
  2. User makes a request to a HTTP endpoint for a prediction,
  3. Model artifact is stored within a bucket, when function is invoked -- model is downloaded,
  4. Prediction is output via a HTTP response.

References

  1. How to serve deep learning models using TensorFlow 2.0 with Cloud Functions by Rustem Feyzkhanov

About

A cloud function to invoke a prediction against a machine learning model that has been trained outside of a cloud provider.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published