Skip to content
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

Plz help #11

Open
Affanabbbas opened this issue May 11, 2024 · 4 comments
Open

Plz help #11

Affanabbbas opened this issue May 11, 2024 · 4 comments

Comments

@Affanabbbas
Copy link

pytorch_lightning.utilities.exceptions.MisconfigurationException: You requested gpu: [0, 1, 2, 3]
But your machine only has: [0]

I am running the code on google colab. Is the issue related to the need of physical GPU?

@IrohXu
Copy link
Collaborator

IrohXu commented May 15, 2024

Set here to 1 may help.

@Affanabbbas
Copy link
Author

/usr/local/lib/python3.10/dist-packages/pytorch_lightning/callbacks/model_checkpoint.py:616: UserWarning: Checkpoint directory /content/ViTASD/lightning_logs/AffectNet-B exists and is not empty.
rank_zero_warn(f"Checkpoint directory {dirpath} exists and is not empty.")
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]

pytorch_lightning.utilities.exceptions.MisconfigurationException: The provided lr scheduler CosineLRScheduler doesn't follow PyTorch's LRScheduler API. You should override the LightningModule.lr_scheduler_step hook with your own logic if you are using a custom LR scheduler

Thanks for your reply. I resolved the previous issue but got a new one as said above. plz tell solution to that.

@Affanabbbas
Copy link
Author

I am still waiting for your reply brother.

@IrohXu
Copy link
Collaborator

IrohXu commented May 31, 2024

It seems that it is a version error. Try to downgrade pytorch_lightning will solve it.

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

2 participants