Skip to content

Commit c06057a

Browse files
authored
Create clore.sh
1 parent 79b42fc commit c06057a

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

clore.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/bin/bash
2+
3+
# Update system and install Go
4+
5+
sudo apt update
6+
sudo apt install tmux -y && sudo apt install build-essential -y && sudo apt install make -y
7+
wget https://go.dev/dl/go1.22.1.linux-amd64.tar.gz
8+
sudo su
9+
sudo rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.1.linux-amd64.tar.gz
10+
exit
11+
export PATH=$PATH:/usr/local/go/bin
12+
13+
# Install python3 environment
14+
15+
sudo apt install python3-venv -y
16+
17+
# Clone into miner and compile
18+
19+
mkdir $HOME/nimble && cd $HOME/nimble
20+
git clone https://github.com/nimble-technology/nimble-miner-public.git
21+
cd nimble-miner-public
22+
23+
# Edit requirements.txt to run lower version of numpy
24+
25+
sudo rm requirements.txt
26+
27+
echo '
28+
requests==2.31.0
29+
torch==2.2.1
30+
accelerate==0.27.0
31+
transformers==4.38.1
32+
datasets==2.17.1
33+
numpy==1.24
34+
gitpython==3.1.42' > requirements.txt
35+
36+
# Update git files and install miner
37+
38+
git pull
39+
make install
40+
41+
# Change fsspec version
42+
43+
pip uninstall fsspec -y
44+
45+
pip install 'fsspec==2023.10.0'

0 commit comments

Comments
 (0)