Built by Apple for M-series hardware. Uses the unified memory pool, so RAM is VRAM. mlx-community mirrors most open models with 4-bit quants ready. Reference precision. No quality loss.
What MLX expects you to type to serve Gemma 2 27B at FP16. Adjust the paths for your filesystem; the structure holds.
pip install mlx-lm mlx_lm.generate \ --model mlx-community/gemma-2-27b-fp16 \ --max-tokens 1024 \ --prompt "Hello"
FP16 — Reference precision. No quality loss.
Expect to need around 58 GB of VRAM to hold the weights at this precision. This is a dense model: every parameter runs for every token. VRAM and compute both scale with the full 27B. Fits on Single H100 or A100 80 GB — Datacenter-class card, single GPU.
Distilled from Gemini; strong at size and long cited in research.