by default, ollama sets a very low context size with any model it launches. To change this, set the num_ctx parameter on a model and save it as a new model:
ollama run modelname:12b
/set parameter num_ctx 32768
/save modelname:12b-32k
Update .ollama/config.json to include the new model.
Start new model with ‘ollama launch opencode’ pick newly configured model from the list
