Replies: 1 comment
-
Have you managed to find the solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use PytorchModel to deploy a trained model outside Sagemaker to an endpoint. This is my code
pytorch_model = PyTorchModel(model_data='s3://my-bucket/model.tar.gz', role=role,source_dir='model/code',entry_point='inference.py',framework_version='1.3.1',py_version='py3')
pytorch_model.deploy(instance_type='ml.t2.medium', initial_instance_count=1,endpoint_name='test')
I had created one successfully but figured I wanted additional packages.. So I added the requirements.txt under code, deleted the endpoint, endpoint config and tried to create the endpoint again with requirements.txt But its throwing me the below error
ERROR - %s already exists.
Please specify --force/-f option to overwrite the model archive output file.
Beta Was this translation helpful? Give feedback.
All reactions