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

Refactor 2 awq gemm kernels into m16nXk32 #2723

Merged
merged 3 commits into from
Feb 12, 2024

Conversation

zcnrex
Copy link
Contributor

@zcnrex zcnrex commented Feb 2, 2024

Merge gemm_forward_4bit_cuda_m16n64k32 and gemm_forward_4bit_cuda_m16n128k32 into 1 function, and pass 64/128 as a parameter

Used the diff tool to facilitate identifying numbers to change:
https://www.diffchecker.com/VIc6ukUz/

Next PRs: add cuBlas as an alternative to awq-gemm as discussed in #2566 (comment)

@zcnrex zcnrex marked this pull request as ready for review February 3, 2024 00:15
@zcnrex zcnrex changed the title Combine 2 awq gemm kernels into m16nXk32 Refactor 2 awq gemm kernels into m16nXk32 Feb 3, 2024
@zcnrex
Copy link
Contributor Author

zcnrex commented Feb 3, 2024

@WoosukKwon could you please help review?

@casper-hansen
Copy link
Contributor

@zcnrex Nice job refactoring the GEMM kernels. I am especially excited to see if the dequant + cublas can bring a speedup like we talked about.

@WoosukKwon WoosukKwon self-requested a review February 12, 2024 17:59
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.

LGTM! Thanks for the refactoring. Sorry for the late review 🙏

@WoosukKwon WoosukKwon merged commit 5638364 into vllm-project:main Feb 12, 2024
17 checks passed
yhu422 added a commit to yhu422/vllm that referenced this pull request Feb 13, 2024
[ROCm] Fix build problem resulted from previous commit related to FP8 kv-cache support  (vllm-project#2790)

Add documentation on how to do incremental builds (vllm-project#2796)

[Ray] Integration compiled DAG off by default (vllm-project#2471)

Disable custom all reduce by default (vllm-project#2808)

add usage context

removed usage_context from Engine_args

Move IO to another process

added http request

[ROCm] support Radeon™ 7900 series (gfx1100) without using flash-attention (vllm-project#2768)

Add documentation section about LoRA (vllm-project#2834)

Refactor 2 awq gemm kernels into m16nXk32 (vllm-project#2723)

Co-authored-by: Chunan Zeng <chunanzeng@Chunans-Air.attlocal.net>

Added additional arg for from_engine_args

comments
jvmncs pushed a commit to jvmncs/vllm that referenced this pull request Feb 14, 2024
Co-authored-by: Chunan Zeng <chunanzeng@Chunans-Air.attlocal.net>
xjpang pushed a commit to xjpang/vllm that referenced this pull request Feb 20, 2024
Co-authored-by: Chunan Zeng <chunanzeng@Chunans-Air.attlocal.net>
xjpang pushed a commit to xjpang/vllm that referenced this pull request Feb 22, 2024
Co-authored-by: Chunan Zeng <chunanzeng@Chunans-Air.attlocal.net>
xjpang pushed a commit to xjpang/vllm that referenced this pull request Mar 4, 2024
Co-authored-by: Chunan Zeng <chunanzeng@Chunans-Air.attlocal.net>
@mengsoso
Copy link

@zcnrex @WoosukKwon
Could you help look at this issue: #7400

Temirulan pushed a commit to Temirulan/vllm-whisper that referenced this pull request Sep 6, 2024
Co-authored-by: Chunan Zeng <chunanzeng@Chunans-Air.attlocal.net>
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.

4 participants