Skip to content

Enable FSDP sharding for bias #19

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

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Enable FSDP sharding for bias #19

merged 1 commit into from
Aug 31, 2023

Conversation

b-chu
Copy link
Contributor

@b-chu b-chu commented Aug 28, 2023

The bias should be automatically correctly projected to the mlp so this change should be fine. Pytorch FSDP only shards on the first dimension so this change allows the bias to also be sharded.

cc: @vchiley

@tgale96
Copy link
Contributor

tgale96 commented Aug 31, 2023

Thanks, Brian!

@tgale96 tgale96 merged commit 782db70 into databricks:main Aug 31, 2023
@b-chu b-chu deleted the patch-1 branch August 31, 2023 14:40
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.

2 participants