[ROCm] Optimize Deepseek R1 on MI300X (#18242)
Co-authored-by: Chen, Todd <zhenchen@amd.com>
This commit is contained in:
co-authored by
Chen, Todd <zhenchen@amd.com>
parent
f1088beb6a
commit
b9cf1563de
@@ -1560,6 +1560,7 @@ class AiterAttnBackend(AttentionBackend):
|
||||
o = torch.empty_like(q, dtype=self.input_dtype)
|
||||
|
||||
if save_kv_cache:
|
||||
|
||||
forward_batch.token_to_kv_pool.set_kv_buffer(
|
||||
layer, forward_batch.out_cache_loc, k, v
|
||||
)
|
||||
|
||||
@@ -61,6 +61,7 @@ if _use_aiter:
|
||||
|
||||
aiter_per1x128_quant = get_hip_quant(aiter.QuantType.per_1x128)
|
||||
|
||||
|
||||
if _is_cuda:
|
||||
from sgl_kernel import fp8_blockwise_scaled_mm, fp8_scaled_mm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user