# Kernel restarting when training

**URL:** <https://community.deeplearning.ai/t/kernel-restarting-when-training/427908>\
**Category:** Generative AI with Large Language Models\
**Tags:** week-module-2\
**Created:** [August 25, 2023, 1:33pm UTC](https://community.deeplearning.ai/t/kernel-restarting-when-training/427908 "2023-08-25T13:33:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![carloronsi](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@carloronsi](https://community.deeplearning.ai/u/carloronsi)\
**Post date:** [August 25, 2023, 1:33pm UTC](https://community.deeplearning.ai/t/kernel-restarting-when-training/427908/1 "2023-08-25T13:33:27Z")

</div>

Hello, I keep getting this Kernel restarting error during the training phase:  
 ![immagine](https://global.discourse-cdn.com/dlai/original/3X/0/e/0e95e9de56184da80482de48645e38eeec1c4b61.png)  
Does anyone know hot wo solve?  
Thanks

---

<div class="post-metadata">

**Author:** ![Reimelt](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Reimelt](https://community.deeplearning.ai/u/Reimelt)\
**Post date:** [August 25, 2023, 2:07pm UTC](https://community.deeplearning.ai/t/kernel-restarting-when-training/427908/2 "2023-08-25T14:07:30Z")

</div>

Hi Carlo, I get the same error. Tried different kernel settings, but no success. Now I try to restart the Studio. Update: I can’t restart the Studio, I always get his message: AWS account deactivated at 2023-08-25T06:53:17-07:00

---

<div class="post-metadata">

**Author:** ![Marina\_Stocchi](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@Marina\_Stocchi](https://community.deeplearning.ai/u/Marina_Stocchi)\
**Post date:** [August 25, 2023, 10:35pm UTC](https://community.deeplearning.ai/t/kernel-restarting-when-training/427908/3 "2023-08-25T22:35:51Z")

</div>

Hello, I received the same error during my Lab 2. Tried everything possible, with no success.

---

<div class="post-metadata">

**Author:** ![Reimelt](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Reimelt](https://community.deeplearning.ai/u/Reimelt)\
**Post date:** [August 26, 2023, 2:06pm UTC](https://community.deeplearning.ai/t/kernel-restarting-when-training/427908/4 "2023-08-26T14:06:12Z")

</div>

I found out you can fill our a form to initiate a Reactivation of your AWS account. Today I was able to restart AWS, select the right VM and finish Lab 2. I think I found this Form in the FAQ section of the course here on the deeplerning.ai website.

---

<div class="post-metadata">

**Author:** ![Reimelt](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Reimelt](https://community.deeplearning.ai/u/Reimelt)\
**Post date:** [August 26, 2023, 2:08pm UTC](https://community.deeplearning.ai/t/kernel-restarting-when-training/427908/5 "2023-08-26T14:08:03Z")

</div>

Here is the Link to the form: [GenAI with LLMs Lab Issue Report](https://docs.google.com/forms/d/e/1FAIpQLSfzegoOO0vitgyP4bu1-pf--gnfcSFoX_dGLPTgiciKmkrAnA/viewform)

---

<div class="post-metadata">

**Author:** ![chris.favila](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/chris.favila/32/126338_2.png) [@chris.favila](https://community.deeplearning.ai/u/chris.favila)\
**Post date:** [August 28, 2023, 7:45am UTC](https://community.deeplearning.ai/t/kernel-restarting-when-training/427908/6 "2023-08-28T07:45:35Z")

</div>

Hi Reimelt. You should be able to access the lab now. Thank you!

---

<div class="post-metadata">

**Author:** ![carloronsi](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@carloronsi](https://community.deeplearning.ai/u/carloronsi)\
**Post date:** [August 28, 2023, 8:46am UTC](https://community.deeplearning.ai/t/kernel-restarting-when-training/427908/7 "2023-08-28T08:46:58Z")

</div>

Thank you for the replies. Still unable to continue with this Lab. Today the Kernel is not starting (“Starting notebook kernel…” status forever).

---

<div class="post-metadata">

**Author:** ![chris.favila](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/chris.favila/32/126338_2.png) [@chris.favila](https://community.deeplearning.ai/u/chris.favila)\
**Post date:** [August 28, 2023, 9:24am UTC](https://community.deeplearning.ai/t/kernel-restarting-when-training/427908/8 "2023-08-28T09:24:19Z")

</div>

Hi Carlo. That might be because you chose a different instance type from the one expected by the lab. Please see that you’re selecting the same one as shown in the screenshot in the notebook. It’s usually `ml.m5.2xlarge` for this course, but please double-check in the screenshot. In case you have trouble getting into the lab because of too many retries, please fill out [this form](https://forms.gle/pELSiqxCVevBW3uP9), as also mentioned above. Just take note that for retries, it will take around 20 minutes before the AWS button turns green. Hope this helps!

---

<div class="post-metadata">

**Author:** ![carloronsi](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@carloronsi](https://community.deeplearning.ai/u/carloronsi)\
**Post date:** [August 28, 2023, 10:11am UTC](https://community.deeplearning.ai/t/kernel-restarting-when-training/427908/9 "2023-08-28T10:11:43Z")

</div>

Thank you for the solution, the issue is resolved and I was able to go through the lab.
