⛽ OpenFaaS Templates for deploying machine learning models and LLM agents on the cloud.
- 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-visionDeprecatedfastai-statedictDeprecated- More to come
faas-cli template pull https://github.com/dermatologist/python3-ml
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>
If you find these templates useful, give us a star. It helps others discover them.