Skip to main content
ModelsIntermediate5 min read

llama.cpp v0.9.0: FP8 E4M3, a fast unified KV cache, and the engine of the local server

i
iaLocale Team
•
llama.cpp v0.9.0: FP8 E4M3, a fast unified KV cache, and the engine of the local server

llama.cpp v0.8.0 had made the local server talk: realtime, TTS and the LFM3 family. v0.9.0 works on a different layer: the engine itself. For the third consecutive year llama.cpp is a featured repo in the GitHub Octoverse report, and this release confirms it — but almost everything is under the hood. Here's what actually changes for anyone running a local server, with the numbers on the table.

A FP8 quant that means it: E4M3

The main new thing is a whole-model quantization in FP8 E4M3, the format specified by the OCP consortium (Open Compute Project). It arrives as a new ftype, LLAMA_FTYPE_MOSTLY_F8_E4M3, in "saturating mode", with the conversion helpers included.

Why it matters: FP8 uses 8 bits per weight, like Q8_0. The difference is in the encoding type. Q8_0 is fixed-point: it clips the extremes. FP8 is floating-point, with an exponent (4 bits) and a mantissa (3), and handles outliers and large activations better instead of truncating them. "Saturating" means values outside the representable range (up to about 448) are clamped at the limit, not turned into noise.

The math, with a 27B model (the formula is params × bits / 8 / a billion):

FormatBits per weight27B in how many GBWhen to use it
F161654if you have lots of VRAM
FP8 E4M3 (new)827floating-point quality, no clipping
Q8_0~8.5~28.7the high-quality reference
Q4_K_M~4.8~16.3when you need to fit more

Done the calculation: 27 × 16 / 8 = 54 GB in F16, 27 × 8 / 8 = 27 GB in FP8. Same order of magnitude as Q8_0, but with a floating-point encoding. FP8 E4M3 is the right choice when you want Q8-level quality without the fixed-point ceiling; Q4_K_M stays the right choice when the goal is to fit more into the same VRAM.

Unified KV cache, now efficient across sequences

The second big change is the flash_attn_ext_rows op: it makes the unified KV cache efficient for multi-sequence inference and — that's the point — restores the prefill speed you had with non-unified KV.

Why this is real and not a footnote: a local server rarely serves a single conversation. It serves N at once — several agents, a RAG pipeline, a few users. The -np N flag opens N parallel sequences. Until now, running them on the unified KV cache cost prefill speed, and many had gone back to per-sequence KV. The new op removes that cost: the unified cache (one memory pool, simpler to manage) no longer makes you give up prompt speed.

The concrete scenario: a server with -np 4 handling 4 agents in parallel. Before v0.9.0 you either accepted a slower prefill on the unified cache, or you managed 4 separate caches. Now the unified cache is the fast path.

Under the engine: ggml 0.29.0

The ggml core moves to v0.29.0. Two things stand out for anyone scaling beyond a single GPU:

  • NCCL-based multi-node tensor parallelism — no longer just multiple GPUs on one machine, but multiple nodes. That's the path for models that don't fit on one board (a 2.4T model like Qwen3.8-2.4T-A95B is exactly that case, and the numbers are in the article on 2.4 trillion params).
  • Batched tensor copy API (ggml_backend_tensor_copy_n), implemented for Metal and CUDA — one call copies a batch of tensors instead of one at a time.

Plus performance work across the CPU, CUDA, SYCL, Metal, Vulkan, OpenCL and Hexagon backends.

Four new architectures, plus voice and transcription

Four architectures get support: Clover-35B-A3B-Preview (a diffusion model), Limite 1B, Metis-1.6 (a Mamba-2 / GQA hybrid with LatentMoE) and Mistral Large 4. On the audio side, after the voice work of v0.8.0: Chatterbox TTS, Nemotron 3.5 Transcribe (offline transcription in 40 languages) and Pocket TTS predefined voices, without voice cloning.

How to try it

Update the server and open the sequences you already wanted to run:

llama-server -m model.gguf -np 4

-np 4 opens 4 parallel sequences — the workload the new unified-KV op is built for. The FP8 quant is opt-in: you pick the LLAMA_FTYPE_MOSTLY_F8_E4M3 ftype at conversion time; the release ships the helpers.

If it doesn't behave: if prefill is still slow on a small model, the unified-KV gain mostly shows on multi-sequence workloads — with a single conversation the difference is small. And FP8 E4M3 only makes sense on a model worth the 8 bits: on a 4B model the size win over Q4_K_M is small and the quality edge marginal.

Sources

In summary

v0.9.0 is an engine release. A whole-model FP8 E4M3 quant with the 8-bit size of Q8_0 but a floating-point encoding, a unified KV cache that finally stays fast across multiple sequences, and a ggml core that can spread tensor parallelism across nodes. If you run a local server that serves more than one conversation at a time, this is the release that concerns you.

Article generated with AI

In these reading paths

Share:

Enjoyed this article?

Subscribe to the newsletter for new tutorials and guides.

After signing up you receive a confirmation email (double opt-in). Without confirmation we send nothing. No spam, we promise.

Related Articles