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

Support FSDP usage #72

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

Support FSDP usage #72

wants to merge 3 commits into from

Conversation

janEbert
Copy link

@janEbert janEbert commented May 3, 2024

We now manually copy mu_readout.weight_infshape = mu_readout.weight.infshape after setting base shapes. This way, we can still access the infshape after FSDP-wrapping. Because this also requires using FSDP(..., use_orig_params=True), the README is accordingly adjusted to mention this caveat.

Fix #59. @edwardjhu is the review offer still up? :)

janEbert added 3 commits May 3, 2024 15:48
This is nicer to read than the nested if-queries before.
@janEbert
Copy link
Author

janEbert commented May 3, 2024

@microsoft-github-policy-service agree

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.

FSDP support?
1 participant