Merge pull request #47 from henk717/patch-4

Installer: 6B update & stability fixes
This commit is contained in:
KoboldAI Dev 2021-06-16 21:50:44 -04:00 committed by GitHub
commit 09f407c62e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 4 deletions

View File

@ -2,10 +2,16 @@
title Installing Portable Python (Miniconda3) title Installing Portable Python (Miniconda3)
echo Miniconda3's installer will overwrite existing Miniconda3 shortcuts in the startmenu (We currently can not prevent this) 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 Please choose one of the following transformers options
echo 1. Official Transformers echo 1. Finetuneanon Transformers
echo 2. Finetuneanon Transformers (Half-Precision for 8GB or smaller GPUs) echo 2. Official Transformers (Only use this if your model does not support half)
echo.
echo Errors? Rerun this as admin so it can add the needed registery tweak.
echo.
SET /P M=Type the number of the desired option and then press ENTER: SET /P M=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 %~dp0 cd %~dp0
rmdir /s /q miniconda3 rmdir /s /q miniconda3
where /q curl.exe where /q curl.exe
@ -18,8 +24,8 @@ miniconda3.exe /S /InstallationType=JustMe /RegisterPython=0 /AddTopath=0 /NoScr
del miniconda3.exe del miniconda3.exe
call miniconda3\condabin\activate call miniconda3\condabin\activate
call conda install --all --no-shortcuts -y git pytorch tensorflow-gpu colorama Flask-SocketIO cudatoolkit=11 -c pytorch call conda install --all --no-shortcuts -y git pytorch tensorflow-gpu colorama Flask-SocketIO cudatoolkit=11 -c pytorch
IF %M%==1 call conda install --no-shortcuts -y transformers -c huggingface IF %M%==1 pip install git+https://github.com/finetuneanon/transformers@gpt-neo-localattention3
IF %M%==2 pip install git+https://github.com/finetuneanon/transformers@gpt-neo-dungeon-localattention2 IF %M%==2 call conda install --no-shortcuts -y transformers -c huggingface
call conda clean -a -y call conda clean -a -y
echo All done! echo All done!
pause pause