The llama.cpp project released version b10164, introducing a new chunked SSD matrix multiplication implementation designed to accelerate the prefill phase of Mamba-2 models.

  • ggml-cuda: add chunked SSD matmul for Mamba-2 prefill acceleration
  • CUDA SSD fixes correctness by promoting s0_stride_seq to int64_t and improves memory coalescing in ssm_ssd_prepare_dt_kernel
  • Fused M matrix materialization into the pre_matmul kernel
  • Fixed sdata read-write race in the prepare_dt fallback scan loop
  • Added SSD CICD fixes for CUDA, HIP, MUSA, and MSVC

This update provides optimized GPU kernels for specific state-space model architectures while maintaining broad compatibility across CPU, Vulkan, ROCm, OpenVINO, and SYCL backends.