
Running Google Gemma 4 Locally With LM Studio’s New Headless CLI & Claude Code
LM Studio 0.4.0 introduced llmster and the lms CLI. Here is how I set up Gemma 4 26B for local inference on macOS that can be used with Claude Code.
Developers and AI engineers who want to run Gemma 4 26B locally on Apple Silicon devices
Gemma 4 26B is a 26-billion-parameter mixture-of-experts model from Google DeepMind that activates only 3.8 billion parameters during inference for low-latency performance.
This guide provides step-by-step instructions for running Gemma 4 26B locally on an Apple Silicon Mac mini via Ollama, including auto-start configuration, model preloading, and persistent memory management. The setup requires at least 24GB unified memory, leverages Apple's MLX framework for GPU acceleration, and exposes a local API for integration with coding agents and agentic workflows.