You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to deploy the multi model endpoint, it is not being deployed due to internal error.
To reproduce
print('Waiting for {} endpoint to be in service...'.format(endpoint_name))
waiter = sm_client.get_waiter('endpoint_in_service')
waiter.wait(EndpointName=endpoint_name)
Expected behavior
I expected the endpoint to be deployed and available for service .
Screenshots or logs
Additional context*
Add any other context about the problem here.
Thanks for reaching out! You are correct, if building an BYO image with SageMaker Scikit-learn image (SKLearn) as the base, the inference container expects SAGEMAKER_PROGRAM and SAGEMAKER_SUBMIT_DIRECTORY environment variables to be set explicitly while creating the model object. Creating an SKLearn estimator and deploying the model using the SageMaker Python SDK as seen in the example below sets these env variables automatically without having to pass them in explicitly.
AWS Managed Scikit-learn now provides native support for launching multi-model endpoints. Please see the updated example for usage.
Activity
preshen-goobiah commentedon Feb 19, 2020
Receiving the same error when trying to deploy multiple models locally.
I used this example
UPDATE: I was able to deploy locally by including the require
envvariables for the modeldlragha commentedon Dec 12, 2020
Thanks for reaching out! You are correct, if building an BYO image with SageMaker Scikit-learn image (SKLearn) as the base, the inference container expects
SAGEMAKER_PROGRAMandSAGEMAKER_SUBMIT_DIRECTORYenvironment variables to be set explicitly while creating the model object. Creating an SKLearn estimator and deploying the model using the SageMaker Python SDK as seen in the example below sets these env variables automatically without having to pass them in explicitly.AWS Managed Scikit-learn now provides native support for launching multi-model endpoints. Please see the updated example for usage.