Triton inference server serving TorchScript model
I am trying to serve a TorchScript model with the triton (tensorRT) inference server. But every time I start the server it throws the following error:
PytorchStreamReader failed reading zip archive: failed finding central directory

My folder structure is :
&lt;model_repository&gt; 
  &lt;model_name&gt;
   config.pbtxt
   &lt;1&gt;
    &lt;model.pt&gt;

My config.pbtxt file is :
name: &quot;model&quot;
platform: &quot;pytorch_libtorch&quot;
max_batch_size: 1

input[
{
name: &quot;INPUT__0&quot;
data_type:  TYPE_FP32
dims: [-1,3,-1,-1]
}
]

output:[
{
name: &quot;OUTPUT__0&quot;
data_type:  TYPE_FP32
dims: [-1,1,-1,-1]
}
]


I found the solution. It was a silly mistake on my part. The .pt torchscript file was not loaded properly.
