# "Kernel has died"

**URL:** <https://community.deeplearning.ai/t/kernel-has-died/472197>\
**Category:** Generative AI with Large Language Models\
**Tags:** lab-help\
**Created:** [October 18, 2023, 5:41am UTC](https://community.deeplearning.ai/t/kernel-has-died/472197 "2023-10-18T05:41:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navneet\_Kumar\_Mishra](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@Navneet\_Kumar\_Mishra](https://community.deeplearning.ai/u/Navneet_Kumar_Mishra)\
**Post date:** [October 18, 2023, 5:41am UTC](https://community.deeplearning.ai/t/kernel-has-died/472197/1 "2023-10-18T05:41:59Z")

</div>

In the labs while trying to train the models, I am getting error “the kernel has died” frequently and not able to proceed due to the same. Is anyone else getting the same error? Any suggestion on what to do?

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [October 18, 2023, 11:36am UTC](https://community.deeplearning.ai/t/kernel-has-died/472197/2 "2023-10-18T11:36:11Z")

</div>

Yes try filling up this form:

> **[GenAI with LLMs Lab Issue Report](https://docs.google.com/forms/d/e/1FAIpQLSfzegoOO0vitgyP4bu1-pf--gnfcSFoX_dGLPTgiciKmkrAnA/viewform)**
>
> Please fill out this form so we can resolve issues with your AWS student account.

---

<div class="post-metadata">

**Author:** ![leonardo.pabon](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/leonardo.pabon/32/67180_2.png) [@leonardo.pabon](https://community.deeplearning.ai/u/leonardo.pabon)\
**Post date:** [October 19, 2023, 2:23am UTC](https://community.deeplearning.ai/t/kernel-has-died/472197/3 "2023-10-19T02:23:55Z")

</div>

Please check if you selected the right size for your virtual machine. The recommended instance is **Ml.m5.2xlarge** , and it will create a **8 CPU 32 GB** VM.

---

<div class="post-metadata">

**Author:** ![Rob\_Kerr](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rob_kerr/32/67375_2.png) [@Rob\_Kerr](https://community.deeplearning.ai/u/Rob_Kerr)\
**Post date:** [October 19, 2023, 7:00pm UTC](https://community.deeplearning.ai/t/kernel-has-died/472197/4 "2023-10-19T19:00:52Z")

</div>

I had the same problem with Lab 2.

I was unable to select any kernel instance with \> 4GB RAM, so the train() functions would fail after exausting the 4GB RAM.

Failed to start kernelFailed to launch app [sagemaker-data-scienc-ml-t3-xlarge-926c947fdea9528b6cf58021c71b]. AccessDeniedException: User: arn:aws:sts::452237133870:assumed-role/sagemaker-studio-vpc-firewall-us-east-1-sagemaker-execution-role/SageMaker is not authorized to perform: sagemaker:CreateApp on resource: arn:aws:sagemaker:us-east-1:452237133870:app/d-8p6dilptvyvi/sagemaker-user-profile-us-east-1/kernelgateway/sagemaker-data-scienc-ml-t3-xlarge-926c947fdea9528b6cf58021c71b with an explicit deny in an identity-based policy (Context: RequestId: cc67018b-a996-462a-a88f-e20588b28da6, TimeStamp: 1697733015.3176513, Date: Thu Oct 19 16:30:15 2023)

---

<div class="post-metadata">

**Author:** ![leonardo.pabon](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/leonardo.pabon/32/67180_2.png) [@leonardo.pabon](https://community.deeplearning.ai/u/leonardo.pabon)\
**Post date:** [October 19, 2023, 7:14pm UTC](https://community.deeplearning.ai/t/kernel-has-died/472197/5 "2023-10-19T19:14:57Z")

</div>

You can only select the bigger instance with the exact name shown in the lab instructions. When I did it, the name was: **ml.m5.2xlarge**.

---

<div class="post-metadata">

**Author:** ![Rob\_Kerr](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rob_kerr/32/67375_2.png) [@Rob\_Kerr](https://community.deeplearning.ai/u/Rob_Kerr)\
**Post date:** [October 19, 2023, 7:26pm UTC](https://community.deeplearning.ai/t/kernel-has-died/472197/6 "2023-10-19T19:26:13Z")

</div>

Thanks, Leonardo. Must have misread that!
