mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2024-12-12 16:47:28 +01:00
bf439f0e15
This changes the installation script to use Miniconda3 inside the KoboldAI directory, this is MUCH more user friendly for the users. Any existing python environment will be bypassed, and other dependencies like CUDA automatically installed with compatible versions. With this approach we can better ensure that end users have the correct environment and won't run into other issues because of their existing installations, it also prevents the need for them to install anything else on their system as anything required is automatically downloaded.
26 lines
1.2 KiB
Batchfile
26 lines
1.2 KiB
Batchfile
@echo off
|
|
title Installing Portable Python (Miniconda3)
|
|
echo Miniconda3's installer will overwrite existing Miniconda3 shortcuts in the startmenu (We currently can not prevent this)
|
|
echo Please choose one of the following transformers options
|
|
echo 1. Official Transformers (Maximum Compatibility)
|
|
echo 2. Finetuneanon Transformers (Less ram usage, Less compatibility)
|
|
SET /P M=Type the number of the desired option and then press ENTER:
|
|
|
|
cd %~dp0
|
|
rmdir /s /q miniconda3
|
|
where /q curl.exe
|
|
IF ERRORLEVEL 1 (
|
|
bitsadmin /transfer miniconda /download /priority normal https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe "%~dp0\miniconda3.exe"
|
|
) ELSE (
|
|
curl -o miniconda3.exe https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe
|
|
)
|
|
miniconda3.exe /S /InstallationType=JustMe /RegisterPython=0 /AddTopath=0 /NoScripts=1 /NoRegistry=1 /D=%~dp0\miniconda3
|
|
del miniconda3.exe
|
|
call miniconda3\condabin\activate
|
|
call conda install --all --no-shortcuts -y git pytorch tensorflow-gpu colorama Flask-SocketIO -c pytorch
|
|
IF %M%==1 call conda install --no-shortcuts -y transformers -c huggingface
|
|
IF %M%==2 pip install git+https://github.com/finetuneanon/transformers@gpt-neo-dungeon-localattention2
|
|
call conda clean -a -y
|
|
echo All done!
|
|
pause
|