-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
Β·41 lines (33 loc) Β· 1.03 KB
/
setup.sh
File metadata and controls
executable file
Β·41 lines (33 loc) Β· 1.03 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
#!/bin/bash
set -e # Exit on error
echo "π Setting up VLM project..."
# Check if uv is installed
if ! command -v uv &> /dev/null; then
echo "π¦ uv not found. Installing uv..."
curl -LsSf https://astral.sh/uv/install.sh | sh
# Add uv to PATH for this session
export PATH="$HOME/.cargo/bin:$PATH"
echo "β
uv installed successfully!"
else
echo "β
uv is already installed"
fi
# Check Python version
echo "π Checking Python version..."
if ! uv run python --version | grep -q "3.1[1-9]"; then
echo "β οΈ Warning: Python 3.11+ is required"
fi
# Sync dependencies
echo "π₯ Installing dependencies with uv sync..."
uv sync
# Verify installation
echo "π Verifying PyTorch installation..."
if uv run python src/vlm/scripts/verify_pytorch.py; then
echo ""
echo "β
Setup complete! Your environment is ready."
echo ""
echo "To run scripts, use:"
echo " uv run python <script-path>"
else
echo "β Verification failed. Please check the error messages above."
exit 1
fi