Skip to content

batch config issue? #17

Closed
Closed

Description

@samyam

There are a few things in configure train batch size that does not seem correct to me, and there are few things that we do not currently support.

  1. The following assertion

train_batch_size == train_micro_batch_size_per_gpu * gradient_accumulation_step * world_size

should always hold but currently it does not in some cases.
For example, when train_micro_batch_size_per_gpu and gradient accumulation steps are None in the ds_cofig its initialized to train_batch_size and 1 respectively which leads to

train_batch_size == train_batch_size * 1 * world_size

  1. if train_micro_batch_size_per_gpu > per_device_batch_size, we should throw a config error. Currently, its assigned to be equal to per_device_batch_size.

  2. We do not currently support the user providing only the train_micro_batch_size or train_micro_batch_size and gradient _accumulation_steps.

Activity

  1. added
    bug
    enhancement
    on Feb 5, 2020
  2. linked a pull request that will close this issueSamyamr/batchconfig #33on Feb 7, 2020
  3. samyam commented on Feb 7, 2020

    @samyam
    ContributorAuthor

    Fixed with pull request Samyamr/batchconfig #33

  4. added a commit that references this issue on May 15, 2020
  5. added a commit that references this issue on Jun 4, 2021
  6. rafael-ariascalles commented on Apr 13, 2023

    @rafael-ariascalles

    I am having this same issue using 0.9 but not 0.8 (using a was p4 machine)

  7. added a commit that references this issue on Feb 5, 2025
  8. added a commit that references this issue on May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions