-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquick_test.sh
More file actions
45 lines (35 loc) · 981 Bytes
/
quick_test.sh
File metadata and controls
45 lines (35 loc) · 981 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# quick_test.sh
# Quick test of training pipeline (runs for 5 minutes)
set -e
echo "================================================"
echo "ChessHacks - Quick Training Test"
echo "================================================"
echo ""
# Navigate to project
cd "$(dirname "$0")"
# Check Stockfish
if ! command -v stockfish &> /dev/null; then
echo "ERROR: Stockfish not installed!"
echo "Run: brew install stockfish"
exit 1
fi
echo "✓ Stockfish found"
# Activate venv
if [ -f "newenv/bin/activate" ]; then
source newenv/bin/activate
echo "✓ Virtual environment activated"
fi
# Create directories
mkdir -p logs checkpoints
echo ""
echo "Starting 5-minute test run..."
echo "This will play ~3-5 games against Stockfish at depth 12"
echo ""
# Run test
python -m src.train_overnight \
--stockfish-depth 12 \
--hours 0.083 \
2>&1 | tee logs/test_run.log
echo ""
echo "✓ Test complete! Check logs and checkpoints directories"