-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
48 lines (41 loc) · 1.33 KB
/
Copy pathsetup.sh
File metadata and controls
48 lines (41 loc) · 1.33 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
#!/bin/bash
# Setup script for Secure Model-Distributed LLM Inference
echo "======================================================"
echo "Setting up Secure Model-Distributed LLM Inference"
echo "======================================================"
echo ""
# Check Python version
echo "[1/4] Checking Python version..."
python_version=$(python3 --version 2>&1 | awk '{print $2}')
echo " Python version: $python_version"
# Create virtual environment
echo ""
echo "[2/4] Creating virtual environment..."
python3 -m venv venv
echo " ✓ Virtual environment created"
# Activate virtual environment
echo ""
echo "[3/4] Activating virtual environment..."
source venv/bin/activate
echo " ✓ Virtual environment activated"
# Install dependencies
echo ""
echo "[4/4] Installing dependencies..."
pip install --upgrade pip
pip install -r requirements.txt
echo " ✓ Dependencies installed"
echo ""
echo "======================================================"
echo "Setup complete!"
echo "======================================================"
echo ""
echo "To get started:"
echo " 1. Activate the virtual environment:"
echo " source venv/bin/activate"
echo ""
echo " 2. Run the simple demo:"
echo " cd examples && python run_demo_simple.py"
echo ""
echo " 3. Or run the full distributed demo:"
echo " cd examples && python demo.py"
echo ""