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

[WIP]: Autotune Chunk Size #395

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

pramodith
Copy link
Collaborator

@pramodith pramodith commented Nov 19, 2024

Summary

Our chunked loss functions currently statically set the chunk size to 1. However, this might lead to underutilized gpu memory resources. In this PR we show how the chunk size can be dynamically set, based on the additional peak memory consumed by the forward pass of the chunked loss being used.

Testing Done

On A100 80 GB SMX

Benchmarking against chunked orpo shows very marginal improvement in speed compared to a static chunk size.
Screenshot 2024-11-19 at 10 58 59 AM

Screenshot 2024-11-19 at 10 46 43 AM

  • Hardware Type:
  • run make test to ensure correctness (wip)
  • run make checkstyle to ensure code style
  • run make test-convergence to ensure convergence

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.

1 participant