# Gen AI with LLMs Lab issue assignment 2

**URL:** <https://community.deeplearning.ai/t/gen-ai-with-llms-lab-issue-assignment-2/436609>\
**Category:** Generative AI with Large Language Models\
**Tags:** week-module-2\
**Created:** [September 4, 2023, 3:34pm UTC](https://community.deeplearning.ai/t/gen-ai-with-llms-lab-issue-assignment-2/436609 "2023-09-04T15:34:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![R\_Sampath\_kumar](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@R\_Sampath\_kumar](https://community.deeplearning.ai/u/R_Sampath_kumar)\
**Post date:** [September 4, 2023, 3:34pm UTC](https://community.deeplearning.ai/t/gen-ai-with-llms-lab-issue-assignment-2/436609/1 "2023-09-04T15:34:23Z")

</div>

In the assignment notebook it says make sure 8vCPU+32Gib is selected for kernel. 2vCPU+4Gib is the Kernel auto assigned by Sagemaker for me and I get permission error when I try changing it to something higher.  
I go on through the lab but when I try execute trainer.train() in section 2 Fine Tune the model with the preprocessed dataset I get an error after a minute or so that **The kernel for Lab\_2\_fine\_tune\_generative\_ai\_model.ipynb appears to have died. It will restart automatically.**  
After this I have gone back and attempted twice but get the same error.

 ![image](https://global.discourse-cdn.com/dlai/original/3X/0/8/0814b50d92eee1b4def1506a0cdd5a1c3aa58568.png)  
ml.t3.medium is default kernel and I am unable to select anything else

---

<div class="post-metadata">

**Author:** ![R\_Sampath\_kumar](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@R\_Sampath\_kumar](https://community.deeplearning.ai/u/R_Sampath_kumar)\
**Post date:** [September 4, 2023, 3:53pm UTC](https://community.deeplearning.ai/t/gen-ai-with-llms-lab-issue-assignment-2/436609/2 "2023-09-04T15:53:23Z")

</div>

I attempted to redo the lab again by relaunching amazon sagemaker after the “kernel died” error mentioned above but got the error below.

File Save Error for Lab\_2\_fine\_tune\_generative\_ai\_model.ipynb

Invalid response: 403 Forbidden

---

<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:** [September 7, 2023, 6:33am UTC](https://community.deeplearning.ai/t/gen-ai-with-llms-lab-issue-assignment-2/436609/4 "2023-09-07T06:33:53Z")

</div>

Hi. It seems you’re using a different instance type. Please check the screenshot in the notebook and make sure you’re selecting the one specified there. It’s most likely `ml.m5.2xlarge` but please double check. Almost all errors like this stems from that. Hope this helps!

---

<div class="post-metadata">

**Author:** ![R\_Sampath\_kumar](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@R\_Sampath\_kumar](https://community.deeplearning.ai/u/R_Sampath_kumar)\
**Post date:** [September 8, 2023, 1:00pm UTC](https://community.deeplearning.ai/t/gen-ai-with-llms-lab-issue-assignment-2/436609/5 "2023-09-08T13:00:14Z")

</div>

When I open the lab notebook I get the default instance type as shown here  
Instance type: ml.t3.medium 2vCPU+4GiB.  
When I try to change it the option ml.m5.2xlarge you have suggested is not even available for selection as you can see from the screen shot above. When I try to select anything among the available choices I get this error(Failed to start Kernel. Access denied

 ![image](https://global.discourse-cdn.com/dlai/original/3X/a/3/a39a2593d82c54921a9455c1c50ae3480f9a0e62.png)

---

<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:** [September 8, 2023, 2:26pm UTC](https://community.deeplearning.ai/t/gen-ai-with-llms-lab-issue-assignment-2/436609/6 "2023-09-08T14:26:51Z")

</div>

Hi. `ml.m5.2xlarge` is below the “All Instances” section in your screenshot above. It is further down. It is not under the “Fast Launch” section. I just tested it yesterday and was able to find it.

---

<div class="post-metadata">

**Author:** ![R\_Sampath\_kumar](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@R\_Sampath\_kumar](https://community.deeplearning.ai/u/R_Sampath_kumar)\
**Post date:** [September 9, 2023, 3:19am UTC](https://community.deeplearning.ai/t/gen-ai-with-llms-lab-issue-assignment-2/436609/7 "2023-09-09T03:19:55Z")

</div>

Chris favila Thanks very very much. Your confident assertion made me look even more carefully at the button to click for getting all the selections.

---

<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:** [September 9, 2023, 12:41pm UTC](https://community.deeplearning.ai/t/gen-ai-with-llms-lab-issue-assignment-2/436609/8 "2023-09-09T12:41:55Z")

</div>

Glad to help!
