Automatically update requirements

This commit is contained in:
Henk
2022-06-28 15:17:32 +02:00
parent 5f1c98af8e
commit cba38bf3e4
2 changed files with 7 additions and 8 deletions

View File

@@ -1,16 +1,11 @@
@echo off @echo off
title KoboldAI Runtime Installer (MicroMamba) title KoboldAI Runtime Installer (MicroMamba)
echo Please choose one of the following transformers options
echo 1. Official Transformers (Recommended)
echo 2. Finetune Transformers (For old 6B models)
echo.
echo Errors? Rerun this as admin so it can add the needed LongPathsEnabled registery tweak. echo Errors? Rerun this as admin so it can add the needed LongPathsEnabled registery tweak.
echo Installer failed or crashed? Run it again so it can continue. echo Installer failed or crashed? Run it again so it can continue.
echo Only Windows 10 and higher officially supported, older Windows installations can't handle the paths. echo Only Windows 10 and higher officially supported, older Windows installations can't handle the paths.
echo. echo.
SET /P B=Type the number of the desired option and then press ENTER:
Reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v "LongPathsEnabled" /t REG_DWORD /d "1" /f 2>nul Reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v "LongPathsEnabled" /t REG_DWORD /d "1" /f 2>nul
cd /D %~dp0 cd /D %~dp0

View File

@@ -1,6 +1,5 @@
@echo off @echo off
%~d0 cd /d %~dp0
cd %~dp0
TITLE KoboldAI - Updater TITLE KoboldAI - Updater
SET /P M=<loader.settings SET /P M=<loader.settings
IF %M%==1 GOTO drivemap IF %M%==1 GOTO drivemap
@@ -50,4 +49,9 @@ git remote add origin %origin%
git fetch --all git fetch --all
git checkout %branch% -f git checkout %branch% -f
git reset --hard origin/%branch% git reset --hard origin/%branch%
IF %M%==1 umamba.exe install --no-shortcuts -r K:\python\ -n base -f "%~dp0\environments\huggingface.yml" -y --always-copy
IF %M%==2 umamba.exe install --no-shortcuts -r miniconda3 -n base -f environments\huggingface.yml -y --always-copy
IF %M%==3 umamba.exe install --no-shortcuts -r B:\python\ -n base -f "%~dp0\environments\huggingface.yml" -y --always-copy
%windir%\system32\timeout -t 10 %windir%\system32\timeout -t 10