Skip to content

Commit 3c8a864

Browse files
committed
fix gemm_a8w8_bpreshuffle
Signed-off-by: tjtanaavllm <tunjian.tan@amd.com>
1 parent 3fdf06c commit 3c8a864

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

vllm/model_executor/layers/quantization/utils/w8a8_utils.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@ def rocm_aiter_gemm_a8w8_bpreshuffle_impl(
4949
# accept the weight as # keep the weight as (N, K)
5050
# NOTE: The weight has to be shuffled in the
5151
# process_weights_after_loading of the CompressedTensorsW8A8Fp8 class
52-
from aiter import gemm_a8w8_bpreshuffle
53-
return gemm_a8w8_bpreshuffle(input, weight, scale_a, scale_b,
54-
out_dtype)
52+
from aiter import gemm_a8w8_bpreshuffle_ck
53+
m = input.shape[0]
54+
n = weight.shape[0]
55+
Y = torch.empty(m, n, dtype=out_dtype, device=input.device)
56+
gemm_a8w8_bpreshuffle_ck(input, weight, scale_a, scale_b, Y)
57+
return Y
5558

5659
def rocm_aiter_gemm_a8w8_bpreshuffle_fake(
5760
input: torch.Tensor,

0 commit comments

Comments
 (0)