[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:
Wentao Ye
2026-09-11 08:16:57 -07:00
committed by GitHub
parent 22258a26bc
commit 1e1060f998
6 changed files with 216 additions and 39 deletions
+4
View File
@@ -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,
)