Optimize Ollama Models for BoltAI
1. Prepare the Modelfile for the new model
FROM <your model>
PARAMETER num_ctx <context size>FROM qwen2.5-coder:7b
PARAMETER num_ctx 320002. Create a new model based on the modified Modelfile
ollama create <model name> -f ./Modelfile> ollama list
NAME ID SIZE MODIFIED
qwen2.5-coder-32k:latest b8989a4336cf 4.7 GB 12 seconds ago
qwen2.5-coder:7b 2b0496514337 4.7 GB 12 seconds ago
qwen2.5-coder:latest 2b0496514337 4.7 GB About a minute ago
llama3.2-vision:latest 38107a0cd119 7.9 GB 5 days ago
llama3.2:3b a80c4f17acd5 2.0 GB 6 weeks ago
llama3.2:1b baf6a787fdff 1.3 GB 6 weeks ago
llama3.1:latest a340353013fd 4.7 GB 3 months ago
nomic-embed-text:latest 0a109f422b47 274 MB 6 months ago
llava:latest 8dd30f6b0cb1 4.7 GB 6 months ago 3. Try the new model in BoltAI

Setting the context window parameter at runtime
And that's it for now 👋
Last updated