# Apple Silicon macOS VMs: 11–16× Faster LLM Inference with a Metal Capability Shim

Original title: Apple Silicon and macOS VMs: 11–16× Faster LLM Inference with Llama.cpp

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

▲ 301 · by [frabonacci](<https://news.ycombinator.com/user?id=frabonacci>) · 💬 43
[original](<https://github.com/trycua/cua/blob/main/blog/gpu-passthrough-macos-vms.md>) · [HN discussion](<https://news.ycombinator.com/item?id=49259339>)

## Summary

Cua's Lume team reveals a process-scoped Metal capability shim that unlocks newer GPU paths inside macOS VMs on Apple Silicon, boosting llama.cpp inference dramatically. On an M1 Ultra, TinyLlama 1.1B prompt processing jumped 11× to 98% of bare-metal speed, and token generation 16×; Gemma 4 12B saw 7.2× and 14.5× gains. The shim adjusts two capability queries (Apple family and threadgroup memory) to let Metal apps select faster kernels, without true GPU passthrough. Source, benchmarks, and reproduction steps are included.

## Key quote

> The guest's conservative answers hid a surprisingly capable GPU path.

## HN discussion (43 comments)

### [simonw](<https://news.ycombinator.com/item?id=49259739>)

> It looks to me like this won't speed up llama.cpp for everyone, just for users running it in this particular kind of Virtualization.framework VM.
>
> The fix here works around a problem where the VM was causing llama.cpp to select the wrong kernels.

### [engzaanin](<https://news.ycombinator.com/item?id=49259886>)

> That makes sense. The title initially sounded like a general llama.cpp speedup on Apple Silicon, but if the improvement comes from fixing kernel selection inside Virtualization.framework VMs, that distinction is pretty important.

### [aeriose](<https://news.ycombinator.com/item?id=49261105>)

> What I don't get, which this article doesn't talk about, why would Apple’s Virtualization.framework expose a lesser Metal profile instead of reporting all capabilities supported by the host GPU?

### [thehamkercat](<https://news.ycombinator.com/item?id=49259643>)

> \> 11.08× faster and generated tokens 16.36× faster than the same workload in the same stock VM.
>
> So this was the comparison, for me the title was a bit confusing

### [w10-1](<https://news.ycombinator.com/item?id=49264140>)

> Related: does anyone have a basis for guessing whether the Neural Accelerators found in M5 Pro+ (accessed by Metal 4) will make their way into the M6 base processors?

---

## Cite

- Page: https://zeli.app/story/49259339
- Date: 2026-08-11
- Source: github.com (https://github.com/trycua/cua/blob/main/blog/gpu-passthrough-macos-vms.md)
- Hacker News: https://news.ycombinator.com/item?id=49259339

## Other languages

- zh: https://zeli.app/zh/story/49259339 · markdown: https://zeli.app/zh/story/49259339.md
- ja: https://zeli.app/ja/story/49259339 · markdown: https://zeli.app/ja/story/49259339.md
- ko: https://zeli.app/ko/story/49259339 · markdown: https://zeli.app/ko/story/49259339.md
- de: https://zeli.app/de/story/49259339 · markdown: https://zeli.app/de/story/49259339.md
- es: https://zeli.app/es/story/49259339 · markdown: https://zeli.app/es/story/49259339.md
