Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PREDICTIVE_UNIT_PARAMETERS: not able to set them up correctly #170

Closed
smolina74 opened this issue Jun 22, 2018 · 1 comment
Closed

PREDICTIVE_UNIT_PARAMETERS: not able to set them up correctly #170

smolina74 opened this issue Jun 22, 2018 · 1 comment

Comments

@smolina74
Copy link

Hi,

I'm trying to pass extra parameters to my model using PREDICTIVE_UNIT_PARAMETER set in the s2i environment file. Currently my file looks like the one below

MODEL_NAME=SkMnist
API_TYPE=REST
SERVICE_TYPE=MODEL
PERSISTENCE=0
PREDICTIVE_UNIT_PARAMETERS=[{
"a":2,
"b":3
}]

but after deploying, when checking for PREDICTIVE_UNIT_PARAMETERS env variable I'm seeing just an empty array ([]).

Am I setting this variable in a proper way? (according to the documentation it is a json string.

thanks,
Santiago

@smolina74 smolina74 changed the title PREDICTIVE_UNIT_PARAMETERS PREDICTIVE_UNIT_PARAMETERS: not able to set them up correctly Jun 22, 2018
@ukclivecox
Copy link
Contributor

Hi,

You should add these to your SeldonDeployment resource, see here. An example k8s json that shows this can be seen in a random ab test. You can also add whatever env variables you want to the k8s PodTemplateSpec in your componentSpec field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants