I see this error when loading the lab data set

When creating a post, please add:

  • Week #2
  • Link to the classroom item you are referring to: coursera generative-ai-with-llms gradedLti x0gc1 lab-2-fine-tune-a-generative-ai-model-for-dialogue-summarization
  • Description (include relevant info but please do not post solution code or your entire notebook): When loading the data set in the lab ### 1.2 - Load Dataset and LLM
  • huggingface_dataset_name = “knkarthick/dialogsum”

dataset = load_dataset(huggingface_dataset_name)

dataset

::::::::::::::::::::::::I see this error when loading the lab data set, please help to resolve as I ran the lab twice and still seeing the same error::::::

NameError Traceback (most recent call last)
Cell In[7], line 3
1 huggingface_dataset_name = “knkarthick/dialogsum”
----> 3 dataset = load_dataset(huggingface_dataset_name)
5 dataset

NameError: name ‘load_dataset’ is not defined

Hi. The pip installs might have failed. I’ve escalated this issue to our partners. In the meantime, please manually edit the pip install block and use 4.38.2 for the transformers package instead of 4.27.2 . That worked for the labs I tested. Remember to restart the kernel before importing. Still waiting for updates. Thank you, and sorry for the inconvenience.

Hi! I’m closing this thread so we can have one topic regarding this installation issue. It would be easier for everyone to manage feedback and monitor updates as we work on this. Please refer to the topic here. Thank you!