forked from ninjahawk/hollow-agentOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstop.bat
More file actions
32 lines (27 loc) · 990 Bytes
/
Copy pathstop.bat
File metadata and controls
32 lines (27 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off
:: Hollow AgentOS — Stop & VRAM clear
:: Stops all containers and unloads models from VRAM.
:: Run launch.bat or open the monitor to resume later.
title Hollow AgentOS — Stopping
cd /d "%~dp0"
echo [..] Stopping Hollow AgentOS...
docker compose stop
if %errorlevel% neq 0 (
echo [!!] Docker stop failed — is Docker Desktop running?
pause
exit /b 1
)
echo [OK] Containers stopped.
echo [..] Unloading models from VRAM...
curl -s -X POST http://localhost:11434/api/generate ^
-H "Content-Type: application/json" ^
-d "{\"model\":\"qwen3.6:35b-a3b\",\"keep_alive\":0,\"prompt\":\"\"}" >nul 2>&1
curl -s -X POST http://localhost:11434/api/generate ^
-H "Content-Type: application/json" ^
-d "{\"model\":\"nomic-embed-text\",\"keep_alive\":0,\"prompt\":\"\"}" >nul 2>&1
echo [OK] VRAM cleared.
echo.
echo Hollow AgentOS is stopped. Agent memory and state are preserved.
echo Run launch.bat (or open the monitor) to resume where you left off.
echo.
pause