Custom Handler Not starting due to Pydantic

I am seeing the following error, when my TorchServe container is starting up.

I was able to spin up the TorchServer locally and submit requests successfully.

However - i see the error below when trying to do it through docker.

Any ideas?

-----Starting handler -----

Backend worker process died.
Traceback (most recent call last):
  File "/home/venv/lib/python3.9/site-packages/ts/", line 253, in <module>
  File "/home/venv/lib/python3.9/site-packages/ts/", line 221, in run_server
  File "/home/venv/lib/python3.9/site-packages/ts/", line 184, in handle_connection
    service, result, code = self.load_model(msg)
  File "/home/venv/lib/python3.9/site-packages/ts/", line 131, in load_model
    service = model_loader.load(
  File "/home/venv/lib/python3.9/site-packages/ts/", line 135, in load
  File "/home/model-server/tmp/models/72c9eb6e81f24828911500b7883601b0/", line 55, in initialize
    self.ckpt_cfg = toMyConfig(self.ckpt_cfg)
  File "/home/model-server/tmp/models/72c9eb6e81f24828911500b7883601b0/", line 30, in toMyConfig
    cfg = MyConfig.parse_obj(cfg)  # to MyConfig
  File "pydantic/", line 526, in pydantic.main.BaseModel.parse_obj
  File "pydantic/", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for MyConfig
  field required (type=value_error.missing)