The example presents a simple Add-Sub model which perform an addition and subtraction operations on passed input data and scale them using parameters and http headers send to model by client.
Example consists of following scripts:
install.sh
- install additional dependenciesserver.py
- start the model with Triton Inference Serverclient.py
- execute HTTP/gRPC requests to the deployed model
The step-by-step guide:
- Install PyTriton following the installation instruction
- Install the additional packages using
install.sh
./install.sh
- In current terminal start the model on Triton using
server.py
./server.py
- Open new terminal tab (ex.
Ctrl + T
on Ubuntu) or window - Go to the example directory
- Run the
client.py
to perform queries on model:
./client.py