launcher upgrades

+fixed koboldcpp not launching for AMD
+move koboldcpp code into seperate bat file
This commit is contained in:
deffcolony
2024-08-28 22:21:14 +02:00
parent c7825eeb76
commit e357d81cde
2 changed files with 37 additions and 6 deletions

View File

@@ -1511,12 +1511,18 @@ goto :home
:start_koboldcpp
REM Start koboldcpp with desired configurations
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% koboldcpp launched in a new window.
cd /d "%koboldcpp_install_path%"
start "" "koboldcpp.exe"
goto :home
set "caller=app_launcher_text_completion"
if exist "%app_launcher_text_completion_dir%\start_koboldcpp.bat" (
call %app_launcher_text_completion_dir%\start_koboldcpp.bat
goto :home
) else (
echo [%DATE% %TIME%] ERROR: start_koboldcpp.bat not found in: %app_launcher_text_completion_dir% >> %logs_stl_console_path%
echo %red_bg%[%time%]%reset% %red_fg_strong%[ERROR] start_koboldcpp.bat not found in: %app_launcher_text_completion_dir%%reset%
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Running Automatic Repair...
git pull
pause
goto :home
)
:start_tabbyapi

View File

@@ -0,0 +1,25 @@
@echo off
:start_koboldcpp
REM Check if dev-koboldcpp directory exists
if not exist "%koboldcpp_install_path%" (
echo %red_bg%[%time%]%reset% %red_fg_strong%[ERROR] dev-koboldcpp directory not found in: %text_completion_dir%%reset%
pause
goto :home
)
cd /d "%koboldcpp_install_path%"
REM Check if koboldcpp file exists [koboldcpp NVIDIA]
if exist "%koboldcpp_install_path%\koboldcpp.exe" (
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% koboldcpp launched in a new window.
start "" "koboldcpp.exe"
goto :home
)
REM Check if koboldcpp file exists [koboldcpp AMD]
if exist "%koboldcpp_install_path%\koboldcpp_rocm.exe" (
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% koboldcpp launched in a new window.
start "" "koboldcpp_rocm.exe"
goto :home
)