[Troubleshooting] Week #2 Lab -- Failed Import

For the Week 2 Lab, I’m unable to get the required libraries from transformers imported. It’s saying torch.distributed is not installed, even though I pip installed torch. Any ideas how to resolve this?

Hi Adithya and welcome to the community!

This issue is usually caused by an unsuccessful pip install. Please make sure that the previous cell executes successfully before trying these imports. You can also clear the workspace and re-run the code.

Hope this helps!