[Bugfix][ROCm] Fix gemm_a4w4 call to use updated AITER API signature (#40754)
Signed-off-by: cheiluno <cheiluno@amd.com>
This commit is contained in:
@@ -96,21 +96,12 @@ try:
|
|||||||
x_q = x
|
x_q = x
|
||||||
x_s = x_scales
|
x_s = x_scales
|
||||||
|
|
||||||
# 32 alignment is enough for dim0 padding of output for
|
y = gemm_a4w4(
|
||||||
# gemm_a4w4 kernel
|
|
||||||
y = torch.empty(
|
|
||||||
(M + 31) // 32 * 32,
|
|
||||||
weight.shape[0],
|
|
||||||
device=x_q.device,
|
|
||||||
dtype=out_dtype,
|
|
||||||
)
|
|
||||||
|
|
||||||
gemm_a4w4(
|
|
||||||
x_q,
|
x_q,
|
||||||
weight.view(x_q.dtype),
|
weight.view(x_q.dtype),
|
||||||
x_s,
|
x_s,
|
||||||
weight_scale.view(x_s.dtype),
|
weight_scale.view(x_s.dtype),
|
||||||
y,
|
dtype=out_dtype,
|
||||||
bpreshuffle=True,
|
bpreshuffle=True,
|
||||||
)
|
)
|
||||||
return y[:M]
|
return y[:M]
|
||||||
|
|||||||
Reference in New Issue
Block a user