# Unexpected Error executing Graded Assignment - RAG

**URL:** <https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101>\
**Category:** Retrieval Augmented Generation\
**Tags:** week-module-4, dl-ai-learning-platform\
**Created:** [March 9, 2026, 4:23pm UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101 "2026-03-09T16:23:45Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimmartinezb](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kimmartinezb](https://community.deeplearning.ai/u/kimmartinezb)\
**Post date:** [March 9, 2026, 4:23pm UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/1 "2026-03-09T16:23:45Z")

</div>

In Retrieval Augmented Generation (RAG) Course, I’m stuck in Module 4 - Developing a RAG-Based Chatbot graded assignment.

I get the error when I run the code.  
InvalidRequestError: Error code: 400 - {“message”: “Unable to access non-serverless model meta-llama/Llama-3.2-3B-Instruct-Turbo. Please visit [Together AI | The AI Native Cloud](https://api.together.ai/models/meta-llama/Llama-3.2-3B-Instruct-Turbo) to create and start a new dedicated endpoint for the model.”, “type\_”: “invalid\_request\_error”, “code”: “model\_not\_available”}

Do you know how to fix it?

Regards,

Kim

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/178017_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [March 9, 2026, 4:44pm UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/2 "2026-03-09T16:44:10Z")

</div>

staff has been reported about this issue, please wait for update from staff or for my response when staff updates me after resolving the issue.

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/178017_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [March 9, 2026, 6:18pm UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/3 "2026-03-09T18:18:07Z")

</div>

hi @kimmartinezb

staff updated information

together.ai has deprecated a lot of models in the past days resulting in concurrent issues with labs of RAG courses.

Lab assignment 3 to 5 and all ungraded labs are updated now.

You need to Restore original version, to get the updated notebook.

I also would recommend to first delete the old file, and restore original version, so any cache issue is not encountered when running codes again.

Courses, labs are created with multiple channels, so labs gets affected when any changes.made at one end and can take multiple attempts to resolve issue.

Let us know if you still continue to have issue

Regards

Dr. Deepti

---

<div class="post-metadata">

**Author:** ![kimmartinezb](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kimmartinezb](https://community.deeplearning.ai/u/kimmartinezb)\
**Post date:** [March 10, 2026, 11:42am UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/4 "2026-03-10T11:42:48Z")

</div>

Hi @Deepti_Prasad

I’ve been able to do part of the graded assignment, but now I get a similar error in Module 5.

I’ve capturated the error.

```auto
ERROR REAL: InvalidRequestError Error code: 400 - {"message": "Unable to access non-serverless model meta-llama/Llama-3.2-3B-Instruct-Turbo. Please visit https://api.together.ai/models/meta-llama/Llama-3.2-3B-Instruct-Turbo to create and start a new dedicated endpoint for the model.", "type_": "invalid_request_error", "code": "model_not_available"}

```

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/178017_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [March 10, 2026, 12:25pm UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/5 "2026-03-10T12:25:39Z")

</div>

did you by any chance try to re-run a cell after running down codes, I noticed even I experienced this once when I ran down a cell till exercise and went back running the import cell, caused me the same error you got.

One another learner encounter an oserror, which mentioned information, that import cell should be only run down once and running down twice will kill the kernel. So I had clear out the kernel output first, and run the cells from beginning individually to resolve this issue.

Also please post screenshot of the codes which caused this error, of you get again this error.

Please try this and let me know.

Regards

Dr. Deepti

---

<div class="post-metadata">

**Author:** ![kimmartinezb](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kimmartinezb](https://community.deeplearning.ai/u/kimmartinezb)\
**Post date:** [March 10, 2026, 1:59pm UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/6 "2026-03-10T13:59:42Z")

</div>

Hi @Deepti_Prasad

I’ve only run the import cell once.

I’ve killed the kernel and run the cells from the beginning, and it still fails.

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/178017_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [March 10, 2026, 2:14pm UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/7 "2026-03-10T14:14:49Z")

</div>

okay i will inform staff.

did the same import codes threw this error ?

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/178017_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [March 11, 2026, 2:17am UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/8 "2026-03-11T02:17:51Z")

</div>

I checked myself doing the assignment, and didn’t encounter any error for lab assignment after i restored the original version again.

So kindly either try again Restore original version, or post screenshot of which part of assignment you encountered error with error also in the screenshot.

I was informed by other learners and staff, that labs are running successfully now.

---

<div class="post-metadata">

**Author:** ![kimmartinezb](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kimmartinezb](https://community.deeplearning.ai/u/kimmartinezb)\
**Post date:** [March 11, 2026, 7:11am UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/9 "2026-03-11T07:11:43Z")

</div>

Hi @Deepti_Prasad ,

I’ve done again the lab assignment and it fails in the same place:

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

I’ve added a print of the error:

 ![image](https://global.discourse-cdn.com/dlai/original/3X/8/2/82b8d8b37b95062d24029f15de471877f2b4c49d.png)

My change is simple:

 ![image](https://global.discourse-cdn.com/dlai/original/3X/6/7/67604129c29bf9031f2bd18ae0f5ce3fc09b99f8.png)

Thanks for your support,

Kim

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/178017_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [March 11, 2026, 8:31am UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/10 "2026-03-11T08:31:53Z")

</div>

@kimmartinezb

thank you for the images.

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/178017_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [March 11, 2026, 9:44am UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/12 "2026-03-11T09:44:43Z")

</div>

First of all @kimmartinezb

Your issue is not from lab 4 but 🧫 5.

we were till now looking in lab 4 as you chose module 4 in the category 🤦🏻‍♀️

Now seeing that failed test and your prompt code.

I first want to see with a screenshot how are you getting a new updated notebook, please post a screenshot of your steps.

Next please improve your prompt as it is more about deciding related to a task. Giving a prompt instruction '“Give me a look” is too vague.

Next check if you are not again pasting your old code solutions to the updated notebook, avoid doing that.

Please let me know of above questions I asked.

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/178017_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [March 11, 2026, 10:18am UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/13 "2026-03-11T10:18:07Z")

</div>

when I was trying to recreate your error i encountered error before the section you encountered this error

screenshot

 ![Screenshot_20260311_154432_Chrome](https://global.discourse-cdn.com/dlai/original/3X/9/f/9fcc3cb471273ae12fe8320f0680e16b0ad298e8.jpeg)

 ![Screenshot_20260311_154509_Chrome](https://global.discourse-cdn.com/dlai/original/3X/6/d/6d5db8cc48e36e8d0bacf7081cb5717623928fcb.jpeg)

 ![Screenshot_20260311_154458_Chrome](https://global.discourse-cdn.com/dlai/original/3X/8/d/8d5b267ccbbf9810ab9ba24555377c5c15876f3e.jpeg)

---

<div class="post-metadata">

**Author:** ![kimmartinezb](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kimmartinezb](https://community.deeplearning.ai/u/kimmartinezb)\
**Post date:** [March 11, 2026, 10:29am UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/14 "2026-03-11T10:29:27Z")

</div>

Hi Deepti, sorry, I think I mentioned that I was able to run lab4, and that now, I’ve a similar error in lab 5 in module 5.

> [@Deepti\_Prasad](#):
>
> First of all @kimmartinezb
> 
> Your issue is not from lab 4 but 🧫 5.
> 
> we were till now looking in lab 4 as you chose module 4 in the category 🤦🏻‍♀️
> 
> Now seeing that failed test and your prompt code.
> 
> I first want to see with a screenshot how are you getting a new updated notebook, please post a screenshot of your steps.
> 
> Next please improve your prompt as it is more about deciding related to a task. Giving a prompt instruction '“Give me a look” is too vague.
> 
> Next check if you are not again pasting your old code solutions to the updated notebook, avoid doing that.
> 
> Please let me know of above questions I asked.

Hi @Deepti_Prasad

Sorry, I thought I already said the lab4 was fixed but now the error is the same in lab 5 (Module 5).

How can I update the lab?

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/178017_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [March 11, 2026, 11:17am UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/15 "2026-03-11T11:17:00Z")

</div>

![Screenshot_20260311_164257_Chrome](https://global.discourse-cdn.com/dlai/original/3X/1/f/1f107eaf381bbc40eca5dc2a681d2d41b66eb681.jpeg)

---

<div class="post-metadata">

**Author:** ![kimmartinezb](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kimmartinezb](https://community.deeplearning.ai/u/kimmartinezb)\
**Post date:** [March 11, 2026, 11:58am UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/16 "2026-03-11T11:58:16Z")

</div>

I’ve restored the original, it’s failing before.

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

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/178017_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [March 11, 2026, 2:35pm UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/17 "2026-03-11T14:35:50Z")

</div>

check your code @kimmartinezb

---

<div class="post-metadata">

**Author:** ![kimmartinezb](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kimmartinezb](https://community.deeplearning.ai/u/kimmartinezb)\
**Post date:** [March 12, 2026, 7:54am UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/18 "2026-03-12T07:54:43Z")

</div>

Hi @Deepti_Prasad ,

Finally it worked, and I passed the course.

Thanks for your support,

Kim

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/178017_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [March 12, 2026, 8:07am UTC](https://community.deeplearning.ai/t/unexpected-error-executing-graded-assignment-rag/890101/19 "2026-03-12T08:07:50Z")

</div>

Closed on March 12, 2026, 8:07am UTC


