1# 24 GB Mac — Smaller, imatrix-calibrated
2ollama pull batiai/gemma4-31b:iq3
3
4# 24 GB+ Mac — Imatrix 4-bit (recommended)
5ollama pull batiai/gemma4-31b:iq4
6
7# 32 GB+ Mac — Higher quality
8ollama pull batiai/gemma4-31b:q4
9
10# 36 GB+ Mac — Highest on-device quality
11ollama pull batiai/gemma4-31b:q6
Upstream Gemma 4 31B-it is
multimodal (text + image + video understanding — but no audio; for audio see the smaller
E2B /
E4B variants). In the GGUF ecosystem this is delivered as
two files: a main
model.gguf (text tower) and a separate
mmproj.gguf (multi-modal projector — the vision tower). We ship
both, separate, so you can pick:
1# Pick a main model (text tower)
2wget https://huggingface.co/batiai/Gemma-4-31B-it-GGUF/resolve/main/google-gemma-4-31B-it-IQ4_XS.gguf
3
4# Pick the mmproj (vision tower) — Q6_K is the sweet spot, BF16 if you want zero loss
5wget https://huggingface.co/batiai/Gemma-4-31B-it-GGUF/resolve/main/mmproj-Q6_K.gguf
1llama-server \
2 -m google-gemma-4-31B-it-IQ4_XS.gguf \
3 --mmproj mmproj-Q6_K.gguf \
4 -c 32768 --host 127.0.0.1 --port 8080
5
6curl http://127.0.0.1:8080/v1/chat/completions -d '{
7 "messages": [{
8 "role": "user",
9 "content": [
10 {"type": "image_url", "image_url": {"url": "data:image/jpeg;base64,..."}},
11 {"type": "text", "text": "What does this screenshot show?"}
12 ]
13 }]
14}'
1llama-mtmd-cli \
2 -m google-gemma-4-31B-it-IQ4_XS.gguf \
3 --mmproj mmproj-Q6_K.gguf \
4 --image ~/Desktop/photo.jpg \
5 -p "describe this image"
(Q8_0 not available because some vision tensors have shapes incompatible with Q8_0's column alignment — applies to every quantizer of this model. Q6_K's K-quant block layout handles them.)
BatiFlow is a
macOS-native AI desktop automation app — just 5 MB, built with Swift.
Mirrors the upstream
Gemma license. Commercial use permitted per Google's
Gemma terms.
BatiAI's quantization pipeline is provided under MIT.