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

Support for pre-determined batch sizes in DynamicBucketingSampler #1372

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

pzelasko
Copy link
Collaborator

If one can precompute the maximum possible batch sizes for every bucket, they can be provided to the sampler using this mechanism. That's an alternative to the auto-batch-size sampling mechanism using max_duration and quadratic_duration which can guarantee close-to-maximum GPU memory utilization in training without running into OOM during training.

An example of how to determine maximum batch sizes for a given model+optimizer+hardware configuration is available in NVIDIA/NeMo#9763

@pzelasko pzelasko added this to the v1.25.0 milestone Jul 17, 2024
@pzelasko pzelasko merged commit c286f28 into master Jul 18, 2024
9 checks passed
@pzelasko pzelasko deleted the fixed-batch-dynamic-buckets branch July 18, 2024 22:35
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

Successfully merging this pull request may close these issues.

None yet

1 participant