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

Enable model and data sharding #96

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

Enable model and data sharding #96

wants to merge 37 commits into from

Conversation

gianlucadetommaso
Copy link
Contributor

To scale to very large model, we need to enable model parallelization and FSDP in Fortuna. We can do so by exploiting JAX sharding functionalities. In this PR, we plan to make training and fine-tuning methods in Fortuna working with shardings. The user will determine how many GPUs to allocate for each type of parallelization (data, FSD and model parallelization) and some simple model partitioning rules. Fortuna will do the rest.

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

@gianlucadetommaso gianlucadetommaso marked this pull request as draft July 2, 2023 21:34
- create partition manager object
- make MAP compatible
- migrate to Orbax checkpointing
- refactor predictive
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