Description
The Python backend does not properly load the model.py file in the model directory when trailing slashes (/) are present in the --backend-directory option.
Triton Information
What version of Triton are you using?
r23.12
Are you using the Triton container or did you build it yourself?
container
However, the last argument should be `DEFAULT`.
4. Successfully run Triton server with the following command:
Please be aware that the trailing `/` has been removed from the `--backend-directory` option.
Description The Python backend does not properly load the
model.py
file in the model directory when trailing slashes (/
) are present in the--backend-directory
option.Triton Information What version of Triton are you using?
r23.12
Are you using the Triton container or did you build it yourself?
container
To Reproduce Follow the instructions in https://github.com/triton-inference-server/python_backend?tab=readme-ov-file#quick-start
git clone https://github.com/triton-inference-server/python_backend -b r23.12 cd python_backend mkdir -p models/add_sub/1/ cp examples/add_sub/model.py models/add_sub/1/model.py cp examples/add_sub/config.pbtxt models/add_sub/config.pbtxt
tritonserver --model-repository
pwd
/models --backend-directory /opt/tritonserver/backends/ --log-verbose 1I1222 03:27:07.578630 363 stub_launcher.cc:253] Starting Python backend stub: exec /opt/tritonserver/backends/python/triton_python_backend_stub /opt/tritonserver/python_backend/models/add_sub/1/model.py triton_python_backend_shm_region_1 1048576 1048576 363 /opt/tritonserver/backends/python 336 add_sub /opt/tritonserver/backends/python
tritonserver --model-repository
pwd
/models --backend-directory /opt/tritonserver/backends --log-verbose 1I1222 03:29:44.179683 387 stub_launcher.cc:253] Starting Python backend stub: exec /opt/tritonserver/backends/python/triton_python_backend_stub /opt/tritonserver/python_backend/models/add_sub/1/model.py triton_python_backend_shm_region_2 1048576 1048576 387 /opt/tritonserver/backends/python 336 add_sub_0_0 DEFAULT