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

Avoid compiling kernels for double data type #933

Merged
merged 2 commits into from
Sep 2, 2023
Merged

Conversation

WoosukKwon
Copy link
Collaborator

@WoosukKwon WoosukKwon commented Sep 1, 2023

This PR fixes a dispatch logic for our custom CUDA kernels. Currently, vLLM uses AT_DISPATCH_FLOATING_TYPES_AND2 which actually includes the double data type that is never used. This leads to unnecessary increase in compilation time and binary size. The PR solves this issue by limiting the data types to float, half and bfloat16.

Copy link
Member

@zhuohan123 zhuohan123 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 fix!

@WoosukKwon WoosukKwon merged commit 8ce9c50 into main Sep 2, 2023
2 checks passed
@WoosukKwon WoosukKwon deleted the fix-kernels branch September 2, 2023 05:59
liuyanyi pushed a commit to liuyanyi/vllm that referenced this pull request Sep 12, 2023
hongxiayang pushed a commit to hongxiayang/vllm that referenced this pull request Feb 13, 2024
sjchoi1 pushed a commit to casys-kaist-internal/vllm that referenced this pull request May 7, 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