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"
| { | |
| "artifacts": [ | |
| { | |
| "bytes": 18955, | |
| "name": "chat_template.jinja", | |
| "sha256": "c0e1a4e78b51cbe4924a195b1939a1e0728e86054736d92f370692d1709abb4c" | |
| }, | |
| { | |
| "bytes": 4942, | |
| "name": "config.json", | |
| "sha256": "d3ac8a5ad03611ca73826b11268f43bab438c7eeb5d00db815a1f96fa5ca8215" | |
| }, | |
| { | |
| "bytes": 217, | |
| "name": "generation_config.json", | |
| "sha256": "93311eec53f24b404d07b04c461a7ed80d1e258550228fdc0ebdde2cf464b19d" | |
| }, | |
| { | |
| "bytes": 1422125512, | |
| "name": "model-00001-of-00004.safetensors", | |
| "sha256": "8868bb293c75a39e455c4f8176a77a80d55405bb8957ae757a73869398bab8da" | |
| }, | |
| { | |
| "bytes": 4697620648, | |
| "name": "model-00002-of-00004.safetensors", | |
| "sha256": "c513ef8637e9d09d63a7726887893b3c66fa2ecfa5a71438b301d9e913184a6a" | |
| }, | |
| { | |
| "bytes": 3999801922, | |
| "name": "model-00003-of-00004.safetensors", | |
| "sha256": "39e1cbf14c4bd2803d99c18103ee4e2ce7df7f82b490fd6d34e28aa86964f6e7" | |
| }, | |
| { | |
| "bytes": 89292836, | |
| "name": "model-00004-of-00004.safetensors", | |
| "sha256": "228c22b1e338d91b817463eab0ff82f9950869b57de535211b73535cc1370c54" | |
| }, | |
| { | |
| "bytes": 191538, | |
| "name": "model.safetensors.index.json", | |
| "sha256": "7199a67092b21f031df44d119ce0e776ff9283bd75243648647333469e34a9e1" | |
| }, | |
| { | |
| "bytes": 1764, | |
| "name": "processor_config.json", | |
| "sha256": "24d00232e58cfa179fe8b3911c788d4aad9a6279d778ebe4c72e82623b6197f9" | |
| }, | |
| { | |
| "bytes": 32169626, | |
| "name": "tokenizer.json", | |
| "sha256": "cc8d3a0ce36466ccc1278bf987df5f71db1719b9ca6b4118264f45cb627bfe0f" | |
| }, | |
| { | |
| "bytes": 27101, | |
| "name": "tokenizer_config.json", | |
| "sha256": "fbeb6e816b15d20925b803215519e709c39abe46fd61321e17d285b03831d2a0" | |
| } | |
| ], | |
| "base_model": "google/gemma-4-E2B-it-qat-q4_0-unquantized", | |
| "base_model_revision": "6befbaca7398925921802abd1f277b495b78b738", | |
| "conversion_contract": "Gemma 4 MLX-VLM tensor names and layouts", | |
| "model_label": "gemma4-e2b-Snowfox", | |
| "runtime_validation": "Not run here; requires Apple Silicon with mlx-vlm.", | |
| "schema_version": 1, | |
| "shard_count": 4, | |
| "source_format": "Hugging Face safetensors BF16", | |
| "source_max_abs": 900.0, | |
| "source_model_bytes": 10208852878, | |
| "source_model_sha256": "b8fac0ad2cafcb0e7fe29ca6c1deda1389c645751599fe716d4b6f6c0387a2d5", | |
| "source_stored_values": 5104298467, | |
| "target_dtype": "float16", | |
| "target_format": "MLX safetensors", | |
| "tensor_count": 1951 | |
| } | |