From 80ebe1f3689fe3b0c66e90847729d232c9eb4fde Mon Sep 17 00:00:00 2001 From: henk717 Date: Thu, 17 Jun 2021 03:47:59 +0200 Subject: [PATCH] 6B update & stability fixes I changed the menu order around because Finetuneanon's version is better for most users and needed for 6B. The github branch it downloads for finetune is updated, and it can now fix the download path length errors if ran as admin. --- install_requirements.bat | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/install_requirements.bat b/install_requirements.bat index 645283fb..c2458d5a 100644 --- a/install_requirements.bat +++ b/install_requirements.bat @@ -2,10 +2,16 @@ 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 -echo 2. Finetuneanon Transformers (Half-Precision for 8GB or smaller GPUs) +echo 1. Finetuneanon Transformers +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: +Reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v "LongPathsEnabled" /t REG_DWORD /d "1" /f 2>nul + cd %~dp0 rmdir /s /q miniconda3 where /q curl.exe @@ -18,8 +24,8 @@ miniconda3.exe /S /InstallationType=JustMe /RegisterPython=0 /AddTopath=0 /NoScr del miniconda3.exe call miniconda3\condabin\activate 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%==2 pip install git+https://github.com/finetuneanon/transformers@gpt-neo-dungeon-localattention2 +IF %M%==1 pip install git+https://github.com/finetuneanon/transformers@gpt-neo-localattention3 +IF %M%==2 call conda install --no-shortcuts -y transformers -c huggingface call conda clean -a -y echo All done! pause