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

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
49,406
Safetensors
Model size
1B 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 mlx-community/gemma-4-e2b-it-4bit

Quantized
(318)
this model
Adapters
4 models
Quantizations
3 models

Space using mlx-community/gemma-4-e2b-it-4bit 1

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