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

[Misc] Reduce supported Punica dtypes #4304

Merged
merged 7 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,23 +211,7 @@ define_gpu_extension_target(

set(VLLM_PUNICA_EXT_SRC
"csrc/punica/bgmv/bgmv_bf16_bf16_bf16.cu"
"csrc/punica/bgmv/bgmv_bf16_bf16_fp16.cu"
"csrc/punica/bgmv/bgmv_bf16_fp16_bf16.cu"
"csrc/punica/bgmv/bgmv_bf16_fp16_fp16.cu"
"csrc/punica/bgmv/bgmv_bf16_fp32_bf16.cu"
"csrc/punica/bgmv/bgmv_bf16_fp32_fp16.cu"
"csrc/punica/bgmv/bgmv_fp16_bf16_bf16.cu"
"csrc/punica/bgmv/bgmv_fp16_bf16_fp16.cu"
"csrc/punica/bgmv/bgmv_fp16_fp16_bf16.cu"
"csrc/punica/bgmv/bgmv_fp16_fp16_fp16.cu"
"csrc/punica/bgmv/bgmv_fp16_fp32_bf16.cu"
"csrc/punica/bgmv/bgmv_fp16_fp32_fp16.cu"
"csrc/punica/bgmv/bgmv_fp32_bf16_bf16.cu"
"csrc/punica/bgmv/bgmv_fp32_bf16_fp16.cu"
"csrc/punica/bgmv/bgmv_fp32_fp16_bf16.cu"
"csrc/punica/bgmv/bgmv_fp32_fp16_fp16.cu"
"csrc/punica/bgmv/bgmv_fp32_fp32_bf16.cu"
"csrc/punica/bgmv/bgmv_fp32_fp32_fp16.cu"
"csrc/punica/punica_ops.cc")

#
Expand Down
4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_bf16_bf16_fp16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_bf16_fp16_bf16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_bf16_fp16_fp16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_bf16_fp32_bf16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_bf16_fp32_fp16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_fp16_bf16_bf16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_fp16_bf16_fp16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_fp16_fp16_bf16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_fp16_fp32_bf16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_fp16_fp32_fp16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_fp32_bf16_bf16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_fp32_bf16_fp16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_fp32_fp16_bf16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_fp32_fp16_fp16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_fp32_fp32_bf16.cu

This file was deleted.

4 changes: 0 additions & 4 deletions csrc/punica/bgmv/bgmv_fp32_fp32_fp16.cu

This file was deleted.

5 changes: 5 additions & 0 deletions csrc/punica/bgmv/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
if weight_dtype == "fp32":
# FP32 weights are not supported.
continue
if not (input_dtype == output_dtype == weight_dtype):
# NOTE(woosuk): While Punica supports mixed data types for the
# input, output, and weight, we only generate the kernels for
# the same data types to reduce the binary size.
continue
kernel_definition = TEMPLATE.format(
input_dtype=DTYPE_MAP[input_dtype],
output_dtype=DTYPE_MAP[output_dtype],
Expand Down
Loading