Summary: Llama.cpp build b9862 introduces a key CUDA memory optimization targeting recurrent architectures like Gated Delta Net (GDN). By detecting the gated_delta_net -> view -> cpy pattern, the CUDA kernel now writes state snapshots directly into the recurrent cache. This change bypasses intermediate tail writes and redundant copy kernels, reducing overhead during speculative decoding.
Why it matters: This optimization reduces memory overhead and improves generation speed when running hybrid and recurrent model architectures locally. Developers utilizing llama.cpp for local deployment of these models should update to build b9862 to benefit from the performance improvement.