# llama.cpp switches to radix path beyond 128 columns

> The new release changes the top‑k algorithm: bitonic is used up to 128 columns, radix takes over for wider data, saving memory.

Oossa · 2026-11-25 · https://oossa.com/en/llama-cpp-switches-to-radix-path-beyond-128-columns

The b12706 update adds a rule for the top‑k selection step. On Apple Silicon M5 and M2 Ultra chips, the bitonic method is faster only when the matrix has 128 columns or fewer. For any larger width the radix method is chosen because it runs in place and avoids a large scratch buffer.

## The facts

- Bitonic top‑k is faster only up to 128 columns on M5 and M2 Ultra.
- The radix path selects in place and needs no scratch buffer, avoiding an 8 GiB allocation for large matrices.

## Why it matters

It reduces memory pressure for users running large models on Apple Silicon, but performance for very wide matrices still depends on the new rule.

## What it means for you

If you run llama.cpp on an M5 Ultra and your model uses a 200‑column score matrix, the program will now automatically use the radix path, preventing the 8 GiB temporary allocation the bitonic method would have required.

**Our take:** The change trims memory use for wide matrices without harming speed, which should help developers handling large models on Apple Silicon.

## Sources & references

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

Last updated: 2026-11-25
