-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-livebench.sh
More file actions
executable file
·45 lines (37 loc) · 1.09 KB
/
install-livebench.sh
File metadata and controls
executable file
·45 lines (37 loc) · 1.09 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
39
40
41
42
43
44
45
#!/usr/bin/env bash
# Script to install LiveBench and set up the environment
# Exit on error
set -e
# Check for Python
if ! command -v python3 &> /dev/null; then
echo "Error: Python 3 is required but not installed. Please install Python 3 first."
exit 1
fi
# Clone LiveBench repository
if [ ! -d "livebench" ]; then
echo "Cloning LiveBench repository..."
git clone -b system-prompt https://github.com/kooshi/LiveBench.git livebench
else
echo "LiveBench directory already exists. Updating repository..."
cd livebench
git pull
cd ..
fi
# Create and activate virtual environment
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
fi
echo "Activating virtual environment..."
source venv/bin/activate
# Install LiveBench
echo "Installing LiveBench..."
cd livebench
pip install -e .
echo "Downloading Data..."
cd livebench
python download_questions.py
# Livebench run fails without these directories. This is asinine.
for dir in data/live_bench/*/*/; do mkdir -p "${dir}model_answer"; done
cd ../..
echo "LiveBench installation complete!"