mirror of
https://github.com/Ladebeze66/llm_lab_perso.git
synced 2025-12-13 09:06:50 +01:00
32 lines
812 B
Batchfile
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 |