lrait
March 19, 2024, 2:35pm
1
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?
lrait
March 19, 2024, 2:50pm
3
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
lrait
March 19, 2024, 2:59pm
5
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
lrait
March 19, 2024, 3:00pm
6
then i did this
then ran all of these and they all say “requirements already satisfied”
1 Like
lrait
March 19, 2024, 3:19pm
7
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
lrait
March 19, 2024, 4:04pm
9
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