Oossa

llama.cpp speeds up some Mac data copies, then drops slower tweaks

The update makes some tensor-joining tests faster on Apple chips, while removing changes that slowed other cases.

NoteBy Published by Oossa: 1 min read

The llama.cpp update changes how its Metal software copies rows when joining data. It keeps a vectorized copy, which handles groups of four elements together when a row is contiguous, and returns to the original dispatch method.

In one test, copying half-precision data on an M2 Ultra fell from 32.4 microseconds to 17.0. But batching rows made some M5 Ultra tests slower, and a separate kernel specialization cost up to 18% on certain shapes. The release notes do not give an overall speedup across workloads.

Why it matters

The change may speed up tensor joining for llama.cpp users on Apple chips, but the release notes do not establish how often they will notice it.

What it means for you

People running llama.cpp on Apple chips may see faster data joining in some cases, but the notes do not say how broadly the gain applies.

Our take: Keeping the change that helped tested cases while removing tweaks that hurt others is sensible; the results still cover only specific tests.

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.