Can Swin UNETR be trained on multi GPU? #828
Replies: 4 comments 2 replies
-
Hi @tangy5 , Could you please help share some comments or best practices here? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
Not sure whether this is the source of the problem, but it seems that above code was run with gradient checkpointing. During my experiments in the research-contributions Swin-UNETR SSL repo, I made the experience that multi-GPU only works without gradient checkpointing. Single-GPU works with and without gradient checkpointing. Could be a hint? |
Beta Was this translation helpful? Give feedback.
-
@diazandr3s have you manged to sort that out? I am currently having the same issue when wrapping SwinUNETR using PyTorch lightning |
Beta Was this translation helpful? Give feedback.
-
Hi @diazandr3s , in this repo, it seems the BRATS21 with SwinUNETR works, can you refer to this example for multi-GPU training? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm using the Swin UNETR to segment both brain tumors and deformed brain ventricles. I managed to train a Swin UNETR model using a single GPU without major changes from MONAI Label based on this tutorial: https://github.com/Project-MONAI/tutorials/blob/main/3d_segmentation/swin_unetr_brats21_segmentation_3d.ipynb.
However, I'm getting this error when enabling multi GPU:
Beta Was this translation helpful? Give feedback.
All reactions