Google · First MLX build 2 Apr 2026

gemma-4-31b

MLX TextVision apache-2.0

A 31B parameter vision and text model from Google, with 8 MLX builds, from 4-bit to bf16.

Hugging Face
Parameters
31B
From Hugging Face
Quantisation
bf16
gemma-4-31b-bf16
Memory needed
72 GB
Estimate, unified memory
Download
62.5 GB
Weights, estimated
Downloads
425
This build, last 30 days
Task
Vision and text
Text, Vision
MLX builds
8
On mlx-community
Devices
Mac
Apple silicon

Memory

Estimated from the size of the weights, plus a fifth for context and working memory and 2 GB for macOS and your apps. Long contexts need more.

Run it

Terminal · mlx-vlm
$ pip install -U mlx-vlm
$ python -m mlx_vlm.generate --model mlx-community/gemma-4-31b-bf16 --image photo.jpg --prompt "Describe this image"

MLX builds

8 on mlx-community
Click a column to sort. Smallest size and most downloads are highlighted.
gemma-4-31b-4bit 4-bit 18.4 GB 23 GB 277
gemma-4-31b-nvfp4 4-bit 18.4 GB 23 GB 37
gemma-4-31b-mxfp4 MXFP4 18.4 GB 23 GB 35
gemma-4-31b-5bit 5-bit 22.2 GB 27 GB 26
gemma-4-31b-6bit 6-bit 26.1 GB 32 GB 61
gemma-4-31b-8bit 8-bit 33.8 GB 40 GB 423
gemma-4-31b-mxfp8 MXFP8 33.8 GB 40 GB 32
gemma-4-31b-bf16 bf16 62.5 GB 72 GB 425

Sizes are estimated from Hugging Face’s parameter counts and the quantisation. Downloads are for the last 30 days.