llama.cpp Fixes MTP Crashes on Legacy GPUs

TheSpicyBoi123 · reddit · 2026-07-15

The author patched the CUDA backend of llama.cpp, fixing a BF16 selection error that could trigger crashes during MTP (multi token prediction) on pre-Ampere GPUs.

The Issue

On older architecture cards (like Kepler / Maxwell / Pascal / Turing) that lack BF16 support, the original implementation might incorrectly trigger the BF16 path, causing a cuBLAS crash. This was reproduced on a Kepler card.

The Fix

Results

Tested on a Tesla K40c:

This means legacy GPUs can now run MTP more stably without sacrificing speed gains.

Original post →

More from Infra

Infra channel →