Home

Awesome

PyTorch Serverless

FastAI PyTorch Serverless API (w/ AWS Lambda)

Setup

Configuration

Invoke Local

Run function locally with params defined in tests/predict_event.json

AWS_PROFILE=yourProfile sls invoke local -f predict -p tests/predict_event.json

Deployment

Make sure Docker is running

Deploy to AWS Lambda

sls deploy -v

Endpoints

GET /predict

Return prediction for a single image.

Logs

Tail logs to console

sls logs -f predict -t