mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-01-23 13:50:25 +01:00
New updater backport
This commit is contained in:
parent
4d8a633351
commit
2cf6b60c6f
@ -1,16 +1,11 @@
|
||||
@echo off
|
||||
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 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.
|
||||
|
||||
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
|
||||
cd /D %~dp0
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
@echo off
|
||||
%~d0
|
||||
cd %~dp0
|
||||
cd /d %~dp0
|
||||
TITLE KoboldAI - Updater
|
||||
SET /P M=<loader.settings
|
||||
IF %M%==1 GOTO drivemap
|
||||
@ -50,4 +49,9 @@ git remote add origin %origin%
|
||||
git fetch --all
|
||||
git checkout %branch% -f
|
||||
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
|
Loading…
Reference in New Issue
Block a user