mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-22 16:44:06 -05:00
[GH-ISSUE #16724] feat: Unload RAG models automatically after a while (or when not in use) #88763
Reference in New Issue
Block a user
Originally created by @dojoca on GitHub (Aug 19, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16724
Check Existing Issues
Problem Description
I've recently been using RAG quite heavily and it's fantastic.
Unfortunately... with only 16GB of VRAM, using ~14B parameter models + the RAG model staking up around 8GB after a while, things get tight pretty quickly.
Desired Solution you'd like
I'd like to ask for it to be possible to unload models after a period of time (or immediately once they've done their job), similar to the KEEP_ALIVE variable in Ollama?
Alternatives Considered
Manually restarting the container, various "action functions" which don't really solve the issue.
Additional Context
No response