-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·43 lines (38 loc) · 1.64 KB
/
setup.sh
File metadata and controls
executable file
·43 lines (38 loc) · 1.64 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
#!/usr/bin/env bash
#
# Automatic setup script for Perspectival Language Models
# Usage: ./setup.sh
#
# Exit immediately if a command exits with a non-zero status
set -e
# -----------------------------------------------------------------------------
# (Optional) Create and activate a virtual environment
# Uncomment the lines below if you want an isolated Python environment
# -----------------------------------------------------------------------------
# echo "Creating a new virtual environment (.venv)..."
# python -m venv .venv
# source .venv/bin/activate
# -----------------------------------------------------------------------------
# Install main dependencies
# -----------------------------------------------------------------------------
echo "Installing main dependencies from requirements.txt..."
pip install -r requirements.txt
# -----------------------------------------------------------------------------
# Clone and install the evaluation harness
# -----------------------------------------------------------------------------
if [ ! -d "evaluation-pipeline-2024" ]; then
echo "Cloning evaluation harness repository..."
git clone -b historical-minimal-pairs https://github.com/sabrinaxinli/evaluation-pipeline-2024.git
else
echo "Evaluation harness repository already exists. Skipping clone."
fi
echo "Installing the evaluation harness..."
cd evaluation-pipeline-2024
pip install -e .
pip install minicons
pip install --upgrade accelerate
cd ..
# -----------------------------------------------------------------------------
# Wrap-up
# -----------------------------------------------------------------------------
echo "Setup completed successfully!"