Error when running the Sagemaker Jupyter notebook for Lab1 of Generative AI Course - Week1

I am getting the following error when loading the google/flan-t5-base model

ModuleNotFoundError: No module named ‘torch._C’

The above exception was the direct cause of the following exception:

RuntimeError Traceback (most recent call last)
Cell In[33], line 3
1 model_name=‘google/flan-t5-base’
----> 3 model = AutoModelForSeq2SeqLM.from_pretrained(model_name)

1 Like

Can you try close and reopen an instance of the lab sometimes this sorts out problems similar to this!

1 Like

Hello,
Once I closed and reopened I am getting the following error:

Amazon Web Services Sign In

The credentials in your login link were invalid. Please contact your administrator.

Please help resolve this issue.

I ensured I did the following:
Logged out of the coursera site
Closed all labs
reopened the lab site again after logging back into coursera.

Still, I face this issue - please help resolve this.

1 Like

Try using incognito mode on the browser!

1 Like