[1/2] Speed up prefill mla attention (#10156)

This commit is contained in:
fzyzcjy
2025-09-09 00:00:33 +08:00
committed by GitHub
parent 2c2b19b18b
commit 0096798ed6
6 changed files with 130 additions and 0 deletions

View File

@@ -436,6 +436,8 @@ TORCH_LIBRARY_FRAGMENT(sgl_kernel, m) {
m.def("copy_to_gpu_no_ce(Tensor input, Tensor! output) -> ()");
m.impl("copy_to_gpu_no_ce", torch::kCUDA, &copy_to_gpu_no_ce);
m.def("concat_mla_k(Tensor! k, Tensor k_nope, Tensor k_rope) -> ()");
m.impl("concat_mla_k", torch::kCUDA, &concat_mla_k);
}
REGISTER_EXTENSION(common_ops)