Trainer(amp_level='O2') #10950
Answered
by
tchaton
RuixiangZhao
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Trainer(amp_level='O2')
#10950
-
When I try to set trainer = Trainer(
num_sanity_val_steps=0,
logger=cfg.load_loggers,
callbacks=cfg.callbacks,
max_epochs= cfg.General.epochs,
gpus=cfg.General.gpus,
amp_level=cfg.General.amp_level, # O2
precision=cfg.General.precision,
accumulate_grad_batches=cfg.General.grad_acc,
deterministic=True,
check_val_every_n_epoch=1,
) It will throw an error:
|
Beta Was this translation helpful? Give feedback.
Answered by
tchaton
Dec 6, 2021
Replies: 1 comment
-
Hey @RuixiangZhao, There are currently 2 precision backends. AMP and APEX. level are supported only with apex and you need to provide Trainer(amp_backend='apex') to activate it as native is the default. I am curious, what was missing from the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rohitgr7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @RuixiangZhao,
There are currently 2 precision backends. AMP and APEX. level are supported only with apex and you need to provide Trainer(amp_backend='apex') to activate it as native is the default.
I am curious, what was missing from the
MisconfigurationException
to make this clearer?