PulseAugur
EN
LIVE 22:46:32

llama.cpp optimizes Metal backend for Apple Silicon, improving ADD chain fusion

The llama.cpp project has released an update, b12840, focusing on optimizing the Metal backend for Apple Silicon. This update introduces changes to how ADD chain fusion is handled, making it independent of batch size to prevent issues with models like nemotron_h. The modifications ensure that addends in a chain reside in the same backend buffer, improving structural and full checks. Testing was conducted on various configurations, including a Mac Studio with an M5 Ultra chip, to validate the performance improvements. AI

IMPACT Improves inference performance on Apple Silicon hardware for models run via llama.cpp.

RANK_REASON This is a software update to an open-source project that improves performance for specific hardware, not a frontier release or significant industry event.

Read on llama.cpp — Releases →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

llama.cpp optimizes Metal backend for Apple Silicon, improving ADD chain fusion

COVERAGE [1]

  1. llama.cpp — Releases TIER_1 English(EN) · ggerganov ·

    b12840: metal : keep ADD chain fusion independent of batch size (#33217)

    <p>The ADD chain fusion packs the addends only when they share a layout and a backend buffer. A bias add and a residual add share a layout only for single-token batches, and live in different buffers, so the packing and the following node reorder depend on the ubatch size. The sc…