zphang / zphang.github.io

Github Page
MIT License
1 stars 0 forks source link

Request for code review and assistance #1

Open anastasiyagromova opened 3 years ago

anastasiyagromova commented 3 years ago

Hi Jason, Your tutorial is highly useful, as i am working on increasing my NLP knowledge!

Reaching out to ask you a question about the portion of the code. I was trying to run the scripts exactly within the same notebook and i have an issue in "time to Train" section. Essentially, i have an error on line 20 train(). Error

It may be due to dataset updates (i had to load them a bit differently), see below:

rom datasets import list_datasets, load_dataset, list_metrics
datasets_list = list_datasets()
len(datasets_list)
print(', '.join(dataset for dataset in datasets_list))
dataset = load_dataset('glue', 'sst2')

dataset_dict = {
    "stsb": load_dataset('glue','stsb'),
    "rte": load_dataset('glue', 'rte'),
    "commonsense_qa": load_dataset('commonsense_qa'),
}

Including the link to my copy of your notebook with changes, i was trying to debug but with no luck. Please see here: https://colab.research.google.com/drive/1CsnZmIwr78FZX6pgJDMlTGeMFzQbGM_R?usp=sharing

Appreciate your support as i try to increase my capabilities and knowledge in this area.

siangooding commented 2 years ago

Hello, I am getting the same problem. It is definitely due to the dataset loading, @anastasiyagromova did you manage to fix this?