Google · First MLX build 2 Apr 2026 · In Core AI since 23 Oct 2026
gemma-4-E4B-it
MLXCore AI
TextVision apache-2.0
A 8B parameter vision and text model from Google, with 9 MLX builds, from 4-bit to bf16 and Apple Core AI export recipes for iOS.
- Parameters
- 8B From Hugging Face
- Quantisation
- 4-bit gemma-4-e4b-it-4bit
- Memory needed
- 8 GB Estimate, unified memory
- Download
- 5.1 GB Weights, estimated
- Downloads
- 26K This build, last 30 days
- Task
- Vision and text Text, Vision
- MLX builds
- 9 On mlx-community
- Devices
- Mac Apple silicon
- Parameters
- 8B From Hugging Face
- Compression
- None Apple’s preset
- Memory needed
- — Parameter count not published
- Context
- 128K tokens Fixed at export
- Precision
- FP16 Compute precision
- Platforms
- iOS iPhone
- Export presets
- 1 In Apple’s registry
- Listed by Apple
- 23 Oct 2026 First registry commit
Memory
Will it fit?Needs about 8 GB at 4-bit
8 GB
16 GB
24 GB
32 GB
64 GB
128 GB
Fits with headroomTight, close other appsWon’t fit
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-e4b-it-4bit --image photo.jpg --prompt "Describe this image"
Memory
There is no memory estimate: the parameter count for this model is not published on Hugging Face.
Export it
Terminal · uv$ git clone https://github.com/apple/coreai-models
$ cd coreai-models
$ uv run coreai.llm.export gemma4-e4b-it --platform iOS
Apple publishes the recipe, not a ready-made package: these commands convert the original weights to a Core AI .aimodel on your Mac. See the repository for requirements.
MLX builds
9 on mlx-community| gemma-4-e4b-it-4bit | 4-bit | 5.1 GB | 8 GB | 26K |
|---|---|---|---|---|
| gemma-4-e4b-it-mxfp4 | MXFP4 | 5.1 GB | 8 GB | 265 |
| gemma-4-e4b-it-nvfp4 | 4-bit | 5.1 GB | 8 GB | 241 |
| gemma-4-e4b-it-OptiQ-4bit | 4-bit | 5.2 GB | 8 GB | 1.1K |
| gemma-4-e4b-it-5bit | 5-bit | 6.1 GB | 9 GB | 93 |
| gemma-4-e4b-it-6bit | 6-bit | 7.0 GB | 10 GB | 497 |
| gemma-4-e4b-it-8bit | 8-bit | 8.9 GB | 12 GB | 1.9K |
| gemma-4-e4b-it-mxfp8 | MXFP8 | 8.9 GB | 12 GB | 236 |
| gemma-4-e4b-it-bf16 | bf16 | 15.9 GB | 20 GB | 595 |
Sizes are estimated from Hugging Face’s parameter counts and the quantisation. Downloads are for the last 30 days.
Core AI export presets
From Apple’s registry| Preset | Platform | Compression | Precision | Context |
|---|---|---|---|---|
| gemma4-e4b-it Exported via models/gemma4/export.py (standalone recipe -- doesn't fit coreai.llm.export's single-graph pipeline: a per-context blocked ladder of statically-shaped programs, externalized Per-Layer Embeddings, and precomputed dual-RoPE rows). Pass --include-vision for image input. |
iOS | None | FP16 | 128K |