Skip to content

Commit

Permalink
Merge pull request #64 from taiypeo/feature/amp_backend
Browse files Browse the repository at this point in the history
Add support for different AMP backends
  • Loading branch information
HHousen authored Feb 2, 2022
2 parents 1395f37 + 7ffef86 commit e39140c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,17 @@ def main(args):
parser.add_argument(
"--amp_level",
type=str,
default="O1",
default=None,
help="The optimization level to use (O1, O2, etc…) for 16-bit GPU precision (using "
+ "NVIDIA apex under the hood).",
)
parser.add_argument(
"--amp_backend",
type=str,
default="native",
choices=["native", "apex"],
help="PyTorch Lightning amp_backend ('native' or 'apex')",
)
parser.add_argument(
"--precision",
type=int,
Expand Down

0 comments on commit e39140c

Please sign in to comment.