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

fix reshape for split qga #307

Merged
merged 1 commit into from
Nov 30, 2023
Merged

Conversation

inkcherry
Copy link

@inkcherry inkcherry commented Nov 30, 2023

The reshaping operation needs to transform the shape from [sq, b, nkv, nq // nkv, hn] to [sq, b, -1, hn],instead of to [sq, b, nkv, nq // nkv + 2, -1, hn]

@RezaYazdaniAminabadi
Copy link

The reshaping operation needs to transform the shape from [sq, b, nkv, nq // nkv, hn] to [sq, b, -1, hn],instead of to [sq, b, nkv, nq // nkv + 2, -1, hn]

Yes, that is correct, thanks for fixing this @inkcherry.

Copy link

@RezaYazdaniAminabadi RezaYazdaniAminabadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RezaYazdaniAminabadi
Copy link

@conglongli, please feel free to merge this when you get a chance, thanks :)

@conglongli conglongli merged commit 61d5d61 into microsoft:main Nov 30, 2023
1 check passed
jonabur pushed a commit to jonabur/Megatron-DeepSpeed that referenced this pull request Dec 4, 2023
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.

3 participants