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 "hellowsherlock/gemma-4-e2b-it-4bit"
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": "hellowsherlock/gemma-4-e2b-it-4bit"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

This repository is a public redistribution of mlx-community/gemma-4-e2b-it-4bit, which was converted to MLX 4-bit format by MLX Community from Google's official google/gemma-4-e2b-it / google/gemma-4-E2B-it. Weights remain under the Gemma license. This copy is not affiliated with, endorsed by, or sponsored by Google, Hugging Face, or MLX Community.

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

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

  • Source revision: 70af34e20bd4b7a91f0de6b22675850c43922a03
  • Variant: 4bit
  • 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-4bit --prompt "Describe this image." --image path/to/image.jpg
Downloads last month
22
Safetensors
Model size
5B params
Tensor type
BF16
·
U32
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

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

Model tree for hellowsherlock/gemma-4-e2b-it-4bit

Quantized
(418)
this model