mlx-optiq
← Models

gemma-4-e4b-it-OptiQ-4bit

google/gemma-4-E4B-it, quantized by OptiQ for Apple Silicon; takes images.

vision
On disk7.5 GB
Memoryabout 10 GB
Capability Score68.92
Imagesyes

Capability Score breakdown

The six metrics behind this model's Capability Score of 68.92, as reported in the model card. Values are compared with uniform 4-bit.

  • This model
  • Uniform 4-bit
Capability Score breakdown: gemma-4-e4b-it-OptiQ-4bitMMLU: This model 58.8, Uniform 4-bit 52.9; GSM8K: This model 77.8, Uniform 4-bit 46.1; IFEval: This model 70.6, Uniform 4-bit 68.6; BFCL-V3: This model 87.5, Uniform 4-bit 85.0; HumanEval: This model 76.8, Uniform 4-bit 58.5; HashHop: This model 42.0, Uniform 4-bit 20.0MMLU58.852.9GSM8K77.846.1IFEval70.668.6BFCL-V387.585.0HumanEval76.858.5HashHop42.020.0

Use it

Install

pip install mlx-optiq

Serve it

An OpenAI- and Anthropic-compatible server on this Mac. Every app below can use it.

optiq serve --model mlx-community/gemma-4-e4b-it-OptiQ-4bit

OptiQ Code

The terminal coding agent uses whatever model optiq serve is running.

optiq serve --model mlx-community/gemma-4-e4b-it-OptiQ-4bit
optiq code

OptiQ Lab

optiq lab --model mlx-community/gemma-4-e4b-it-OptiQ-4bit

Claude Code

optiq run claude -m mlx-community/gemma-4-e4b-it-OptiQ-4bit

Codex

optiq run codex -m mlx-community/gemma-4-e4b-it-OptiQ-4bit

OpenCode

optiq run opencode -m mlx-community/gemma-4-e4b-it-OptiQ-4bit

Mistral Vibe

optiq run vibe -m mlx-community/gemma-4-e4b-it-OptiQ-4bit

Hermes Agent

optiq run hermes -m mlx-community/gemma-4-e4b-it-OptiQ-4bit

OpenClaw

optiq run openclaw -m mlx-community/gemma-4-e4b-it-OptiQ-4bit

optiq run starts optiq serve if it is not running, sets the agent up for this session only, and stops the server when the agent exits.

mlx-lm, text only

from mlx_lm import load, generate

model, tokenizer = load("mlx-community/gemma-4-e4b-it-OptiQ-4bit")
print(generate(model, tokenizer, prompt="Hello", max_tokens=256))

Details

FamilyGemma-4 · Gemma-4 docs
ArchitectureGemma 4
Base modelgoogle/gemma-4-E4B-it
Size on disk7.5 GB
Memory neededabout 10 GB
Imagesyes, through optiq serve and the Lab
Capability Score68.92 (from the model card)
Downloads1,693 in the last month
Updated2026-10-18
Hugging Facemlx-community/gemma-4-e4b-it-OptiQ-4bit