Skip to content

Commit

Permalink
Merge pull request #182 from cuuupid/patch-1
Browse files Browse the repository at this point in the history
Declare `amp_backend` parameter for Torch Lightning
  • Loading branch information
minimaxir authored May 23, 2022
2 parents 24d9291 + e9f66ba commit 29d8dfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aitextgen/aitextgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ def train(
if fp16:
train_params["precision"] = 16 if fp16 else 32
train_params["amp_level"] = fp16_opt_level
train_params["amp_backend"] = "apex"

if tpu_cores > 0:
train_params["tpu_cores"] = tpu_cores
Expand Down

0 comments on commit 29d8dfa

Please sign in to comment.