Skip to content

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