Skip to content

Error with pytorch_lightning for example training #441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
highfly-25 opened this issue Apr 7, 2025 · 0 comments
Open

Error with pytorch_lightning for example training #441

highfly-25 opened this issue Apr 7, 2025 · 0 comments

Comments

@highfly-25
Copy link

I have setup a virtual environment in Google Colab with python 3.10 and installed the requirements "!pip install -r requirements/pt2.txt"

I am trying to run this command "python main.py --base configs/example_training/toy/cifar10_cond.yaml" in Google Colab but it throws the following error-
Traceback (most recent call last):
File "/content/gdrive/MyDrive/SDXL/generative-models/main.py", line 11, in
import pytorch_lightning as pl

  • When I run "import pytorch_lightning as pl" separately then the error is thrown - ModuleNotFoundError: No module named 'pytorch_lightning'
  • But as per the installed pip list result, the module is installed "!pip list | grep torch" :
    open_clip_torch 2.32.0
    pytorch-lightning 2.0.1
    torch 2.0.1
    torchaudio 2.0.2
    torchdata 0.6.1
    torchmetrics 1.7.0
    torchvision 0.15.2

I have setup the same code in Ubuntu server as well following the steps mentioned in Github but there also the same error is thrown.

Could you please help?

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant