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

Cherry-pick FSDP wrap patch from #443 #462

Merged
merged 2 commits into from
Feb 22, 2024
Merged

Conversation

epwalsh
Copy link
Member

@epwalsh epwalsh commented Feb 22, 2024

Within the FSDP wrapping function, the "recurse" mode does not behave as
expected (for large models anyway). In particular it seems like there's
an inherent "sized-based" policy being applied that ignores our intent
to stop recursing down the module tree at, for example, the level of an
transformer block.

The API for wrapping functions itself is pretty simple, so I can't imagine how we'd
be interpreting it wrong. I suspect this another FSDP bug.

Within the FSDP wrapping function, the "recurse" mode does not behave as
expected (for large models anyway). In particular it seems like there's
an inherent "sized-based" policy being applied that ignores our intent
to stop recursing down the module tree at, for example, the level of an
transformer block.

The API for wrapping functions itself is pretty simple, so I can't imagine how we'd
be interpreting it wrong. I suspect this another FSDP bug.
@epwalsh epwalsh merged commit 37ca789 into main Feb 22, 2024
10 of 11 checks passed
@epwalsh epwalsh deleted the epwalsh/fsdp-wrap-patch branch February 22, 2024 18:01
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