mirror of
https://github.com/vegu-ai/talemate.git
synced 2025-12-28 16:06:38 +01:00
* move memory agent to directory structure * chromadb settings rework * memory agent improvements embedding presets support switching embeddings without restart support custom sentence transformer embeddings * toggle to hide / show disabled clients * add memory debug tools * chromadb no longer needs its dedicated config entry * add missing emits * fix initial value * hidden disabled clients no longer cause enumeration issues with client actions * improve memory agent error handling and hot reloading * more memory agent error handling * DEBUG_MEMORY_REQUESTS off * relock * sim suite: fix issue with removing or changing characters * relock * fix issue where actor dialogue editor would break with multiple characters in the scene * remove cruft * implement interrupt function * margin adjustments * fix rubber banding issue in world editor when editing certain text fields * status notification when re-importing vectorb due to embeddings change * properly open new client context on agent actions * move jiggle apply to the end of prompt tune stack * narrator agent length limit and jiggle settings added - also improve post generation cleanup * progress story prompt improvements * narrator prompt and cleanup tweaks * prompt tweak * revert * autocomplete dialogue improvements * Unified process (#141) * progress to unified process * --dev arg * use gunicorn to serve built frontend * gunicorn config adjustments * remove dist from gitignore * revert * uvicorn instead * save decode * graceful shutdown * refactor unified process * clean up frontend log messages * more logging fixes * 0.27.0 * startup message * clean up scripts a bit * fixes to update.bat * fixes to install.bat * sim suite supports generation cancellation * debug * simplify narrator prompts * prompt tweaks * unified docker file * update docker compose config for unified docker file * cruft * fix startup in linux docker * download punkt so its available * prompt tweaks * fix bug when editing scene outline would wipe message history * add o1 models * add sampler, scheduler and cfg config to a1111 visualizer * update installation docs * visualizer configurable timeout * memory agent docs * docs * relock * relock * fix issue where changing embeddings on immutable scene would hang * remove debug message * take torch install out of poetry since conditionals don't work. * torch gets installed through some dependency so put it back into poetry, but reinstall with cuda if cuda support exists * fix install syntax * no need for torchvision * torch cuda install added to linux install script * add torch cuda install to update.bat * docs * docs * relock * fix install.sh * handle torch+cuda install in docker * docs * typo
84 lines
2.4 KiB
Batchfile
84 lines
2.4 KiB
Batchfile
@echo off
|
|
|
|
REM Check for Python version and use a supported version if available
|
|
SET PYTHON=python
|
|
python -c "import sys; sys.exit(0 if sys.version_info[:2] in [(3, 10), (3, 11)] else 1)" 2>nul
|
|
IF NOT ERRORLEVEL 1 (
|
|
echo Selected Python version: %PYTHON%
|
|
GOTO EndVersionCheck
|
|
)
|
|
|
|
SET PYTHON=python
|
|
FOR /F "tokens=*" %%i IN ('py --list') DO (
|
|
echo %%i | findstr /C:"-V:3.11 " >nul && SET PYTHON=py -3.11 && GOTO EndPythonCheck
|
|
echo %%i | findstr /C:"-V:3.10 " >nul && SET PYTHON=py -3.10 && GOTO EndPythonCheck
|
|
)
|
|
:EndPythonCheck
|
|
%PYTHON% -c "import sys; sys.exit(0 if sys.version_info[:2] in [(3, 10), (3, 11)] else 1)" 2>nul
|
|
IF ERRORLEVEL 1 (
|
|
echo Unsupported Python version. Please install Python 3.10 or 3.11.
|
|
exit /b 1
|
|
)
|
|
IF "%PYTHON%"=="python" (
|
|
echo Default Python version is being used: %PYTHON%
|
|
) ELSE (
|
|
echo Selected Python version: %PYTHON%
|
|
)
|
|
|
|
:EndVersionCheck
|
|
|
|
IF ERRORLEVEL 1 (
|
|
echo Unsupported Python version. Please install Python 3.10 or 3.11.
|
|
exit /b 1
|
|
)
|
|
|
|
REM create a virtual environment
|
|
%PYTHON% -m venv talemate_env
|
|
|
|
REM activate the virtual environment
|
|
call talemate_env\Scripts\activate
|
|
|
|
REM upgrade pip and setuptools
|
|
python -m pip install --upgrade pip setuptools
|
|
|
|
|
|
REM install poetry
|
|
python -m pip install "poetry==1.7.1" "rapidfuzz>=3" -U
|
|
|
|
REM use poetry to install dependencies
|
|
python -m poetry install
|
|
|
|
REM installing torch
|
|
echo Installiing PyTorch...
|
|
echo Checking for CUDA availability...
|
|
|
|
REM we use nvcc to check for CUDA availability
|
|
REM if cuda exists: pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
|
|
nvcc --version >nul 2>&1
|
|
|
|
IF ERRORLEVEL 1 (
|
|
echo CUDA not found. Keeping PyTorch installation without CUDA support...
|
|
) ELSE (
|
|
echo CUDA found. Installing PyTorch with CUDA support...
|
|
REM uninstalling existing torch, torchvision, torchaudio
|
|
python -m pip uninstall torch torchaudio -y
|
|
python -m pip install torch~=2.4.1 torchaudio~=2.4.1 --index-url https://download.pytorch.org/whl/cu121
|
|
)
|
|
|
|
REM copy config.example.yaml to config.yaml only if config.yaml doesn't exist
|
|
IF NOT EXIST config.yaml copy config.example.yaml config.yaml
|
|
|
|
REM navigate to the frontend directory
|
|
echo Installing frontend dependencies...
|
|
cd talemate_frontend
|
|
call npm install
|
|
|
|
echo Building frontend...
|
|
call npm run build
|
|
|
|
REM return to the root directory
|
|
cd ..
|
|
|
|
echo Installation completed successfully.
|
|
pause
|