Oossa

llama.cpp Vulkan update fixes infinities and NaN handling in top‑k

The Oct 8 2026 release patches a Vulkan bug that caused crashes and wrong results when infinities or NaN values appear in top‑k calculations.

NoteBy Published by Oossa: 1 min read

The open‑source llama.cpp library released version b11505 on 2026‑10‑08. The update fixes a Vulkan shader bug in the top‑k operation. Previously, +inf and NaN values were ignored and could cause hangs on NVIDIA GPUs or wrong indices on AMD GPUs. The patch maps NaN to -inf, expands the bucket range to count every value, and corrects the k = 1 path for negative numbers. A new test called test_top_k_inf checks these cases.

Why it matters

Developers using llama.cpp with Vulkan will see fewer crashes and more accurate token‑ranking results when their prompts contain extreme float values.

Was this article useful?
Share

Read next

Oossa · Newsletter

The week in AI, explained

Every Monday: the stories worth knowing, in plain language. Free, no spam.