Apple Silicon macOS VMs: 11–16× Faster LLM Inference with Metal Capability Shim
Cua — the team behind the Lume macOS virtualization stack — released a research project that patches Metal capability queries inside macOS VMs, unlocking newer GPU kernels. The result: llama.cpp runs 11–16× faster in a macOS VM on Apple Silicon, nearly matching bare-metal performance.
How it works
Apple's Virtualization.framework presents macOS guests with a paravirtualized GPU. The guest's Metal driver reports a conservative capability profile — in stock Tahoe VMs, it reports an Apple 5-era GPU family, limited threadgroup memory, and no SIMD-group matrix support. llama.cpp sees those limits and picks slower kernels, even though the physical GPU can handle more.
Cua's shim intercepts Metal capability queries in a single guest process and returns upgraded values. That lets llama.cpp select newer Metal kernels without changing the guest OS or hypervisor.
Benchmarks
- TinyLlama 1.1B (M1 Ultra): prompt processing 11.08× faster, token generation 16.36× faster vs stock VM. Prompt processing hit 98% of bare-metal.
- Gemma 4 12B QAT Q4_0 (6.98 GB): 7.20× faster prompts, 14.54× faster generation. Reached 99.59% of bare-metal prompt speed, 94.82% generation.
- Muse Glimmer 30B Q4_K-M GGUF (64 GiB guest, llama.cpp b10359): 7.55× faster prompt processing, 8.87× faster generation on a 512-token prompt.
Why it matters
This isn't a GPU passthrough in the VFIO sense — the host still owns the GPU. But it corrects a capability misreport that forced conservative kernel selection. Tart users have filed a similar issue about graphics and LLM performance in macOS guests.
The shim is process-scoped, so it only affects the target app. Everything is released under the same permissive license as Lume and Cua, with source, build scripts, and benchmark logs included.
Who this is for
Developers running llama.cpp or other Metal-based inference inside macOS VMs on Apple Silicon — especially those building local AI tools or testing against VM images.
📖 Read the full source: HN LLM Tools
👀 See Also

Open-sourced library of 59 Claude skills covers full website lifecycle
A developer released 59 reusable Claude skills covering brand discovery, design, content, SEO, development, ops, and growth — stack-agnostic, with uniform structure and CI lint validation.

Agent Factory: Autonomous System Builds AI Agents from Online Problem Discussions
Agent Factory is an autonomous system that scrapes Reddit, HN, GitHub, and Twitter for real problems, scores them on demand, market gap, and feasibility, then builds standalone AI agents for promising ideas. The system uses a minimal Next.js template with 7 tools and runs Claude Code headless via a shell script.
Balloon That Pops When Claude Finishes: Physical Agent UI with whisper.cpp
A desktop balloon inflates as you speak a task, then floats across your screen while Claude Code runs the agent. Transcription runs locally via whisper.cpp, agents use your existing Claude Code login. Open source.

Open-source multi-agent framework extracted from Claude Code leak
A developer extracted the multi-agent orchestration system from Claude Code's leaked source code and rebuilt it as a model-agnostic open-source framework with MIT license. The 8,000-line TypeScript framework includes task scheduling, inter-agent messaging, and built-in tools.