[Kimi Perf] Group fp8 mla cahche insertion, 4~6x kernel level performance improvement for small batch (#55356)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
@@ -2828,6 +2828,8 @@ def concat_and_cache_mla_grouped(
|
||||
block_size: int,
|
||||
block_stride: int,
|
||||
entry_stride: int,
|
||||
kv_scales: torch.Tensor | None = None,
|
||||
kv_cache_dtype: str = "auto",
|
||||
) -> None:
|
||||
torch.ops._C_cache_ops.concat_and_cache_mla_grouped(
|
||||
kv_c,
|
||||
@@ -2837,6 +2839,8 @@ def concat_and_cache_mla_grouped(
|
||||
block_size,
|
||||
block_stride,
|
||||
entry_stride,
|
||||
kv_scales,
|
||||
kv_cache_dtype,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user