From e357d81cdecbd1bda0496ff8d6ecd739fce60d19 Mon Sep 17 00:00:00 2001 From: deffcolony <61471128+deffcolony@users.noreply.github.com> Date: Wed, 28 Aug 2024 22:21:14 +0200 Subject: [PATCH] launcher upgrades +fixed koboldcpp not launching for AMD +move koboldcpp code into seperate bat file --- Launcher.bat | 18 ++++++++----- .../Text_Completion/start_koboldcpp.bat | 25 +++++++++++++++++++ 2 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 bin/functions/Toolbox/App_Launcher/Text_Completion/start_koboldcpp.bat diff --git a/Launcher.bat b/Launcher.bat index ce6c147..e1206a4 100644 --- a/Launcher.bat +++ b/Launcher.bat @@ -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 diff --git a/bin/functions/Toolbox/App_Launcher/Text_Completion/start_koboldcpp.bat b/bin/functions/Toolbox/App_Launcher/Text_Completion/start_koboldcpp.bat new file mode 100644 index 0000000..d774722 --- /dev/null +++ b/bin/functions/Toolbox/App_Launcher/Text_Completion/start_koboldcpp.bat @@ -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 +) \ No newline at end of file