Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dermatologist/python3-ml
:runner: OpenFaaS-cli template for python3 ML model deployments as microservices
https://github.com/dermatologist/python3-ml
fastai image-processing machine-learning opencv python3 pytorch
Last synced: about 1 month ago
JSON representation
:runner: OpenFaaS-cli template for python3 ML model deployments as microservices
- Host: GitHub
- URL: https://github.com/dermatologist/python3-ml
- Owner: dermatologist
- License: mit
- Created: 2019-08-15T22:02:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-03T02:12:39.000Z (over 1 year ago)
- Last Synced: 2024-11-04T08:42:13.431Z (2 months ago)
- Topics: fastai, image-processing, machine-learning, opencv, python3, pytorch
- Language: Python
- Homepage: https://nuchange.ca
- Size: 34.2 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# :fuelpump: [OpenFaaS](https://www.openfaas.com/) 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](https://nuchange.ca/2022/12/using-openfaas-containers-in-kubeflow.html))
- **conda-langroid** (Simple OpenFaaS wrapper for [langroid](https://github.com/langroid/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
```
Build, push, and deploy
```
faas-cli up -f .yml
```
Test the new function
```
echo -n content | faas-cli invoke
```
## Give us a star ⭐️
If you find these templates useful, give us a star. It helps others discover them.
## Contributors* [Bell Eapen](https://nuchange.ca) | [Contact](https://nuchange.ca/contact)