-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Description
Hi,
When I run '' in Tune_T5_WikiHow-Github.ipynb, an exception is thrown but I cannot find a related solution online,
MisconfigurationException Traceback (most recent call last)
in ()
----> 1 trainer.fit(model)3 frames
/usr/local/lib/python3.7/dist-packages/pytorch_lightning/trainer/configuration_validator.py in __verify_train_loop_configuration(self, model)
81 if (has_overriden_optimization_functions) and going_to_accumulate_grad_batches and automatic_optimization:
82 raise MisconfigurationException(
-> 83 'When overridingLightningModuleoptimizer_step or optimizer_zero_grad,'
84 'accumulate_grad_batchesinTrainershould be 1.'
85 ' It ensures optimizer_step or optimizer_zero_grad are called on every batch.'MisconfigurationException: When overriding
LightningModuleoptimizer_step or optimizer_zero_grad,accumulate_grad_batchesinTrainershould be 1. It ensures optimizer_step or optimizer_zero_grad are called on every batch.
Anyone could help, please?