# Facing issue in loading huggingface dataset in LAB 2

**URL:** <https://community.deeplearning.ai/t/facing-issue-in-loading-huggingface-dataset-in-lab-2/875405>\
**Category:** Generative AI with Large Language Models\
**Tags:** lab-help\
**Created:** [August 18, 2025, 7:19pm UTC](https://community.deeplearning.ai/t/facing-issue-in-loading-huggingface-dataset-in-lab-2/875405 "2025-08-18T19:19:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mudit1712](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@mudit1712](https://community.deeplearning.ai/u/mudit1712)\
**Post date:** [August 18, 2025, 7:19pm UTC](https://community.deeplearning.ai/t/facing-issue-in-loading-huggingface-dataset-in-lab-2/875405/1 "2025-08-18T19:19:38Z")

</div>

I am facing error while loading hugging face dataset in lab 2

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

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [August 18, 2025, 7:20pm UTC](https://community.deeplearning.ai/t/facing-issue-in-loading-huggingface-dataset-in-lab-2/875405/2 "2025-08-18T19:20:28Z")

</div>

When you opened the notebook, did you run all of the cells starting from the top? That’s where the assignment assets are imported.

---

<div class="post-metadata">

**Author:** ![mudit1712](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@mudit1712](https://community.deeplearning.ai/u/mudit1712)\
**Post date:** [August 18, 2025, 7:37pm UTC](https://community.deeplearning.ai/t/facing-issue-in-loading-huggingface-dataset-in-lab-2/875405/3 "2025-08-18T19:37:45Z")

</div>

Yes I did run all the code prior to thi

---

<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:** [August 19, 2025, 5:50am UTC](https://community.deeplearning.ai/t/facing-issue-in-loading-huggingface-dataset-in-lab-2/875405/4 "2025-08-19T05:50:44Z")

</div>

![Screenshot 2025-08-19 at 9.48.44 AM](https://global.discourse-cdn.com/dlai/original/3X/c/f/cf2a12c45b98441037c1b4ab8b47e88aa770f1dd.png)

This is the first cell that you need to run, which includes load\_dataset. Perhaps if you have restarted the kernel further down, you need to rerun all cells from the top again (excluding the cell that requires the kernel restart).
