Deep-Learning
Deep-Learning copied to clipboard
Tune_T5_WikiHow-Github files trainer fitting throws Exception
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 overriding
LightningModule
optimizer_step or optimizer_zero_grad,' 84 'accumulate_grad_batches
inTrainer
should be 1.' 85 ' It ensures optimizer_step or optimizer_zero_grad are called on every batch.'MisconfigurationException: When overriding
LightningModule
optimizer_step or optimizer_zero_grad,accumulate_grad_batches
inTrainer
should be 1. It ensures optimizer_step or optimizer_zero_grad are called on every batch.
Anyone could help, please?