Run Gemma with MLX¶
MLX is Apple's array framework for machine learning on Apple silicon. It runs Gemma natively on the unified memory architecture, without a GGUF conversion step.
Install¶
Run¶
Model repositories¶
Community-converted weights live under mlx-community:
| Size | Repository |
|---|---|
| E2B | mlx-community/gemma-4-E2B-it-qat-4bit |
| E4B | mlx-community/gemma-4-E4B-it-qat-4bit |
| 12B | mlx-community/gemma-4-12B-it-qat-4bit |
| 26B A4B | mlx-community/gemma-4-26B-A4B-it-qat-4bit |
| 31B | mlx-community/gemma-4-31B-it-qat-4bit |
Note
Coverage and naming vary — these are community conversions, not first-party releases.
Search mlx-community for Gemma 4 for
the current list. Ollama also ships MLX builds for every size under its -mlx
tags, if you would rather not pick a repository.
Server¶
OpenAI-compatible API at http://localhost:8080/v1.