How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Use Your Mac for AI Agents: Self-Host Gemma 4 12 B with Pulumi and Tailscale

calendar_today June 4, 2026 person Pablo Seibelt domain pulumi

This post demonstrates running Gemma 4 12B open-weight model locally on an Apple M3 Max at approximately 20 output tokens per second using llama.cpp with Metal acceleration, achieving roughly 9% GPU memory savings versus Adam optimizer-based setups. The stack combines k3d for local Kubernetes orchestration, Open WebUI for a chat interface, Pulumi for infrastructure-as-code management, and Tailscale for secure remote access. Open-weight models running on consumer hardware keep data local, work offline, and eliminate per-token cloud costs.

open_in_new Read original post