-
|
Hi, Thank you for the new features, especially the model router in the web UI. It’s been really useful to switch models on the fly. I was wondering: is there an existing way to automatically unload model after a period of inactivity? I’ve noticed that model stay loaded in VRAM until manually unloaded or when switching model. Since I use llama.cpp on my main machine, this sometimes causes issues when switching to other applications that use VRAM and i forget to manually unload it. Maybe I missed a setting or a command that enables this? I acutally use the preset.ini method --models-max 1. If it’s not already possible, would it be feasible to add an option to unload models automatically after, say, 5 minutes of inactivity? This could help free up VRAM when the app is not in use. Thanks for your work |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I'm responding to myself: the parameter For example, with a preset file |
Beta Was this translation helpful? Give feedback.
I'm responding to myself: the parameter
--sleep-idle-secondsallows unloading the model from VRAM after a specified number of seconds, as indicated in the PR: #18228.The model is reloaded again when a new task arrives.
Note that in the UI, the model still appears as "active" (a green dot next to the model name), but the VRAM is indeed freed.
For example, with a preset file
preset.ini: