Skip to content

Commit

Permalink
Replace gpus with devices (NVIDIA#7743)
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishree <abhishreetm@gmail.com>
  • Loading branch information
athitten committed Oct 17, 2023
1 parent 3f31216 commit 8488496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/asr/experimental/k2/align_speech_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class ParallelAlignmentConfig:
output_path: str = MISSING
model_stride: int = 8

trainer: TrainerConfig = field(default_factory=lambda: TrainerConfig(gpus=-1, accelerator="ddp"))
trainer: TrainerConfig = field(default_factory=lambda: TrainerConfig(devices=-1, accelerator="ddp"))

# there arguments will be ignored
return_predictions: bool = False
Expand Down
2 changes: 1 addition & 1 deletion scripts/nemo_legacy_import/nlp_checkpoint_port.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def nemo_convert(argv):

# Create a PL trainer object which is required for restoring Megatron models
cfg_trainer = TrainerConfig(
gpus=1,
devices=1,
accelerator="ddp",
num_nodes=1,
# Need to set the following two to False as ExpManager will take care of them differently.
Expand Down

0 comments on commit 8488496

Please sign in to comment.