Models reference

All official models on ollama.com start with a max context size of 2048 tokens with some exceptions. To increase that to 12345 tokens you would create a modelfile like this:

FROM sourcemodel
PARAMETER num_ctx 12345

Then create the new model and optionally publish it.

model nameparametersdefault context sizemax context sizeMem for full contextFull Context Model
gemma 29 billion40968192?m/gemma2
gemma 227 billion40968192m/gemma2 27b
llama37 billion20488192?m/llama3
qwen27 billion204832768m/qwen2

Reach out to me on Twitter at @technovangelist if you have any additional information to share.