mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
issue: System switches to specific model after current conversation ends, interrupting workflow #4282
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Yoikllong on GitHub (Mar 6, 2025).
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
0.5.13
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The system should retain the user-selected model (
qwq:latest) for subsequent interactions after completing a conversation or task, unless explicitly changed by the user. Background processes (e.g., resource cleanup) should not terminate active models or force unintended switches to other models likedeepseek-r1:32b.Actual Behavior
While the frontend interface does not explicitly show a model switch, interactions experience significant lag and interruptions due to Ollama's backend repeatedly terminating the active
qwq:latestinstance and restarting it alongsidedeepseek-r1:32b. This constant switching forces time-consuming reinitialization of models (e.g., GPU/CPU memory allocation), breaking the conversation flow. Users must wait for each model reload, disrupting real-time continuity and creating delays that worsen with frequent context switches between instances.Steps to Reproduce
Launch Open-WebUI with Ollama and ensure both models (
qwq:latest,deepseek-r1:32b) are installed.Start a conversation using the
qwq:latestmodel:Complete the conversation or task (e.g., exit the chat session).
Immediately run
$ ollama psagain to observe:qwq:latestshows a "Stopping..." state and terminates.deepseek-r1:32bstarts automatically without user input.Logs & Screenshots
Include logs from Ollama or Docker showing the model termination/switch. Example outputs:
Attach screenshots of the model switch in Open-WebUI's interface (if applicable).
Additional Information
The issue likely arises from Open-WebUI invoking specific models like deepseek-r1:32b during conversation summarization or dialogue tagging functionality, which inadvertently triggers an unintended switch after task completion.
@rgaricano commented on GitHub (Mar 6, 2025):
What is your settings in interface, models for tasks (local & external) , title & tag generation,..., are you tried swithing there?
Are you tried to choose a small model for local tasks and keep it permantly loaded in mem? (with ollama env variables)
For reference:
https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-preload-a-model-into-ollama-to-get-faster-response-times
https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-keep-a-model-loaded-in-memory-or-make-it-unload-immediately
@Yoikllong commented on GitHub (Mar 7, 2025):
Thank you for your response! I appreciate the suggestions, and I wanted to clarify a few points to help narrow down the issue.
I am already familiar with Ollama's configuration options for persisting models (e.g.,
OLLAMA_KEEPALIVE, environment variables) and have explicitly tested them. For instance:ollama run --keepalive 5h qwqdirectly to ensure the model remains loaded.The problem appears specific to Open WebUI’s interaction with Ollama. After completing a conversation (e.g., closing a chat session), Open WebUI automatically triggers the termination of
qwq:latestand initiatesdeepseek-r1:32b, even though no user action selects the latter model. This is evident from Ollama’s logs showing the abrupt state transitions (attached earlier).Key Observations
qwq:latestis selected in the frontend for conversations. No other models are explicitly assigned to tasks like summarization or tagging.Would it be possible to investigate whether Open WebUI’s background processes (e.g., title generation, tags generation) inadvertently call
deepseek-r1:32b? The issue does not arise when using Ollama standalone or with other interfaces, which isolates the problem to this repository’s integration logic.Thank you again for your help in troubleshooting! Let me know if additional logs or testing steps would assist.
Additional Context:
0.5.12and0.5.13).Looking forward to your insights!
Here is my UI setting. I do have Title and Tag Generation enabled.
@Yoikllong commented on GitHub (Mar 7, 2025):
Oops – turns out this was entirely my fault! 😅
After double-checking my Open WebUI settings, I realized I accidentally set
deepseek-r1:32bas the default model for background tasks in the interface configuration. This caused Ollama to trigger it automatically after conversations without any UI indication. Talk about a classic "user error" moment!Thank you so much for your prompt response – even though it turned out to be a false alarm, your questions helped me catch this oversight.
Apologies again for the confusion and wasting your time on my misconfiguration! Huge thanks to the Open WebUI team for building such awesome tools.