Error registering pytorch workflow

DominiK_DK: <p>Hi.<br>
I would like to ask for hint/help with my example for torchserve workflow i try to deploy.<br>
I created, archived(torch-archive) 3 models which run as single models correctly.<br>
I did same for workflow archive to create *.war file to be deployed.</p>
<p>I started torchserve server with:<br>
<em>serve$ torchserve --start --model-store model_store/ --models all --workflow-store workflow_store/ --ncs --ts-config config.properties</em><br>
Server started succesfully, logs are OK without any errors.</p>
<p>I checked the health status of server, it is running correctly.<br>
Models check is also correct:<br>
<em>$ curl “<a href="http://localhost:8081/models" rel="noopener nofollow ugc">http://localhost:8081/models</a>”</em><br>
<em>{</em><br>
“models”: [<br>
{<br>
“modelName”: “RNN_HR_model”,<br>
“modelUrl”: “RNN_HR_model.mar”<br>
},<br>
{<br>
“modelName”: “RNN_SAT_model”,<br>
“modelUrl”: “RNN_SAT_model.mar”<br>
},<br>
{<br>
“modelName”: “RNN_TMP_model”,<br>
“modelUrl”: “RNN_TMP_model.mar”<br>
}<br>
]<br>
<em>}</em></p>
<p>But when i try to register(deploy) workflow i get following:<br>
<em>$ curl -X POST  “<a href="http://localhost:8081/workflows?url=vital_signs.war" rel="noopener nofollow ugc">http://localhost:8081/workflows?url=vital_signs.war</a>”</em><br>
{<br>
“code”: 500,<br>
“type”: “WorkflowException”,<br>
“message”: “Workflow vital_signs has failed to register. Failures: [Workflow Node vital_signs__vital_sign_hr failed to register. Details: Model not found at: handler_RNN_HR.mar, Failed to start workers for model vital_signs__vital_sign_tmp version: 1.0, Failed to start workers for model vital_signs__vital_sign_sat version: 1.0]”*<br>
}</p>
<p>I checked config and *.yaml workflow file definition, eyrything i did according the documentation and example from pytorch trochserve pages.<br>
Any idea?<br>
I tried it on Pytorch 1.13 + Torchserve 0.6 as well as on Pytorch 2.0 + Torchserve 0.7 and i get same results.<br>
Any idea what am I doing wrong?<br>
Thank you very much</p>
<p>EDIT: This is my workflow *.yaml file definition (i tried different URL local path definition, but same result)</p>
<p><em>models:</em><br>
min-workers: 1<br>
max-workers: 4<br>
batch-size: 4<br>
max-batch-delay: 100<br>
retry-attempts: 5<br>
timeout-ms: 300000</p>
<pre><code>vital_sign_hr:
  url: ../model_store/RNN_HR_model.mar

vital_sign_tmp:
  url: ../model_store/RNN_TMP_model.mar

vital_sign_sat:
  url: ../model_store/RNN_SAT_model.mar
</code></pre>
<p>dag:<br>
pre_processing: [vital_sign_hr, vital_sign_tmp, vital_sign_sat]<br>
vital_sign_hr: [aggregate_func]<br>
vital_sign_tmp: [aggregate_func]<br>
vital_sign_sat: [aggregate_func]</p>

DominiK_DK: <p>Hi everybody.</p>
<p>I’we got it. Chat GPT gave me hint, my yaml file should look like this:</p>
<p>models:<br>
min-workers: 1<br>
max-workers: 4<br>
batch-size: 4<br>
max-batch-delay: 100<br>
retry-attempts: 5<br>
timeout-ms: 300000</p>
<p>vital_sign_hr:<br>
url: RNN_HR_model.mar</p>
<p>vital_sign_tmp:<br>
url: RNN_TMP_model.mar</p>
<p>vital_sign_sat:<br>
url: RNN_SAT_model.mar</p>
<p>dag:<br>
pre_processing: [vital_sign_hr, vital_sign_tmp, vital_sign_sat]<br>
vital_sign_hr: [aggregate_func]<br>
vital_sign_tmp: [aggregate_func]<br>
vital_sign_sat: [aggregate_func]</p>