generated from opentensor/bittensor-subnet-template
-
Notifications
You must be signed in to change notification settings - Fork 46
/
install.sh
34 lines (26 loc) · 813 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Install poetry
pip install poetry
# Set the destination of the virtual environment to the project directory
poetry config virtualenvs.in-project true
# Install the project dependencies
poetry install --extras "validator"
# Build AutoAWQ==0.2.7.post3 from source
git clone https://github.com/casper-hansen/AutoAWQ.git
cd AutoAWQ && poetry run pip install -e . && cd ..
poetry run pip install flash-attn --no-build-isolation
# Check if jq is installed and install it if not
if ! command -v jq &> /dev/null
then
apt update && apt install -y jq
fi
# Check if npm is installed and install it if not
if ! command -v npm &> /dev/null
then
apt update && apt install -y npm
fi
# Check if pm2 is installed and install it if not
if ! command -v pm2 &> /dev/null
then
npm install pm2 -g
fi