Last active
December 7, 2023 21:17
-
-
Save renxida/d6f9a452abf2c360abde54557ecbf51f to your computer and use it in GitHub Desktop.
get the dependencies and run shark turbine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Xida: I tested this on a fresh GCP machine. It should work on Debian and Ubuntu though. | |
# deps | |
sudo apt install wget git -y | |
# Specify the Miniconda version you want to install | |
MINICONDA_VERSION="latest" | |
# For a specific version, replace 'latest' with the version number, e.g., "Miniconda3-4.7.12-Linux-x86_64.sh" | |
# Download Miniconda installer | |
wget https://repo.anaconda.com/miniconda/Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh -O miniconda.sh | |
# Install Miniconda | |
bash miniconda.sh -b -p $HOME/miniconda | |
# Remove the installer to save space | |
rm miniconda.sh | |
# Initialize Miniconda | |
eval "$($HOME/miniconda/bin/conda shell.bash hook)" | |
# Update Conda | |
conda update -y conda | |
# Add Miniconda to PATH in .bashrc | |
echo "export PATH=\"$HOME/miniconda/bin:$PATH\"" >> $HOME/.bashrc | |
# Reload .bashrc | |
source $HOME/.bashrc | |
git clone https://github.com/nod-ai/SHARK-Turbine.git | |
cd SHARK-Turbine | |
pip install -r requirements.txt | |
pip install -r examples/llama2_inference/requirements.txt | |
pip install -e . | |
read -p "SHARK Turbo installation complete. Press ctrl+C to finish, or press any key to proceed to set up vscode tunnels so you can access this machine from anywhere" | |
cd | |
# Define the URL | |
URL="https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64" | |
# Download the .deb package | |
wget -O vscode.deb "$URL" | |
# Install the .deb package | |
sudo apt install -y ./vscode.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment