My setup is as:
GPU: RTX 2080 Ti
Cuda Version: 10.2
Driver: 450.57
cudnn: libcudnn8_8.0.2.39-1+cuda10.2_amd64
OS: Ubuntu 18.04
#Run the Triton Inference Server
docker pull nvcr.io/nvidia/tritonserver:20.07-v1-py3
docker run --gpus=2 --rm --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 -p8000:8000 -p8001:8001 -p8002:8002 -v/home/mgsaeed/wd500gb/github/triton-inference-server/docs/examples/model_repository:/models nvcr.io/nvidia/tritonserver:20.07-v1-py3 tritonserver --model-repository=/models
Quick Test: curl -v localhost:8000/v2/health/ready (not working)
Quick Test: curl localhost:8000/api/status (working)
#Inference via clientsdk
#docker pull nvcr.io/nvidia/tritonserver:20.07-py3-clientsdk (not working)
#docker run -it --rm --net=host nvcr.io/nvidia/tritonserver:20.07-py3-clientsdk (not working)
docker pull nvcr.io/nvidia/tensorrtserver:20.02-py3-clientsdk (worked)
docker run -it --rm --net=host nvcr.io/nvidia/tensorrtserver:20.02-py3-clientsdk (worked)
Tested using following examples (both examples worked from inside the container):
/workspace/install/bin/image_client -m resnet50_netdef -s INCEPTION /workspace/images/mug.jpg
python /workspace/install/python/image_client.py -m resnet50_netdef -s INCEPTION /workspace/images/mug.jpg
After this I have done manual build using source code from Releases · triton-inference-server/server · GitHub
wget https://github.com/NVIDIA/triton-inference-server/archive/v1.15.0.tar.gz
install all pre-requisites as per Docker.client file
mkdir builddir && cd builddir
cmake -DCMAKE_BUILD_TYPE=Release …/build
make -j8 trtis-clients
Successful build. However testing outside the container (manual build with cmake)
./builddir/trtis-clients/install/bin/image_client -m resnet50_netdef -s INCEPTION qa/images/mug.jpg (works)
but
python ./builddir/trtis-clients/install/python/image_client.py -m resnet50_netdef -s INCEPTION qa/images/mug.jpg (doesn’t work)
and throws error
Traceback (most recent call last):
File “./builddir/trtis-clients/install/python/image_client.py”, line 34, in
from tensorrtserver.api import *
ModuleNotFoundError: No module named ‘tensorrtserver’
Upon investigation I have noticed that there is tensorrt python module which is available under the container (nvcr.io/nvidia/tensorrtserver:20.02-py3-clientsdk) due to which it is working inside the container but this module is not available outside the container.
Could you please help me with best way to resolve this dependency? Thanks.
Regards,
Ghazni