Lab 1 issue with dataset error

In Lab 1, week 1:
i am receiving an error in Step 2 as below. It cannot find the load_dataset

huggingface_dataset_name = “knkarthick/dialogsum”

dataset = load_dataset(huggingface_dataset_name)

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

NameError: name ‘load_dataset’ is not defined

1 Like

Did you run all the previous cells?

all of these? if so, yes i think so. i just need to load each line right? (sorry this is my first foray into python)

%pip install -U datasets==2.17.0
%pip install --upgrade pip
%pip install --disable-pip-version-check
torch==1.13.1
torchdata==0.5.1 --quiet

%pip install
transformers==4.27.2 --quiet

1 Like

What I meant, the cells before you encountered the issue, were the all cells from beginning run down?

Also for better response share screenshot of the error you are mentioned, make sure not to include any grader codes.

Regards
DP

okay this is what i did before receiving the error. I ran the below (shift/enter)

i cant embed more than 1 image

1 Like

then i did this
then ran all of these and they all say “requirements already satisfied”

1 Like

i cant complete this lab in time as i cant get past this continuous error and i need additional support to do so.

1 Like

Hello @irenar

can you try this step once

Try upgrading datasets library using %pip install -U datasets . Then restart the kernel. In the second run skip installing the libraries cell. Seems to have worked for me.

Let me know if the solutions works or not.

Regards
DP

1 Like

Thanks… i already have the %pip install -U datasets; see below. Also i dont understand what you mean about skip installing the libraries. can you share screenshot?

%pip install -U datasets==2.17.0
%pip install --upgrade pip
%pip install --disable-pip-version-check
torch==1.13.1
torchdata==0.5.1 --quiet

%pip install
transformers==4.27.2 --quiet

1 Like