How to use from
Pi
Start the MLX server
# Install MLX LM:
uv tool install mlx-lm
# Start a local OpenAI-compatible server:
mlx_lm.server --model "mlx-community/gemma-4-e2b-it-5bit"
Configure the model in Pi
# Install Pi:
npm install -g @earendil-works/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "mlx-lm": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "mlx-community/gemma-4-e2b-it-5bit"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

mlx-community/gemma-4-e2b-it-5bit

MLX conversion of google/gemma-4-E2B-it for Apple silicon.

  • Source revision: 70af34e20bd4b7a91f0de6b22675850c43922a03
  • Variant: 5bit
  • Converted with mlx_vlm.convert from the local mlx-vlm checkout.

Usage

pip install mlx-vlm
python -m mlx_vlm.generate --model mlx-community/gemma-4-e2b-it-5bit --prompt "Describe this image." --image path/to/image.jpg
Downloads last month
59
Safetensors
Model size
5B params
Tensor type
BF16
·
U32
·
MLX
Hardware compatibility
Log In to add your hardware

5-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for mlx-community/gemma-4-e2b-it-5bit

Quantized
(332)
this model

Collection including mlx-community/gemma-4-e2b-it-5bit