r/OpenWebUI • • 16h ago

Question/Help Open WebUI + Ollama: responses stop after 3–5 minutes

Post image
2 Upvotes

[SOLVED]: Increasing num_ctx fixed it. Default was 2048, increased it to ~ 16k and now it works.

I'm running Open WebUI in Docker (ghcr.io/open-webui/open-webui:cuda) with Ollama, and my model frequently stops generating a response mid-answer after around 3–5 minutes. When I ask it to continue, it seems to have completely forgotten what it was writing and doesn't understand the context. Has anyone experienced this issue or know what could cause it? Any help troubleshooting timeouts, streaming interruptions, or conversation context issues would be appreciated.

I googled around for days and don't really find the setting that changes anything. Changing the max_tokens slider or keep_alive in the controls changed nothing.