# Modelfile · variant of gemma4:12b with a 32768 context fixed in the model itself.
# Alternative to OLLAMA_CONTEXT_LENGTH when you don't control how Ollama starts.
# Create:  ollama create gemma4-12b-32k -f Modelfile
# Use:     "model": "ollama/gemma4-12b-32k" in opencode.json (and declare that name in "models")
FROM gemma4:12b
PARAMETER num_ctx 32768
