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

Optimize GeGLU layer in Gemma #2975

Merged
merged 7 commits into from
Feb 22, 2024
Merged

Optimize GeGLU layer in Gemma #2975

merged 7 commits into from
Feb 22, 2024

Conversation

WoosukKwon
Copy link
Collaborator

@WoosukKwon WoosukKwon commented Feb 22, 2024

This PR optimizes the GeGLU layer in Gemma by merging the linear layers and introducing the gelu_and_mul kernel, similarly to how we optimized SwiGLU in Llama.

@WoosukKwon WoosukKwon changed the title Merge Linear layers in GeGLU Optimize GeGLU layer in Gemma Feb 22, 2024
@WoosukKwon WoosukKwon requested a review from Yard1 February 22, 2024 02:31
@WoosukKwon
Copy link
Collaborator Author

After this PR, maybe we can merge the Gemma model into Llama.

Copy link
Collaborator

@Yard1 Yard1 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@WoosukKwon WoosukKwon merged commit fd5dcc5 into main Feb 22, 2024
21 checks passed
@WoosukKwon WoosukKwon deleted the gemma-mlp branch February 22, 2024 04:17
xjpang pushed a commit to xjpang/vllm that referenced this pull request Mar 4, 2024
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