Repository that contains a Model Buyer participant in Federated Learning framework.
A step by step series that tell you how to get a development env running
git clone git@github.com:DeltaML/model-buyer.git
cd model-buyer/
python3 -m venv venv
source venv/bin/activate
pip install -r model_buyer/requirements.txt
gunicorn -b "0.0.0.0:9090" --chdir model_buyer/ wsgi:app --preload
Script Path: .../model_buyer/virtualenv/bin/gunicorn
Parameters: -b "0.0.0.0:9090" wsgi:app --preload
Working directory: ../model_buyer
docker image build --tag deltaml/model-buyer:latest .
docker run --rm -it -p 9090:9090 deltaml/model-buyer
curl -v -H "Content-Type: application/json" --data @model_buyer/examples/model.json http://localhost:9090/models
curl -v -H "Content-Type: application/json" -X GET "http://localhost:9090/models/<model_id>"
curl -v -H "Content-Type: application/json" -X GET "http://localhost:9090/models"
curl -v -H "Content-Type: application/json" -X POST "http://localhost:9090/prediction" --data '{"model_id": "<MODEL_ID>"}'
curl -v -H "Content-Type: application/json" -X GET "http://localhost:9090/prediction/<prediction_id>"
curl -v -H "Content-Type: application/json" -X GET "http://localhost:9090/prediction"
- 0.0.1
- Work in progress