katielink commited on
Commit
40b2d05
·
1 Parent(s): 0832418

fix the wrong GPU index issue of multi-node

Browse files
configs/metadata.json CHANGED
@@ -1,7 +1,8 @@
1
  {
2
  "schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_hovernet_20221124.json",
3
- "version": "0.2.0",
4
  "changelog": {
 
5
  "0.2.0": "Update README for how to download dataset",
6
  "0.1.9": "add RAM warning",
7
  "0.1.8": "Update README for pretrained weights and save metrics in evaluate",
@@ -14,7 +15,7 @@
14
  "0.1.1": "update to use monai 1.1.0",
15
  "0.1.0": "complete the model package"
16
  },
17
- "monai_version": "1.2.0rc6",
18
  "pytorch_version": "1.13.1",
19
  "numpy_version": "1.22.2",
20
  "optional_packages_version": {
 
1
  {
2
  "schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_hovernet_20221124.json",
3
+ "version": "0.2.1",
4
  "changelog": {
5
+ "0.2.1": "fix the wrong GPU index issue of multi-node",
6
  "0.2.0": "Update README for how to download dataset",
7
  "0.1.9": "add RAM warning",
8
  "0.1.8": "Update README for pretrained weights and save metrics in evaluate",
 
15
  "0.1.1": "update to use monai 1.1.0",
16
  "0.1.0": "complete the model package"
17
  },
18
+ "monai_version": "1.2.0",
19
  "pytorch_version": "1.13.1",
20
  "numpy_version": "1.22.2",
21
  "optional_packages_version": {
configs/multi_gpu_train.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "device": "$torch.device(f'cuda:{dist.get_rank()}')",
3
  "network": {
4
  "_target_": "torch.nn.parallel.DistributedDataParallel",
5
  "module": "$@network_def.to(@device)",
 
1
  {
2
+ "device": "$torch.device('cuda:' + os.environ['LOCAL_RANK'])",
3
  "network": {
4
  "_target_": "torch.nn.parallel.DistributedDataParallel",
5
  "module": "$@network_def.to(@device)",