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

LLM: fix qwen AutoTP #10766

Merged
merged 1 commit into from Apr 16, 2024
Merged

Conversation

plusbang
Copy link
Contributor

@plusbang plusbang commented Apr 15, 2024

Description

Background: #10763

There exists shape error when run Qwen-7b or Qwen-14b using AutoTP.
The root cause is our split_qkv_proj_func not compatible with deepspeed splitting (https://github.com/microsoft/DeepSpeed/pull/4902/files).

Take Qwen-14b for example, after deepspeed splitting, the shape of c_attn_weight is [7680, 5120], but still use projection_size=5120 to split q/k/v.

So change the projection_size to fix.

4. How to test?

  • Unit test
  • Local test

@plusbang plusbang requested a review from rnwang04 April 16, 2024 00:15
Copy link
Contributor

@rnwang04 rnwang04 left a comment

Choose a reason for hiding this comment

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

LGTM

@plusbang plusbang merged commit 0a62933 into intel-analytics:main Apr 16, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants