Oossa

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.

NoteBy Published by Oossa: 1 min read

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.

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.

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.