-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
27 lines (22 loc) · 721 Bytes
/
Copy pathsetup.sh
File metadata and controls
27 lines (22 loc) · 721 Bytes
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
#!/bin/bash
echo "🚀 Setting up tldr environment..."
# Check if uv is installed
if ! command -v uv &> /dev/null; then
echo "❌ uv is not installed. Please install uv first:"
echo " curl -LsSf https://astral.sh/uv/install.sh | sh"
exit 1
fi
# Install basic dependencies
echo "📦 Installing basic dependencies..."
uv sync
# Install PyTorch with CUDA support
echo "🔥 Installing PyTorch with CUDA support..."
uv pip install torch --index-url https://download.pytorch.org/whl/cu128
# Activate virtual environment
echo "✅ Setup complete!"
echo ""
echo "To activate the environment, run:"
echo " source .venv/bin/activate"
echo ""
echo "To test the installation, run:"
echo " python example.py"