Skip to content

Tune_T5_WikiHow-Github files trainer fitting throws Exception #150

@KennyNg-19

Description

@KennyNg-19

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions