amazon-sagemaker-examples
amazon-sagemaker-examples copied to clipboard
KernelRestarter: restarting kernel (1/5), keep random ports
Describe the bug After I trained my model I try to make predictions using my y_test data and eventually the notebook restarts.:
Here are the errors shown on CloudWatch:
2022-07-04T15:53:56.528+02:00Copy[I 13:53:56.428 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports | [I 13:53:56.428 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports  | 2022-07-04T15:53:56.529+02:00 | kernel e3a0e46b-c3c9-4ae1-b06c-fdf3f8e2d72d restarted  | 2022-07-04T15:53:56.529+02:00 | kernel e3a0e46b-c3c9-4ae1-b06c-fdf3f8e2d72d restarted  | 2022-07-04T15:53:56.529+02:00 | kernel e3a0e46b-c3c9-4ae1-b06c-fdf3f8e2d72d restarted  | 2022-07-04T15:53:56.529+02:00 | kernel e3a0e46b-c3c9-4ae1-b06c-fdf3f8e2d72d restarted  | 2022-07-04T15:53:56.529+02:00 | kernel e3a0e46b-c3c9-4ae1-b06c-fdf3f8e2d72d restarted  | 2022-07-04T15:53:56.529+02:00 | kernel e3a0e46b-c3c9-4ae1-b06c-fdf3f8e2d72d restarted  | 2022-07-04T15:54:01.095+02:00 | kernel e3a0e46b-c3c9-4ae1-b06c-fdf3f8e2d72d restarted
I am using instance type of ml.m5.12xlarge with a Volume Size of 10000GB EBS.
I also delete variables that I won't use anymore just in case and I still get my notebook restarted when trying to make predictions.
Different platform, not AWS, but I am having the exact same error. Any update on what fixed it for you? I've tried uninstalling and reinstalling Jupyter but that has not fixed it.