55 Downloads Updated 4 days ago
ollama run edtorre/gemma4-26b-a4b-it-qat-agent
Updated 4 days ago
4 days ago
8c22d78567c9 · 16GB ·
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.