-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSTART_LOCAL_LLM.bat
More file actions
62 lines (54 loc) · 1.57 KB
/
START_LOCAL_LLM.bat
File metadata and controls
62 lines (54 loc) · 1.57 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@echo off
REM Agent Arena - Local LLM Agent
REM Starts the Python IPC server with the local LLM agent (llama.cpp)
REM Then open Godot, load scenes/foraging.tscn, press F5, then SPACE
echo ========================================
echo Agent Arena - Local LLM Agent
echo ========================================
echo.
cd /d "%~dp0\python"
REM Check if venv exists
if not exist "venv\" (
echo ERROR: Python virtual environment not found!
echo Please run: python -m venv venv
echo Then install dependencies: venv\Scripts\pip install -r requirements.txt
pause
exit /b 1
)
REM Activate venv
echo Activating Python virtual environment...
call venv\Scripts\activate.bat
REM Check if required packages are installed
python -c "import fastapi, uvicorn" 2>nul
if errorlevel 1 (
echo.
echo ERROR: Required packages not installed!
echo Installing dependencies...
pip install fastapi uvicorn
if errorlevel 1 (
echo.
echo Failed to install dependencies.
pause
exit /b 1
)
)
echo.
echo Starting Local LLM Agent (llama.cpp)...
echo Server will be available at: http://127.0.0.1:5000
echo Debug inspector at: http://127.0.0.1:5000/debug
echo.
echo Next steps:
echo 1. Open Godot and load scenes/foraging.tscn
echo 2. Press F5 to run the scene
echo 3. Press SPACE to start the simulation
echo.
echo Press Ctrl+C to stop the server
echo ========================================
echo.
python run_foraging_demo.py
REM If server exits, pause so user can see error
if errorlevel 1 (
echo.
echo Server exited with error!
pause
)