55 4 days ago

Gemma 4 26B tuned for agentic use. 64K context window, flash attention + Q8 KV cache quantization for reduced VRAM. Temperature 0.7, output capped at 8192 tokens.

vision tools thinking
ollama run edtorre/gemma4-26b-a4b-it-qat-agent

Details

4 days ago

8c22d78567c9 · 16GB ·

gemma4
·
25.2B
·
Q4_0
clip
·
573M
·
BF16
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR US
{ "num_ctx": 65536, "num_predict": 4096, "temperature": 0.7, "top_k": 64, "top_p

Readme

Gemma 4 26B (A4B, QAT Q4_0) tuned for agentic use with a 64K context window.

Modelfile parameters:
- num_ctx 65536 — 64K context window, enough for large system prompts, tool schemas, and conversation history
- temperature 0.7 — tighter sampling for reliable tool-use and structured output
- top_p 0.95, top_k 64 — standard Gemma defaults
- num_predict 8192 — caps output generation length

Server-side settings (set via OLLAMA_ env vars, not the Modelfile):*
- OLLAMA_FLASH_ATTENTION=1 — reduces KV cache memory
- OLLAMA_KV_CACHE_TYPE=q8_0 — halves KV cache VRAM vs f16

VRAM: ~16.8 GB on a 20 GB GPU at 64K context (model 15 GB + ~1.8 GB KV cache). Flash attention + Q8 KV cache saves ~1 GB compared to f16 defaults, leaving ~3.2 GB headroom.

Built from gemma4:26b-a4b-it-qat with parameter overrides only — model weights are unchanged.Create_lovable_AI_robot_mascot_202607081906.jpeg