[Lab 3] ModuleNotFoundError: No module named 'torch._C'

Can’t run Lab 3 (Fine-Tune FLAN-T5 with Reinforcement Learning (PPO) and PEFT to Generate Less-Toxic Summaries)! I tried everything many times: rerun the pip install cell, restart kernell, double checked the Python ipykernel, … Don’t know what else to do!

Hi there, I just ran the Lab and it went through. Try deleting the current Lab file and then on the terminal rerun the command:

aws s3 cp --recursive s3://dlai-generative-ai/labs-202502/w3-233794/ ./

and then run the cells again!

1 Like