How to pass init parameters to Predictor class via seldon-core-microservice?

71 Views Asked by At

Is it possible to pass init parameters to Predictor class through seldon-core-microservice?

There is a --parameters arg available for seldon-core-microservice but there is no clear documentation on the format in which parameters should be passed.

The below link discuss same issue:

They point to following github code links:

Unittest are also not created for good examples:

1

There are 1 best solutions below

0
On

I finally found the format that is working.

$ seldon-core-microservice InferenceModel --service-type MODEL --debug --parameters '[{"name":"model_path", "value":"value", "type": "STRING"}]'

Value for type should be one of these: INT, FLOAT, DOUBLE, STRING, BOOL reference:

https://github.com/SeldonIO/seldon-core/blob/2f14dbdce57583995d818cc25772adf1c475c4de/python/seldon_core/microservice.py#LL109C4-L109C4