Skip to content

Commit

Permalink
Merge pull request #54 from sooftware/tpu
Browse files Browse the repository at this point in the history
Tpu
  • Loading branch information
sooftware committed May 9, 2021
2 parents 99e06e6 + 94b4000 commit 8f0fb02
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions configs/trainer/gpu.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
seed: 1
accelerator: dp
precision: 16
num_workers: 4
accumulate_grad_batches: 4
amp_backend: apex
auto_select_gpus: True
Expand Down
1 change: 1 addition & 0 deletions configs/trainer/tpu.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
seed: 1
accelerator: dp
precision: 16
num_workers: 4
accumulate_grad_batches: 4
amp_backend: apex
check_val_every_n_epoch: 1
Expand Down
1 change: 0 additions & 1 deletion lightning_asr/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def __init__(
) -> None:
super(ConformerLSTMModel, self).__init__()
self.configs = configs
self.total_steps = configs.warmup_steps + configs.decay_steps
self.gradient_clip_val = configs.gradient_clip_val
self.teacher_forcing_ratio = configs.teacher_forcing_ratio
self.vocab = vocab
Expand Down

0 comments on commit 8f0fb02

Please sign in to comment.