# llama.cpp fixes a GPU bug that could return unusable results

> The update also changes how the software handles fully masked calculations on NVIDIA and AMD graphics hardware.

Oossa · 2026-11-27 · https://oossa.com/en/llama-cpp-fixes-a-gpu-bug-that-could-return-unusable-results

The llama.cpp b12801 release changes its GPU handling so a fully masked calculation returns zeros instead of NaN, a value that can disrupt later calculations.

The update adds support for indexed bias in Flash Attention on CUDA and HIP, two systems for using NVIDIA and AMD graphics hardware. The release page lists downloads for macOS, iOS, Linux, Android and Windows.

## The facts

- llama.cpp release b12801 adds indexed-bias support for Flash Attention on CUDA and HIP.
- A fully masked GPU calculation now returns zeros instead of NaN.

## Why it matters

People using llama.cpp on supported GPU systems get a fix for a calculation that could otherwise produce NaN; how often it affected users is not stated.

## What it means for you

The release lists downloads for several operating systems, but it does not explain which users or tasks will notice the calculation fix.

**Our take:** The fix addresses a specific failure case, but the release notes do not say how often users encounter it.

## Sources & references

1. [ggml-org/llama.cpp b12801](https://github.com/ggml-org/llama.cpp/releases/tag/b12801) – llama.cpp, 2026-11-27

Last updated: 2026-11-27
