This repository contains the working Ollama-compatible GGUF export for Alfaxad/wild-gemma-4-E4B-it, the Savanna Sentinel fine-tune of Gemma 4 E4B IT.
The final model file is:
wild-gemma-4-E4B-it.Q4_K_M.gguf
It is a single combined Gemma 4 GGUF containing the language model tensors plus the multimodal vision/projector tensors. The first split text-GGUF plus mmproj export path did not load correctly for this custom Gemma 4 model in Ollama during validation, so the final artifact was rebuilt as a combined GGUF using the official Gemma 4 metadata layout and then smoke-tested with image+text prompts.
What This Model Does
Wild Gemma 4 E4B IT is specialized for Savanna Sentinel camera-trap workflows:
Classify Serengeti camera-trap events as blank or non-blank
Identify likely species from one to three frame bursts
Return structured JSON for event interpretation
Route uncertain events for review
Support tool-agent/report-generation style JSON tasks
This GGUF is intended for local Ollama inference and deployment testing. For the full merged Transformers model, use Alfaxad/wild-gemma-4-E4B-it.
File Details
Field
Value
Architecture
Gemma 4
Quantization
Q4_K_M
Context length
131,072
GGUF size
6,325,644,864 bytes
Modalities evaluated
Image + text
Audio evaluated
No
Base model
Alfaxad/wild-gemma-4-E4B-it
Ollama Usage
The published Ollama model is intended to be used as:
ollama run alfaxad/wild-gemma4:e4b
For local creation from this repository:
bash
1hf download Alfaxad/wild-gemma-4-E4B-it-GGUF wild-gemma-4-E4B-it.Q4_K_M.gguf
2cat> Modelfile <<'EOF'
3FROM ./wild-gemma-4-E4B-it.Q4_K_M.gguf
4RENDERER gemma4
5PARSER gemma4
6PARAMETER temperature 1
7PARAMETER top_p 0.95
8PARAMETER top_k 64
9SYSTEM "You are Savanna Sentinel. Return only valid JSON."
10EOF11ollama create wild-gemma4:e4b -f Modelfile
12ollama run wild-gemma4:e4b
The model is configured to follow the Gemma 4/Ollama defaults used in evaluation:
text
1temperature = 1.0
2top_p = 0.95
3top_k = 64
For multimodal prompts, place images before text. This matches the Gemma 4 and Ollama guidance used during validation.
Thinking Mode
Gemma 4 supports thinking mode. In Ollama, enable thinking through the runtime support or by starting the system prompt with:
<|think|>
For non-thinking schema production, omit that token and request strict JSON. When thinking is enabled, strip thought-channel content and validate only the final JSON. Do not put prior thought content into multi-turn history.
Evaluation Snapshot
These are diagnostic evals from the corrected Ollama/GGUF export:
Mode
Rows
JSON valid
Species exact
Species overlap
Blank correct
Review correct
Non-thinking
40
0.725
0.364
0.364
0.889
1.000
Thinking
24
0.792
0.500
0.500
1.000
1.000
The metrics are useful for regression checks and export validation, not as a final scientific benchmark. Full metrics and predictions are included under metrics/.
1You are Savanna Sentinel. Return only valid JSON.
23Classify this Serengeti camera-trap capture event. Use the image burst first, then the metadata. Return JSON matching savanna_sentinel_event_v1.
Example target shape:
json
1{2"schema_version":"savanna_sentinel_event_v1",3"capture_event_id":"ASG...",4"blank":false,5"detections":[6{7"species":"zebra",8"count_bin":"3",9"behaviors":{10"standing":false,11"resting":false,12"moving":true,13"eating":false,14"interacting":false15},16"young_present":false,17"confidence":"high",18"evidence":{19"visual_basis":"Striped equids visible across the image burst.",20"frames_used":[1,2,3]21}22}23],24"review":{25"review_needed":false,26"reasons":[]27}28}
Limitations
The Q4_K_M export is smaller and faster than the merged HF model, but quantization can change behavior.
JSON validity is not guaranteed; callers should parse and validate outputs.
Tool/report tasks remain weaker than the core event/review tasks in the diagnostic evals.
Audio support from Gemma 4 E4B was not evaluated in this Savanna Sentinel export.
This model is specialized for Snapshot Serengeti-style camera-trap data and should be validated before use on other regions or camera systems.