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

Training error using multiple GPUs #191

Open
sirCamp opened this issue Jan 31, 2023 · 1 comment
Open

Training error using multiple GPUs #191

sirCamp opened this issue Jan 31, 2023 · 1 comment

Comments

@sirCamp
Copy link

sirCamp commented Jan 31, 2023

Problem

Error using multiple GPUs on the pl trainer.
Using the example available here https://github.com/qdrant/quaterion/blob/master/examples/train_cifar100.py and setting the devices param of pl.Trainer > 1, I received an error:

File "/home/stefano/anaconda3/envs/pytorch_p310/lib/python3.10/site-packages/quaterion/dataset/similarity_data_loader.py", line 271, in <listcomp> labels = {"groups": torch.LongTensor([record.group for record in batch])} AttributeError: 'tuple' object has no attribute 'group'

The error is present even with PairSimilarityDataLoader and using different training strategies (dp, or ddp)

@simonhessner
Copy link

@sirCamp I am receiving the same error on the Startups example. Have you found a solution?

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