-
Notifications
You must be signed in to change notification settings - Fork 5
/
start_gpu.sh
executable file
·25 lines (20 loc) · 958 Bytes
/
start_gpu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
source triton-version.sh
docker network create gat_test_network
docker run -d --name gat_test_server \
--gpus all \
--network gat_test_network \
--shm-size=1g --ulimit memlock=-1 \
--ulimit stack=67108864 \
-p8000:8000 -p8001:8001 -p8002:8002 \
-v`pwd`/artifacts:/inputs \
-e LD_LIBRARY_PATH="/opt/tritonserver/lib/pytorch:/usr/local/cuda/compat/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64" \
-e LD_PRELOAD="/inputs/lib/libtorchscatter.so /inputs/lib/libtorchsparse.so" \
nvcr.io/nvidia/tritonserver:${TRITON_VERSION}-geometric \
tritonserver --model-repository=/inputs/models --log-verbose=1 --log-error=1 --log-info=1
sleep 2
docker run --name gat_test_client \
--network gat_test_network \
-v`pwd`/client:/inputs \
nvcr.io/nvidia/tritonserver:${TRITON_VERSION}-clientsdk \
python /inputs/client.py -m gat_test -u gat_test_server:8001