# 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.

Oossa · 2026-11-28 · https://oossa.com/en/llama-cpp-trims-cuda-init-time-by-about-1-ms

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.

## The facts

- Caching reduces the CUDA device‑type query from ~0.7–1 ms per call.
- The change was released on 2026‑11‑28.

## 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.

## Sources & references

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

Last updated: 2026-11-28
