Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
21 changes: 11 additions & 10 deletions custom_ops/gpu_ops/w4afp8_gemm/w4afp8_gemm.cu
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,17 @@ void DisPatchW4AFp8Gemm(
max_tokens,
stream)
} else {
GEMM_SWITCH_FP16(
M, K, batch_size, token_padding_size, kBlockN, TailN,
weight,
input,
out,
weight_scale,
input_row_sum,
tokens,
max_tokens,
stream)
PD_THROW("Only supported dtype in ['FP16'].");
// GEMM_SWITCH_FP16(
// M, K, batch_size, token_padding_size, kBlockN, TailN,
// weight,
// input,
// out,
// weight_scale,
// input_row_sum,
// tokens,
// max_tokens,
// stream)
}
}

Expand Down
8 changes: 4 additions & 4 deletions custom_ops/utils/auto_gen_w4afp8_gemm_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@

gemm_case = [
[8192, 3584, 8, 0], # eb45T ffn1
[8192, 3584, 8, 2048], # eb45T ffn1
[7168, 8192, 8, 0], # eb45T ffn2
[7168, 8192, 8, 2048], # eb45T ffn2
# [8192, 3584, 8, 2048], # eb45T ffn1
# [7168, 8192, 8, 0], # eb45T ffn2
# [7168, 8192, 8, 2048], # eb45T ffn2
]

dtype = ["BF16", "FP16"]
dtype = ["BF16"]


def get_cutlass_type(type):
Expand Down
Loading