llm_lab_perso/lancer-monitor.bat
2025-04-21 17:36:30 +02:00

32 lines
812 B
Batchfile

@echo off
echo === LLM Lab System Monitor ===
echo.
REM Check if virtual environment exists
if not exist "llmlab" (
echo Virtual environment not found. Please run setup_env.bat to create it.
pause
exit /b 1
)
REM Activate virtual environment
call llmlab\Scripts\activate.bat
REM Check required dependencies
pip show psutil tkinter > nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo Installing missing dependencies...
pip install psutil
REM Tkinter is included with Python, not installable via pip
)
echo Starting system monitor...
echo The monitor will display running Ollama models in the "Ollama" tab.
echo.
echo Press Ctrl+C in the monitor window to stop.
REM Launch the monitor
python -m utils.system_monitor
REM Deactivate virtual environment when done
call llmlab\Scripts\deactivate.bat