run_glue_no_trainer.py
Line 428 in "text-classification/run_glue_no_trainer.py":

if step % args.gradient_accumulation_steps == 0 or step == len(train_dataloader) - 1:

replace it with:

if (step + 1) % args.gradient_accumulation_steps == 0 or step == len(train_dataloader) - 1:
Hi @backurs -- would you like to open a PR with the change? :)<|||||>Hi Joao,
I get this error when trying to push my branch to the origin:
[image: image.png]
How do I fix this problem?
Thanks,
Arturs

On Mon, Feb 28, 2022 at 5:38 AM Joao Gante ***@***.***> wrote:

> Hi @backurs <https://github.com/backurs> -- would you like to open a PR
> with the change? :)
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/transformers/issues/15801#issuecomment-1054118985>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AODENVAOBFJST45ZDDNIAXLU5NGDNANCNFSM5PFKGZ7A>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
<|||||>Hi @backurs  -- there was a problem with the image attachment (possibly because your comment was an email reply). Can you resubmit it through a GitHub comment, please?<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.