Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix step shifting when accumulate gradient (huggingface#33673)
* replace total_batched_samples with step while counting grad accum step * remove unused variable * simplify condition for update step * fix format by ruff * simplify update step condition using accelerator.sync_gradients * simplify update condition using do_sync_step * remove print for test --------- Co-authored-by: Zach Mueller <[email protected]>
- Loading branch information