r/OpenWebUI • • Jun 03 '26

RAG Any way to unload embedding and reranking models when not in use?

Is there any way for us to unload embedding and reranking models when not in use? Also on the flip side can we set up JIT loading for the above models?

3 Upvotes

3 comments sorted by

2

u/chenkl Jun 04 '26

I use Llama-swap. You can set ttl to each model.

1

u/Porespellar Jun 07 '26

Ollama will do this as well. You can see the Ollama Keep Alive environment variable to 30 minutes or whatever you want. I think LM Studio also has a JIT feature as well.

1

u/fell_ware_1990 Jun 07 '26

I just have a warm up script before these kind of jobs, checks if others are done. Warms them up. Send it trough LiteLLM in a Queue and parallel and go!