Optimizing Token Generation in llama.cpp's CUDA Backend

Posted by am17an@reddit | LocalLLaMA | View on Reddit | 22 comments

Link to the post: https://github.com/ggml-org/llama.cpp/discussions/17621

We've been working over the last few months on kernel fusion in llama.cpp, I wrote a small write-up, it's semi-technical but one of the things I wanted to raise awareness is about if you're on a single GPU you can use GGML_CUDA_GRAPH_OPT=1 to run things slightly faster :)