-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
Β·53 lines (42 loc) Β· 1.35 KB
/
setup.sh
File metadata and controls
executable file
Β·53 lines (42 loc) Β· 1.35 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
46
47
48
49
50
51
52
53
#!/bin/bash
echo "π Local LLM Setup Script"
echo "========================"
# Check if running as root
if [ "$EUID" -ne 0 ]; then
echo "β Please run as root (sudo)"
exit 1
fi
# Update system
echo "π¦ Updating system packages..."
apt update && apt upgrade -y
# Install required packages
echo "π₯ Installing required packages..."
apt install -y python3-pip python3-venv build-essential curl wget git htop lm-sensors
# Set up Python environment
echo "π Setting up Python environment..."
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# Install Ollama
echo "π€ Installing Ollama..."
curl -fsSL https://ollama.com/install.sh | sh
# Run system check
echo "π Checking system capabilities..."
chmod +x system_check.sh
./system_check.sh > system_info.txt
# Select appropriate model
echo "π Selecting optimal model..."
chmod +x select_model.sh
./select_model.sh > model_selection.txt
# Optimize system
echo "β‘ Optimizing system..."
chmod +x optimize_system.sh
./optimize_system.sh
# Make monitoring script executable
chmod +x monitor.sh
echo "β
Setup complete!"
echo "Next steps:"
echo "1. Review system_info.txt for hardware capabilities"
echo "2. Review model_selection.txt for recommended model"
echo "3. Run './monitor.sh' to start system monitoring"
echo "4. Run benchmark tests with 'python llm_benchmark.py'"