shbfy / ML-python-pytorch-lstm-gpu-service

Jenkins X quick start for training and deploying LSTM Neural Network Classification using the PyTorch library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ML-python-pytorch-lstm-gpu-service

Quickstart project for executing an IMDB classifier using the PyTorch framework on a GPU.

Running pip install requirements.txt and then python app.py will start the app on localhost where the user can send POST requests to perform inference.

API

Method Pattern Handler Action
POST /imdb IMDB Classify a given movie review for positive and negative sentiment

Local testing

Execute a prediction using a POST request.

curl -X "POST" "http://localhost:8080/imdb \ -H "Content-Type: text/plain \ -d "Awesome movie!"

About

Jenkins X quick start for training and deploying LSTM Neural Network Classification using the PyTorch library

License:Apache License 2.0


Languages

Language:Python 100.0%