-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
38 lines (28 loc) · 1.14 KB
/
install.sh
File metadata and controls
38 lines (28 loc) · 1.14 KB
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
35
36
37
38
echo "CPU 相关信息"
lscpu
echo "CPU 内存大小"
free -h | grep Mem | awk '{print $2}'
echo "升级 pip"
python -m pip install --upgrade pip
echo "安装 Python 依赖"
pip install -r requirements.txt
# 获取当前路径并保存到变量中
current_path=$(pwd)
# 判断当前目录下是否有 lm-evaluation-harness 文件夹,如果没有的话,执行git clone
# if [ ! -d "lm-evaluation-harness" ]; then
# echo "安装 lm-eval"
# git clone https://github.com/EleutherAI/lm-evaluation-harness.git && cd lm-evaluation-harness && pip install -e .
# fi
cd "$current_path" || exit
# 判断当前目录下是否有 optimum-benchmark 文件夹,如果没有的话,执行git clone
if [ ! -d "optimum-benchmark" ]; then
echo "安装 optimum-benchmark"
git clone https://github.com/huggingface/optimum-benchmark.git && cd optimum-benchmark && pip install -e .
fi
cd "$current_path" || exit
# 判断当前目录下是否有 llama.cpp 文件夹,如果没有的话,执行git clone
if [ ! -d "llama.cpp" ]; then
echo "安装 llama.cpp"
git clone https://github.com/ggerganov/llama.cpp && cd llama.cpp && make
fi
cd "$current_path" || exit