mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Keep the usual temp folder instead of ours
This commit is contained in:
@@ -15,21 +15,15 @@ IF %M%==2 GOTO subfolder
|
|||||||
IF %M%==3 GOTO drivemap_B
|
IF %M%==3 GOTO drivemap_B
|
||||||
|
|
||||||
:subfolder
|
:subfolder
|
||||||
SET TEMP=%~DP0MINICONDA3
|
|
||||||
SET TMP=%~DP0MINICONDA3
|
|
||||||
call miniconda3\condabin\activate
|
call miniconda3\condabin\activate
|
||||||
cmd /k "%*"
|
cmd /k "%*"
|
||||||
|
|
||||||
:drivemap
|
:drivemap
|
||||||
subst K: miniconda3 >nul
|
subst K: miniconda3 >nul
|
||||||
SET TEMP=K:\
|
|
||||||
SET TMP=K:\
|
|
||||||
call K:\python\condabin\activate
|
call K:\python\condabin\activate
|
||||||
cmd /k "%*"
|
cmd /k "%*"
|
||||||
|
|
||||||
:drivemap_B
|
:drivemap_B
|
||||||
subst B: miniconda3 >nul
|
subst B: miniconda3 >nul
|
||||||
SET TEMP=B:\
|
|
||||||
SET TMP=B:\
|
|
||||||
call B:\python\condabin\activate
|
call B:\python\condabin\activate
|
||||||
cmd /k "%*"
|
cmd /k "%*"
|
@@ -20,8 +20,6 @@ IF %M%==3 GOTO drivemap_B
|
|||||||
|
|
||||||
:subfolder
|
:subfolder
|
||||||
ECHO Runtime launching in subfolder mode
|
ECHO Runtime launching in subfolder mode
|
||||||
SET TEMP=%~DP0MINICONDA3
|
|
||||||
SET TMP=%~DP0MINICONDA3
|
|
||||||
call miniconda3\condabin\activate
|
call miniconda3\condabin\activate
|
||||||
pip install git+https://github.com/huggingface/transformers
|
pip install git+https://github.com/huggingface/transformers
|
||||||
pip install git+https://github.com/huggingface/optimum
|
pip install git+https://github.com/huggingface/optimum
|
||||||
@@ -32,8 +30,6 @@ cmd /k
|
|||||||
ECHO Runtime launching in K: drive mode
|
ECHO Runtime launching in K: drive mode
|
||||||
subst /D K: >nul
|
subst /D K: >nul
|
||||||
subst K: miniconda3 >nul
|
subst K: miniconda3 >nul
|
||||||
SET TEMP=K:\
|
|
||||||
SET TMP=K:\
|
|
||||||
call K:\python\condabin\activate
|
call K:\python\condabin\activate
|
||||||
pip install git+https://github.com/huggingface/transformers
|
pip install git+https://github.com/huggingface/transformers
|
||||||
pip install git+https://github.com/huggingface/optimum
|
pip install git+https://github.com/huggingface/optimum
|
||||||
@@ -44,8 +40,6 @@ cmd /k
|
|||||||
ECHO Runtime launching in B: drive mode
|
ECHO Runtime launching in B: drive mode
|
||||||
subst /D B: >nul
|
subst /D B: >nul
|
||||||
subst B: miniconda3 >nul
|
subst B: miniconda3 >nul
|
||||||
SET TEMP=B:\
|
|
||||||
SET TMP=B:\
|
|
||||||
call B:\python\condabin\activate
|
call B:\python\condabin\activate
|
||||||
pip install git+https://github.com/huggingface/transformers
|
pip install git+https://github.com/huggingface/transformers
|
||||||
pip install git+https://github.com/huggingface/optimum
|
pip install git+https://github.com/huggingface/optimum
|
||||||
|
@@ -44,8 +44,6 @@ echo 3 > loader.settings
|
|||||||
subst B: /D >nul
|
subst B: /D >nul
|
||||||
mkdir miniconda3
|
mkdir miniconda3
|
||||||
subst B: miniconda3
|
subst B: miniconda3
|
||||||
SET TEMP=B:\
|
|
||||||
SET TMP=B:\
|
|
||||||
copy umamba.exe B:\umamba.exe
|
copy umamba.exe B:\umamba.exe
|
||||||
copy loader.settings B:\loader.settings
|
copy loader.settings B:\loader.settings
|
||||||
copy disconnect-kobold-drive.bat B:\disconnect-kobold-drive.bat
|
copy disconnect-kobold-drive.bat B:\disconnect-kobold-drive.bat
|
||||||
@@ -60,8 +58,6 @@ exit
|
|||||||
|
|
||||||
:subfolder
|
:subfolder
|
||||||
echo 2 > loader.settings
|
echo 2 > loader.settings
|
||||||
SET TEMP=%~DP0MINICONDA3
|
|
||||||
SET TMP=%~DP0MINICONDA3
|
|
||||||
umamba.exe create -r miniconda3\ -n base
|
umamba.exe create -r miniconda3\ -n base
|
||||||
umamba.exe install --no-shortcuts -r miniconda3 -n base -f environments\huggingface.yml -y --always-copy
|
umamba.exe install --no-shortcuts -r miniconda3 -n base -f environments\huggingface.yml -y --always-copy
|
||||||
umamba.exe clean -a -y
|
umamba.exe clean -a -y
|
||||||
|
6
play.bat
6
play.bat
@@ -18,8 +18,6 @@ IF %M%==3 GOTO drivemap_B
|
|||||||
|
|
||||||
:subfolder
|
:subfolder
|
||||||
ECHO Runtime launching in subfolder mode
|
ECHO Runtime launching in subfolder mode
|
||||||
SET TEMP=%~DP0MINICONDA3
|
|
||||||
SET TMP=%~DP0MINICONDA3
|
|
||||||
call miniconda3\condabin\activate
|
call miniconda3\condabin\activate
|
||||||
python aiserver.py %*
|
python aiserver.py %*
|
||||||
cmd /k
|
cmd /k
|
||||||
@@ -28,8 +26,6 @@ cmd /k
|
|||||||
ECHO Runtime launching in K: drive mode
|
ECHO Runtime launching in K: drive mode
|
||||||
subst /D K: >nul
|
subst /D K: >nul
|
||||||
subst K: miniconda3 >nul
|
subst K: miniconda3 >nul
|
||||||
SET TEMP=K:\
|
|
||||||
SET TMP=K:\
|
|
||||||
call K:\python\condabin\activate
|
call K:\python\condabin\activate
|
||||||
python aiserver.py %*
|
python aiserver.py %*
|
||||||
cmd /k
|
cmd /k
|
||||||
@@ -38,8 +34,6 @@ cmd /k
|
|||||||
ECHO Runtime launching in B: drive mode
|
ECHO Runtime launching in B: drive mode
|
||||||
subst /D B: >nul
|
subst /D B: >nul
|
||||||
subst B: miniconda3 >nul
|
subst B: miniconda3 >nul
|
||||||
SET TEMP=B:\
|
|
||||||
SET TMP=B:\
|
|
||||||
call B:\python\condabin\activate
|
call B:\python\condabin\activate
|
||||||
python aiserver.py %*
|
python aiserver.py %*
|
||||||
cmd /k
|
cmd /k
|
@@ -15,24 +15,18 @@ IF %M%==2 GOTO subfolder
|
|||||||
IF %M%==3 GOTO drivemap_B
|
IF %M%==3 GOTO drivemap_B
|
||||||
|
|
||||||
:subfolder
|
:subfolder
|
||||||
SET TEMP=%~DP0MINICONDA3
|
|
||||||
SET TMP=%~DP0MINICONDA3
|
|
||||||
call miniconda3\condabin\activate
|
call miniconda3\condabin\activate
|
||||||
GOTO GIT
|
GOTO GIT
|
||||||
|
|
||||||
:drivemap
|
:drivemap
|
||||||
subst /D K: >nul
|
subst /D K: >nul
|
||||||
subst K: miniconda3 >nul
|
subst K: miniconda3 >nul
|
||||||
SET TEMP=K:\
|
|
||||||
SET TMP=K:\
|
|
||||||
call K:\python\condabin\activate
|
call K:\python\condabin\activate
|
||||||
GOTO GIT
|
GOTO GIT
|
||||||
|
|
||||||
:drivemap_B
|
:drivemap_B
|
||||||
subst /D B: >nul
|
subst /D B: >nul
|
||||||
subst B: miniconda3 >nul
|
subst B: miniconda3 >nul
|
||||||
SET TEMP=B:\
|
|
||||||
SET TMP=B:\
|
|
||||||
call B:\python\condabin\activate
|
call B:\python\condabin\activate
|
||||||
GOTO GIT
|
GOTO GIT
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user