Error while importing the necessary requirements for Week 2 lab

Hello, I need some help. I am currently in the middle of the course and I am unable to load the necessary components in my jupyter notebook.

I am at the 2nd cell:
from datasets import load_dataset
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, GenerationConfig, TrainingArguments, Trainer
import torch
import time
import evaluate
import pandas as pd
import numpy as np

And this is the error that keeps showing up:
RuntimeError: Failed to import transformers.training_args because of the following error (look up to see its traceback):
No module named ‘torch.distributed’

Could I please get some help to perhaps reset or do something to fix this? thank you so much!

Hi @clarachong ,
Are you running locally on your machine? If yes, then it seems that you do have a torch installed or the installed version does not match the one used in the notebook. If you are using the course environment, then it seems you have a problem with your notebook. If yes, you could save your work (or renew the notebook) and load a new notebook that we hope is working fine.
Keep learning!

Hello! I am using the course environment, and I am not running it on local. However, the 2hour time frame that I have to run this notebook is up, and I cannot access the notebook anymore. Is it possible if you could reset that 2hour time frame? thank you so much!

Hi @clarachong
If you are having issues with your course environment, then you need to contact Coursera support that has access to it.