2021-12-14 14:26:04 +01:00
|
|
|
@echo off
|
2022-06-28 15:17:32 +02:00
|
|
|
cd /d %~dp0
|
2021-12-14 14:26:04 +01:00
|
|
|
TITLE KoboldAI - Updater
|
|
|
|
SET /P M=<loader.settings
|
|
|
|
IF %M%==1 GOTO drivemap
|
|
|
|
IF %M%==2 GOTO subfolder
|
2022-01-13 23:52:21 +01:00
|
|
|
IF %M%==3 GOTO drivemap_B
|
2021-12-14 14:26:04 +01:00
|
|
|
|
|
|
|
:subfolder
|
2021-12-22 21:56:57 +01:00
|
|
|
SET TEMP=%~DP0MINICONDA3
|
|
|
|
SET TMP=%~DP0MINICONDA3
|
2021-12-14 14:26:04 +01:00
|
|
|
call miniconda3\condabin\activate
|
|
|
|
GOTO GIT
|
|
|
|
|
|
|
|
:drivemap
|
|
|
|
subst K: miniconda3 >nul
|
2021-12-22 21:56:57 +01:00
|
|
|
SET TEMP=K:\
|
|
|
|
SET TMP=K:\
|
2021-12-14 14:26:04 +01:00
|
|
|
call K:\python\condabin\activate
|
|
|
|
GOTO GIT
|
|
|
|
|
2022-01-13 23:52:21 +01:00
|
|
|
:drivemap_B
|
|
|
|
subst B: miniconda3 >nul
|
|
|
|
SET TEMP=B:\
|
|
|
|
SET TMP=B:\
|
|
|
|
call B:\python\condabin\activate
|
|
|
|
GOTO GIT
|
|
|
|
|
2021-12-14 14:26:04 +01:00
|
|
|
:GIT
|
2021-12-14 16:00:35 +01:00
|
|
|
ECHO 1. KoboldAI Main (The Official stable version of KoboldAI)
|
|
|
|
ECHO 2. KoboldAI United (Development Version, new features but may break at any time)
|
|
|
|
SET /P V=Enter your desired version or type your own GIT URL:
|
|
|
|
IF %V%==1 (
|
|
|
|
SET origin=https://github.com/koboldai/koboldai-client
|
|
|
|
SET branch=main
|
|
|
|
) ELSE (
|
|
|
|
IF %V%==2 (
|
|
|
|
SET origin=https://github.com/henk717/koboldai
|
|
|
|
SET branch=united
|
|
|
|
) ELSE (
|
|
|
|
SET origin=%v%
|
|
|
|
SET /P branch=Specify the GIT Branch:
|
|
|
|
)
|
2021-12-14 14:26:04 +01:00
|
|
|
)
|
2021-12-14 16:00:35 +01:00
|
|
|
|
|
|
|
git init
|
|
|
|
git remote remove origin
|
|
|
|
git remote add origin %origin%
|
2021-12-14 18:53:52 +01:00
|
|
|
git fetch --all
|
2021-12-14 16:00:35 +01:00
|
|
|
git checkout %branch% -f
|
2021-12-14 18:53:52 +01:00
|
|
|
git reset --hard origin/%branch%
|
2022-06-28 15:17:32 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2022-05-29 00:25:53 +02:00
|
|
|
%windir%\system32\timeout -t 10
|