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
To be able to use Python SDK to create an endpoint with the same name, you will have to delete the model, the endpoint_config, and the endpoint. SageMaker Python SDK delete_endpoint() only deletes the endpoint, which is why the issue is happening.
Minimal repro / logs
Please provide any logs and a bare minimum reproducible test case, as this will be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
Exact command to reproduce:
fromsagemaker.pytorchimportPyTorch# create estimatorestimator=PyTorch(entry_point='train.py',
role='SageMakerRole',
framework_version='0.4.0',
train_instance_count=1,
train_instance_type='ml.c5.xlarge',
source_dir='source',
hyperparameters={'epochs': 6,})
# fit estimatorestimator.fit('s3://sagemaker-sample-data-us-west-2/spark/mnist/train/')
# deploy estimator (except it doesn't deploy your new estimator if a previously used endpoint name is specified)estimator.deploy(instance_type='ml.c5.xlarge'', initial_instance_count=1)
# delete endpointestimator.delete_endpoint()
# deploy againestimator.deploy(instance_type='ml.c5.xlarge'', initial_instance_count=1, endpoint_name=estimator.last_training_job.name)
The text was updated successfully, but these errors were encountered:
Please fill out the form below.
System Information
Any Framework Container
2 and 3
1.12
Describe the problem
Issue found by @andrewcking here #402
In SageMaker Hosting, the process to create an endpoint requires to create an model, an endpoint configuration, and an endpoint.
SageMaker Python SDK abstract these 3 layers for you. These are the lines where this process happens
To be able to use Python SDK to create an endpoint with the same name, you will have to delete the model, the endpoint_config, and the endpoint. SageMaker Python SDK delete_endpoint() only deletes the endpoint, which is why the issue is happening.
Minimal repro / logs
Please provide any logs and a bare minimum reproducible test case, as this will be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
The text was updated successfully, but these errors were encountered: