sleepdeep/llm-deploy
0
1@echo off2 3cd /D "%~dp0"4 5set PATH=%PATH%;%SystemRoot%\system326 7echo "%CD%"| findstr /C:" " >nul && echo This script relies on Miniconda which can not be silently installed under a path with spaces. && goto end8 9@rem fix failed install when installing to a separate drive10set TMP=%cd%\installer_files11set TEMP=%cd%\installer_files12 13@rem deactivate existing conda envs as needed to avoid conflicts14(call conda deactivate && call conda deactivate && call conda deactivate) 2>nul15 16@rem config17set CONDA_ROOT_PREFIX=%cd%\installer_files\conda18set INSTALL_ENV_DIR=%cd%\installer_files\env19 20@rem environment isolation21set PYTHONNOUSERSITE=122set PYTHONPATH=23set PYTHONHOME=24set "CUDA_PATH=%INSTALL_ENV_DIR%"25set "CUDA_HOME=%CUDA_PATH%"26 27@rem activate installer env28call "%CONDA_ROOT_PREFIX%\condabin\conda.bat" activate "%INSTALL_ENV_DIR%" || ( echo. && echo Miniconda hook not found. && goto end )29 30@rem update installer env31call python one_click.py --update && (32 echo.33 echo Done!34)35 36:end37pause38 