Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tune_T5_WikiHow-Github files trainer fitting throws Exception #150

Open
KennyNg-19 opened this issue May 4, 2021 · 0 comments
Open

Tune_T5_WikiHow-Github files trainer fitting throws Exception #150

KennyNg-19 opened this issue May 4, 2021 · 0 comments

Comments

@KennyNg-19
Copy link

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 in Trainer 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 in Trainer should be 1. It ensures optimizer_step or optimizer_zero_grad are called on every batch.

Anyone could help, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant