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

Add checkpointing support for DTensors #17

Merged
merged 27 commits into from
May 13, 2024
Merged

Add checkpointing support for DTensors #17

merged 27 commits into from
May 13, 2024

Conversation

epwalsh
Copy link
Member

@epwalsh epwalsh commented May 9, 2024

This is important because it will allow us to use our new checkpointing functionality with models that have been sharded using PyTorch's tensor parallel wrappers or FSDP2, which both use DTensor under the hood.

Caveats: currently I've only implemented this for 1D and 2D DTensors. Supporting higher dimensional DTensors will require a more elegant solution.

@epwalsh epwalsh merged commit f8137cc into main May 13, 2024
12 checks passed
@epwalsh epwalsh deleted the epwalsh/dtensor branch May 13, 2024 20:37
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