dermatologist / python3-ml

:runner: OpenFaaS-cli template for python3 ML model deployments as microservices

Home Page:https://nuchange.ca

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenFaaS Templates for deploying machine learning models and LLM agents on the cloud.

Templates available in this repository:

  • conda-ml (Base container with conda. Falls back to pip if conda install fails. Use torch/tf for cpu). See example requirements.txt below.
torch==1.13.0+cpu
torchvision==0.14.0+cpu
  • conda-ml-kf (Copy of above with KubeFlow support Read more)
  • conda-langroid (Simple OpenFaaS wrapper for langroid)
  • opencv-face
  • gensim-text
  • fastai-vision Deprecated
  • fastai-statedict Deprecated
  • More to come

Downloading the templates

faas-cli template pull https://github.com/dermatologist/python3-ml

Using the template

Create a new function (Check the templates available above)

faas-cli new --lang <template-name> <fn-name>

Build, push, and deploy

faas-cli up -f <fn-name>.yml

Test the new function

echo -n content | faas-cli invoke <fn-name>

Give us a star ⭐️

If you find these templates useful, give us a star. It helps others discover them.

Contributors

About

:runner: OpenFaaS-cli template for python3 ML model deployments as microservices

https://nuchange.ca

License:MIT License


Languages

Language:Python 42.3%Language:Dockerfile 38.4%Language:HTML 19.3%