2022-03-05 23:25:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# print configuration
|
|
|
|
echo CLEARML_SERVING_TASK_ID="$CLEARML_SERVING_TASK_ID"
|
|
|
|
echo CLEARML_TRITON_POLL_FREQ="$CLEARML_TRITON_POLL_FREQ"
|
|
|
|
echo CLEARML_TRITON_METRIC_FREQ="$CLEARML_TRITON_METRIC_FREQ"
|
|
|
|
echo CLEARML_TRITON_HELPER_ARGS="$CLEARML_TRITON_HELPER_ARGS"
|
2022-06-05 13:15:34 +00:00
|
|
|
echo CLEARML_EXTRA_PYTHON_PACKAGES="$CLEARML_EXTRA_PYTHON_PACKAGES"
|
2022-03-05 23:25:56 +00:00
|
|
|
|
|
|
|
# we should also have clearml-server configurations
|
|
|
|
|
2022-06-05 13:15:34 +00:00
|
|
|
if [ ! -z "$CLEARML_EXTRA_PYTHON_PACKAGES" ]
|
2022-03-05 23:25:56 +00:00
|
|
|
then
|
2022-06-05 13:15:34 +00:00
|
|
|
python3 -m pip install $CLEARML_EXTRA_PYTHON_PACKAGES
|
2022-03-05 23:25:56 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# start service
|
|
|
|
PYTHONPATH=$(pwd) python3 clearml_serving/engines/triton/triton_helper.py $CLEARML_TRITON_HELPER_ARGS $@
|