Skip to content

Support fused add rmsnorm for LLaMA #1667

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 9 commits into from
Nov 19, 2023

Conversation

beginlner
Copy link
Contributor

@beginlner beginlner commented Nov 15, 2023

This PR reduces CPU overhead, increasing the end-to-end token generation speed in LLaMA by 10%.

@WoosukKwon WoosukKwon self-requested a review November 15, 2023 08:19
Copy link
Collaborator

@WoosukKwon WoosukKwon left a comment

Choose a reason for hiding this comment

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

@beginlner Thanks for the PR! Good work. Left some minor comments. Please take a look at them.

@WoosukKwon WoosukKwon self-requested a review November 19, 2023 00:46
Copy link
Collaborator

@WoosukKwon WoosukKwon left a comment

Choose a reason for hiding this comment

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

@beginlner LGTM! Thanks for the optimization!

@WoosukKwon WoosukKwon merged commit e105424 into vllm-project:main Nov 19, 2023
yxl pushed a commit to yxl/vllm that referenced this pull request Nov 29, 2023
@beginlner beginlner deleted the fused_rms_norm branch December 19, 2023 01:41
hongxiayang pushed a commit to hongxiayang/vllm that referenced this pull request Feb 13, 2024
jikunshang pushed a commit to jikunshang/vllm that referenced this pull request Jul 29, 2025
…#1667)

Because libfrabic need consume some HBM memory, reduce util to 0.7. Or
else vLLM may crash in 32k model length (30k/2k)
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