Oossa

llama.cpp trims CUDA init time by about 1 ms

The open‑source LLM runner now caches the GPU type at start‑up, cutting a per‑token delay of up to one millisecond.

NoteBy Published by Oossa: 1 min read

llama.cpp version b12819 adds a cache for the CUDA device type during initialization. This avoids calling cudaGetDeviceProperties for every token, which previously cost roughly 0.7–1 ms each.

Why it matters

Users generating text on GPUs will see smoother, quicker output because the per‑token overhead is lower.

What it means for you

If you run llama.cpp on a CUDA‑capable GPU, the new caching will make each generated token a fraction faster, especially when using multiple GPUs.

Our take: The fix removes an unnecessary millisecond pause that could add up on long runs, and it shows the project’s focus on practical performance tweaks.

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.