-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Multi-GPU Training Object Detection #33525
Comments
Hi @SangbumChoi, thanks for opening the issue! It will be great to have it fixed 🙂 |
#32525 This error is related to torchmetrics of cpu/gpu problem Lightning-AI/torchmetrics#2477 |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
System Info
transformers
version: 4.45.0.dev0Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
https://github.com/huggingface/transformers/blob/main/examples/pytorch/object-detection/run_object_detection.py
Simply running this script with two or more GPUs
Expected behavior
While investigating #31677 (cc. @SunMarc )
Former issue
#28740
#31461
#13197
needed to be resolved so I have digged into it.
Found out the issue was no longer related to @NielsRogge comments (which was related to normalize the num_boxes). Now it is related to the targets in
accelerate
andTrainer
with concat to the multi-gpu circumstances so following error was occured.If we do not use
Trainer
class it resolves by follows (no bug)However, when we use
Trainer
class it shows -> which is the circumstances of 3 multi-GPUs concat the individual targets.I am more investigating how to fundamentally fix this problem (not modifying model files just simply add some argument such as
do_train_concat
) but issue this for also other people who might be interested in. (cc. @qubvel )The text was updated successfully, but these errors were encountered: