Last night I received this error twice when invoking a serverless sagemaker endpoint
serverless ClientError: An error occurred (ModelNotReadyException) when calling the InvokeEndpoint operation (reached max retries: 4): Model for endpoint electra-nlp-2022-06-14-18-32-00-249 variant AllTraffic is not ready for inference yet.
The third time, and every time after I invoked the endpoint it worked. Does anyone know what could have caused this error. Although it works now, I can't be having random ModelNotReadyException's when the sagemaker endpoint is invoked.