mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-31 22:50:15 +01:00
Changed things around to allow Micromamba to work with paths containing spaces.
This commit is contained in:
parent
1e260544cd
commit
2e02d42682
@ -7,11 +7,10 @@ cd /D "%~dp0"
|
|||||||
set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba
|
set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba
|
||||||
set INSTALL_ENV_DIR=%cd%\installer_files\env
|
set INSTALL_ENV_DIR=%cd%\installer_files\env
|
||||||
|
|
||||||
if not exist "%MAMBA_ROOT_PREFIX%\Scripts\activate.bat" (
|
if not exist "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" (
|
||||||
call "%MAMBA_ROOT_PREFIX%\micromamba.exe" shell hook >nul 2>&1
|
call "%MAMBA_ROOT_PREFIX%\micromamba.exe" shell hook >nul 2>&1
|
||||||
)
|
)
|
||||||
call "%MAMBA_ROOT_PREFIX%\condabin\mamba_hook.bat" || ( echo MicroMamba hook not found. && goto end )
|
call "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" activate "%INSTALL_ENV_DIR%" || ( echo MicroMamba hook not found. && goto end )
|
||||||
call micromamba activate "%INSTALL_ENV_DIR%" || goto end
|
|
||||||
|
|
||||||
cd text-generation-webui || goto end
|
cd text-generation-webui || goto end
|
||||||
goto %TextOnly%
|
goto %TextOnly%
|
||||||
|
17
install.bat
17
install.bat
@ -53,24 +53,19 @@ if "%PACKAGES_TO_INSTALL%" NEQ "" (
|
|||||||
)
|
)
|
||||||
|
|
||||||
@rem create micromamba hook
|
@rem create micromamba hook
|
||||||
if not exist "%MAMBA_ROOT_PREFIX%\condabin\mamba_hook.bat" (
|
if not exist "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" (
|
||||||
call "%MAMBA_ROOT_PREFIX%\micromamba.exe" shell hook >nul 2>&1
|
call "%MAMBA_ROOT_PREFIX%\micromamba.exe" shell hook >nul 2>&1
|
||||||
)
|
)
|
||||||
|
|
||||||
@rem activate base micromamba env
|
|
||||||
call "%MAMBA_ROOT_PREFIX%\condabin\mamba_hook.bat" || ( echo Micromamba hook not found. && goto end )
|
|
||||||
|
|
||||||
@rem create the installer env
|
@rem create the installer env
|
||||||
if not exist "%INSTALL_ENV_DIR%" (
|
if not exist "%INSTALL_ENV_DIR%" (
|
||||||
call micromamba create -y --prefix "%INSTALL_ENV_DIR%"
|
echo Packages to install: %PACKAGES_TO_INSTALL%
|
||||||
|
call "%MAMBA_ROOT_PREFIX%\micromamba.exe" create -y --prefix "%INSTALL_ENV_DIR%" %CHANNEL% %PACKAGES_TO_INSTALL%
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
|
||||||
@rem activate installer env
|
@rem activate installer env
|
||||||
call micromamba activate "%INSTALL_ENV_DIR%" || ( echo %INSTALL_ENV_DIR% not found. && goto end )
|
call "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" activate "%INSTALL_ENV_DIR%" || ( echo MicroMamba hook not found. && goto end )
|
||||||
|
|
||||||
echo "Packages to install: %PACKAGES_TO_INSTALL%"
|
|
||||||
|
|
||||||
call micromamba install -y %CHANNEL% %PACKAGES_TO_INSTALL%
|
|
||||||
)
|
|
||||||
|
|
||||||
@rem clone the repository and install the pip requirements
|
@rem clone the repository and install the pip requirements
|
||||||
if exist text-generation-webui\ (
|
if exist text-generation-webui\ (
|
||||||
|
@ -5,11 +5,10 @@ cd /D "%~dp0"
|
|||||||
set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba
|
set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba
|
||||||
set INSTALL_ENV_DIR=%cd%\installer_files\env
|
set INSTALL_ENV_DIR=%cd%\installer_files\env
|
||||||
|
|
||||||
if not exist "%MAMBA_ROOT_PREFIX%\Scripts\activate.bat" (
|
if not exist "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" (
|
||||||
call "%MAMBA_ROOT_PREFIX%\micromamba.exe" shell hook >nul 2>&1
|
call "%MAMBA_ROOT_PREFIX%\micromamba.exe" shell hook >nul 2>&1
|
||||||
)
|
)
|
||||||
call "%MAMBA_ROOT_PREFIX%\condabin\mamba_hook.bat" || ( echo Micromamba hook not found. && goto end )
|
call "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" activate "%INSTALL_ENV_DIR%" || ( echo MicroMamba hook not found. && goto end )
|
||||||
call micromamba activate "%INSTALL_ENV_DIR%" || goto end
|
|
||||||
|
|
||||||
cmd /k "%*"
|
cmd /k "%*"
|
||||||
|
|
||||||
|
@ -7,11 +7,10 @@ cd /D "%~dp0"
|
|||||||
set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba
|
set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba
|
||||||
set INSTALL_ENV_DIR=%cd%\installer_files\env
|
set INSTALL_ENV_DIR=%cd%\installer_files\env
|
||||||
|
|
||||||
if not exist "%MAMBA_ROOT_PREFIX%\Scripts\activate.bat" (
|
if not exist "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" (
|
||||||
call "%MAMBA_ROOT_PREFIX%\micromamba.exe" shell hook >nul 2>&1
|
call "%MAMBA_ROOT_PREFIX%\micromamba.exe" shell hook >nul 2>&1
|
||||||
)
|
)
|
||||||
call "%MAMBA_ROOT_PREFIX%\condabin\mamba_hook.bat" || ( echo Micromamba hook not found. && goto end )
|
call "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" activate "%INSTALL_ENV_DIR%" || ( echo MicroMamba hook not found. && goto end )
|
||||||
call micromamba activate "%INSTALL_ENV_DIR%" || goto end
|
|
||||||
cd text-generation-webui
|
cd text-generation-webui
|
||||||
|
|
||||||
call python server.py --auto-devices --cai-chat
|
call python server.py --auto-devices --cai-chat
|
||||||
|
Loading…
Reference in New Issue
Block a user