CoolFace
Apppublic

sleepdeep/llm-deploy

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
cmd_macos.sh25 linesDownload Raw Back to root
1#!/bin/bash2 3cd "$(dirname "${BASH_SOURCE[0]}")"4 5if [[ "$(pwd)" =~ " " ]]; then echo This script relies on Miniconda which can not be silently installed under a path with spaces. && exit; fi6 7# deactivate existing conda envs as needed to avoid conflicts8{ conda deactivate && conda deactivate && conda deactivate; } 2> /dev/null9 10# config11CONDA_ROOT_PREFIX="$(pwd)/installer_files/conda"12INSTALL_ENV_DIR="$(pwd)/installer_files/env"13 14# environment isolation15export PYTHONNOUSERSITE=116unset PYTHONPATH17unset PYTHONHOME18export CUDA_PATH="$INSTALL_ENV_DIR"19export CUDA_HOME="$CUDA_PATH"20 21# activate env22source $CONDA_ROOT_PREFIX/etc/profile.d/conda.sh23conda activate $INSTALL_ENV_DIR24exec bash --norc25