57 3 weeks ago

Gemma 4 31B text-only instruct model with tool-calling and thinking support, quantized to Q3_K_S and optimized for 16 GB VRAM. Supports up to 256K context, with approximately 64K tokens fitting fully within 16 GB VRAM in tested configurations.

tools thinking 31b
ollama run byczech/gemma4-it-16G-Q3_K_S:31b

Details

3 weeks ago

a3085fcdc8ec · 13GB ·

gemma4
·
30.7B
·
Q3_K_S
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR US
{ "temperature": 1, "top_k": 64, "top_p": 0.95 }
{{ .Prompt }}

Readme

Context length

The model supports a maximum context window of up to 256K tokens.

On a 16 GB GPU, approximately 64,000 tokens can fit fully within VRAM in tested configurations using a quantized KV cache. Slightly larger context sizes may begin to spill into system RAM, reducing inference performance.

The exact GPU-resident limit may vary depending on:

  • Ollama version
  • GPU architecture and driver
  • Compute backend
  • KV-cache type
  • Runtime overhead
  • Other applications using GPU memory
  • Parallel requests and loaded models

For a good balance between context size and fully GPU-resident inference on a 16 GB GPU, a context size of around 64K tokens is recommended.