Help: How did gradient_accumulation_steps in PPOConfig works?
#2032
Unanswered
0verf1t-bit
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I was wander how Accelerator calculate batch_size when set
batch_sizemini_batch_sizegradient_accumulation_stepsin PPOConfig, but when I see in ds print_user_config json said that total batch size was equl tobatch_size*num_process*gradient_accumulation_steps, instead ofmini_batch_size*num_process*gradient_accumulation_steps.This is a bit different from what I expected, and when I set the
gradient_accumulation_stepsin the accelerator config.yaml at the same time, the accumulation was the same with accelerator config.yaml, so what did PPOConfig gradient_accumulation_steps act during the training step? It's so wierd.All reactions