-
Notifications
You must be signed in to change notification settings - Fork 530
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 option to unfuse Wqkv #1367
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add some unit tests too
…h/unfuse_wqkv merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, would like @vchiley or @ShashankMosaicML to take a look before approving
Added testing for fuse splits into the unit test @dakinggg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
Adding an option to unfuse Wqkv. Gives us flexibility to support various other model architectures that don't fuse Wqkv like we do.
Run with fused Wqkv (main): fused-wqkv-orig-n7eky6
Run with fused Wqkv (this branch): fused-wqkv-new-ggXoVL
Run without fused Wqkv: unfused-wqkv-new-a2Qo2r
Same loss curves:
Same throughput for fused Wqkv before and after, slightly lower throughput for unfused Wqkv (as expected):