Instructions to use MichaelAnthony/gemma4-e2b-Snowfox-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use MichaelAnthony/gemma4-e2b-Snowfox-MLX with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("MichaelAnthony/gemma4-e2b-Snowfox-MLX") config = load_config("MichaelAnthony/gemma4-e2b-Snowfox-MLX") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use MichaelAnthony/gemma4-e2b-Snowfox-MLX with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "MichaelAnthony/gemma4-e2b-Snowfox-MLX"
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": "MichaelAnthony/gemma4-e2b-Snowfox-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use MichaelAnthony/gemma4-e2b-Snowfox-MLX with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "MichaelAnthony/gemma4-e2b-Snowfox-MLX"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default MichaelAnthony/gemma4-e2b-Snowfox-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use MichaelAnthony/gemma4-e2b-Snowfox-MLX with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "MichaelAnthony/gemma4-e2b-Snowfox-MLX"
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 "MichaelAnthony/gemma4-e2b-Snowfox-MLX" \ --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"
Add oMLX oQ build matrix
Browse files- omlx_build_matrix.json +69 -0
omlx_build_matrix.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"source": ".",
|
| 3 |
+
"source_model_type": "gemma4",
|
| 4 |
+
"floating_point_variant": "gemma4-e2b-Snowfox-MLX-FP16",
|
| 5 |
+
"standard_mlx_quantization": false,
|
| 6 |
+
"notes": "Gemma 4 E2B multimodal source (vision + audio + text). oMLX oQ was validated against qwen3_5 (Hedgehog); Gemma 4 support is unverified until the first successful build on Apple Silicon.",
|
| 7 |
+
"variants": [
|
| 8 |
+
{
|
| 9 |
+
"name": "gemma4-e2b-Snowfox-MLX-oQ4",
|
| 10 |
+
"family": "oQ",
|
| 11 |
+
"oq_level": 4,
|
| 12 |
+
"enhanced": false,
|
| 13 |
+
"dtype": "float16",
|
| 14 |
+
"sensitivity_model_path": ".",
|
| 15 |
+
"preserve_mtp": false,
|
| 16 |
+
"text_only": false
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"name": "gemma4-e2b-Snowfox-MLX-oQ6",
|
| 20 |
+
"family": "oQ",
|
| 21 |
+
"oq_level": 6,
|
| 22 |
+
"enhanced": false,
|
| 23 |
+
"dtype": "float16",
|
| 24 |
+
"sensitivity_model_path": ".",
|
| 25 |
+
"preserve_mtp": false,
|
| 26 |
+
"text_only": false
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "gemma4-e2b-Snowfox-MLX-oQ8",
|
| 30 |
+
"family": "oQ",
|
| 31 |
+
"oq_level": 8,
|
| 32 |
+
"enhanced": false,
|
| 33 |
+
"dtype": "float16",
|
| 34 |
+
"sensitivity_model_path": ".",
|
| 35 |
+
"preserve_mtp": false,
|
| 36 |
+
"text_only": false
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"name": "gemma4-e2b-Snowfox-MLX-oQ4e",
|
| 40 |
+
"family": "oQe",
|
| 41 |
+
"oq_level": 4,
|
| 42 |
+
"enhanced": true,
|
| 43 |
+
"dtype": "float16",
|
| 44 |
+
"sensitivity_model_path": ".",
|
| 45 |
+
"preserve_mtp": false,
|
| 46 |
+
"text_only": false
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"name": "gemma4-e2b-Snowfox-MLX-oQ6e",
|
| 50 |
+
"family": "oQe",
|
| 51 |
+
"oq_level": 6,
|
| 52 |
+
"enhanced": true,
|
| 53 |
+
"dtype": "float16",
|
| 54 |
+
"sensitivity_model_path": ".",
|
| 55 |
+
"preserve_mtp": false,
|
| 56 |
+
"text_only": false
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"name": "gemma4-e2b-Snowfox-MLX-oQ8e",
|
| 60 |
+
"family": "oQe",
|
| 61 |
+
"oq_level": 8,
|
| 62 |
+
"enhanced": true,
|
| 63 |
+
"dtype": "float16",
|
| 64 |
+
"sensitivity_model_path": ".",
|
| 65 |
+
"preserve_mtp": false,
|
| 66 |
+
"text_only": false
|
| 67 |
+
}
|
| 68 |
+
]
|
| 69 |
+
}
|