-
Notifications
You must be signed in to change notification settings - Fork 10
Description
While running the deploy_torchserve.ipynb without editing anything, I encountered an error at block 11.

Error:
ModelError Traceback (most recent call last)
in
5 payload = payload
6
----> 7 response = predictor.predict(data=payload)
8 print(*json.loads(response), sep = '\n')
~/anaconda3/envs/python3/lib/python3.6/site-packages/sagemaker/predictor.py in predict(self, data, initial_args, target_model, target_variant, inference_id)
134 data, initial_args, target_model, target_variant, inference_id
135 )
--> 136 response = self.sagemaker_session.sagemaker_runtime_client.invoke_endpoint(**request_args)
137 return self._handle_response(response)
138
~/anaconda3/envs/python3/lib/python3.6/site-packages/botocore/client.py in _api_call(self, *args, **kwargs)
355 "%s() only accepts keyword arguments." % py_operation_name)
356 # The "self" in this scope is referring to the BaseClient.
--> 357 return self._make_api_call(operation_name, kwargs)
358
359 _api_call.name = str(py_operation_name)
~/anaconda3/envs/python3/lib/python3.6/site-packages/botocore/client.py in _make_api_call(self, operation_name, api_params)
674 error_code = parsed_response.get("Error", {}).get("Code")
675 error_class = self.exceptions.from_code(error_code)
--> 676 raise error_class(parsed_response, operation_name)
677 else:
678 return parsed_response
ModelError: An error occurred (ModelError) when calling the InvokeEndpoint operation: Received server error (0) from model with message "Your invocation timed out while waiting for a response from container model. Review the latency metrics for each container in Amazon CloudWatch, resolve the issue, and try again.". See https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#logEventViewer:group=/aws/sagemaker/Endpoints/torchserve-endpoint-2021-03-22-10-34-32 in account xxxxxxxxxxx for more information.