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

--gradient_accumulation_steps #33

Open
zhangchao77 opened this issue Jun 27, 2021 · 2 comments
Open

--gradient_accumulation_steps #33

zhangchao77 opened this issue Jun 27, 2021 · 2 comments

Comments

@zhangchao77
Copy link

Hello, I would like to ask you about this step in README, The default batch size is 512. When GPU memory is insufficient, you can proceed with training by adjusting the value of --gradient_accumulation_steps.how to do it specifically?

@rentainhe
Copy link

I have the same question :(

@HughSeven
Copy link

my GPU reported that the memory was full, and then I looked at the code
There is a line in the train function:
args.train_ batch_ size = args.train_ batch_ size // args.gradient_ accumulation_ steps
so I use ''python train.py -- XX -- XX -- XX -- args.gradient during training_ accumulation_ steps 3''
Then I can run

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

3 participants