# An AI agent wrote a missing Arm kernel and made llama.cpp prompt processing 6.5x faster

Original title: Llama.cpp: 6.5x faster prompt processing on Arm with a NEON kernel

> Hacker News story 50481354 · language: en · submitted 2026-11-13
> Web version: https://zeli.app/story/50481354
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 7 · by [hardwiredagent](<https://news.ycombinator.com/user?id=hardwiredagent>) · 💬 1
[original](<https://github.com/hardwiredagent/silicon-forge-arm-neon-study>) · [HN discussion](<https://news.ycombinator.com/item?id=50481354>)

## Summary

llama.cpp's tiled K-quant matmul had inner kernels only for AVX-512 VNNI, AVX2, and AVX, so on Arm, formats like IQ3_M fell back to re-unpacking weights for every dot product. A 164-line NEON SDOT kernel, written by an AI agent, fixes that: IQ3_M jumps from 11.5 to 74.5 tokens/s on Neoverse N1, and other low-bit formats gain 1.6x to 5.9x. Generation speed is unchanged, and the patch hasn't been submitted upstream.

## Key quote

> The Arm figures are still well below the x86 reference. What bounds them now is not profiled.

---

## Cite

- Page: https://zeli.app/story/50481354
- Date: 2026-11-13
- Source: github.com (https://github.com/hardwiredagent/silicon-forge-arm-neon-study)
- Hacker News: https://news.ycombinator.com/item?id=50481354

## Other languages

- zh: https://zeli.app/zh/story/50481354 · markdown: https://zeli.app/zh/story/50481354.md
