-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from IGNF/MultiGPUs-2x6-config
Add a configuration for 2x3 GPUs training without gradient accumulation
- Loading branch information
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# @package _global_ | ||
defaults: | ||
- RandLaNet_base_run_FR.yaml | ||
|
||
logger: | ||
comet: | ||
experiment_name: "RandLaNet_base_run_FR-2x3GPUs" | ||
|
||
|
||
# 2 nodes x 3 GPUs - No gradient accumulation. | ||
# This is equivalent to training with 2 GPUs with gradients accumulated 3 times. | ||
# Setting precision=16 did not bring any speed improvement for Lidar HD data and RandLa-Net model. | ||
trainer: | ||
strategy: ddp_find_unused_parameters_false | ||
accelerator: gpu | ||
num_nodes: 2 | ||
devices: 3 | ||
accumulate_grad_batches: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters