-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick_start.sh
More file actions
70 lines (60 loc) · 1.84 KB
/
quick_start.sh
File metadata and controls
70 lines (60 loc) · 1.84 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
# Quick start script for TRNTR
# Runs initial setup and verification
set -e
echo "======================================================================"
echo "TRNTR Quick Start"
echo "======================================================================"
echo ""
# Check Python version
python_version=$(python --version 2>&1 | awk '{print $2}')
echo "Python version: $python_version"
required_version="3.9"
if [[ $(printf '%s\n' "$required_version" "$python_version" | sort -V | head -n1) != "$required_version" ]]; then
echo "ERROR: Python 3.9+ required"
exit 1
fi
echo "✓ Python version OK"
echo ""
# Install package
echo "Installing TRNTR package..."
pip install -e ".[dev]" -q
echo "✓ Package installed"
echo ""
# Verify installation
echo "Verifying installation..."
python scripts/verify_install.py
# Create directories
echo ""
echo "Creating directories..."
mkdir -p data checkpoints logs outputs
echo "✓ Directories created"
# Summary
echo ""
echo "======================================================================"
echo "Quick start complete!"
echo "======================================================================"
echo ""
echo "Next steps:"
echo ""
echo "1. Download dataset (optional, will use dummy data if skipped):"
echo " python scripts/download_c4_200m.py"
echo ""
echo "2. Start training:"
echo " python train.py"
echo ""
echo "3. Monitor training:"
echo " - View logs: tail -f logs/train.log"
echo " - WandB: https://wandb.ai"
echo ""
echo "4. Evaluate model:"
echo " python scripts/evaluate.py --checkpoint checkpoints/best_model.pt"
echo ""
echo "5. Try demo notebook:"
echo " jupyter notebook notebooks/demo.ipynb"
echo ""
echo "For detailed instructions, see:"
echo " - README.md"
echo " - TRAINING_GUIDE.md"
echo ""
echo "======================================================================"