How to use from
OpenClaw
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-e4b-it-4bit"
Configure OpenClaw
# Install OpenClaw:
npm install -g openclaw@latest
# Register the local server and set it as the default model:
openclaw onboard --non-interactive --mode local \
  --auth-choice custom-api-key \
  --custom-base-url http://127.0.0.1:8080/v1 \
  --custom-model-id "mlx-community/gemma-4-e4b-it-4bit" \
  --custom-provider-id mlx-lm \
  --custom-compatibility openai \
  --custom-text-input \
  --accept-risk \
  --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Quick Links

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

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

  • Source revision: fee6332c1abaafb77f6f9624236c63aa2f1d0187
  • 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-e4b-it-4bit --prompt "Describe this image." --image path/to/image.jpg
Downloads last month
61,919
Safetensors
Model size
2B 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-e4b-it-4bit

Quantized
(298)
this model
Adapters
4 models
Quantizations
1 model

Spaces using mlx-community/gemma-4-e4b-it-4bit 2

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