summaryrefslogtreecommitdiffstats
path: root/desktop/modules/ai/AiPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/modules/ai/AiPage.qml')
-rw-r--r--desktop/modules/ai/AiPage.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/desktop/modules/ai/AiPage.qml b/desktop/modules/ai/AiPage.qml
index e89132a..369c1b5 100644
--- a/desktop/modules/ai/AiPage.qml
+++ b/desktop/modules/ai/AiPage.qml
@@ -12,7 +12,8 @@
import QtQuick
import "../.."
-// Engines are read-only: stopping either would take its web UI down with it.
+// Engines are never stopped, that would take their web UI down with them;
+// llama's model can be unloaded, which frees the VRAM and leaves the server up.
Column {
id: page
@@ -42,6 +43,8 @@ Column {
return modelData.name === "llama" ? "No model loaded" : "Running";
return (modelData.busy ? "Generating" : "Idle") + " · " + modelData.model;
}
+ action: modelData.name === "llama" && modelData.model !== "" ? "Unload" : ""
+ onTriggered: page.ai.unload(modelData.model)
}
}