-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick_test.sh
More file actions
executable file
·48 lines (41 loc) · 1.2 KB
/
Copy pathquick_test.sh
File metadata and controls
executable file
·48 lines (41 loc) · 1.2 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
#!/bin/bash
# 快速测试脚本 - 验证环境和模型
echo "=========================================="
echo "Quick Test for PriorCLIP-BLIP"
echo "=========================================="
# 激活环境
source /data/yy/miniconda3/etc/profile.d.sh
conda activate testPIR
cd /home/yy/testPIR
echo ""
echo "[Step 1/4] Verifying environment..."
python -c "
import torch
import transformers
print('✓ PyTorch:', torch.__version__)
print('✓ CUDA available:', torch.cuda.is_available())
print('✓ GPU count:', torch.cuda.device_count())
print('✓ Transformers:', transformers.__version__)
"
echo ""
echo "[Step 2/4] Testing BLIP adapter..."
python test_blip_mock.py
echo ""
echo "[Step 3/4] Testing with single tar file..."
python -m training.main \
--model PriorCLIP_BLIP \
--train-data '/data/yy/RS5M/train/pub11-train-0000.tar' \
--dataset-type webdataset \
--train-num-samples 1000 \
--batch-size 4 \
--epochs 1 \
--lr 5e-4 \
--warmup 10 \
--precision fp32 \
--workers 2 \
--logs ./logs/quick_test \
--name "QuickTest_${TIMESTAMP}"
echo ""
echo "[Step 4/4] Quick test completed!"
echo "If all tests passed, you can run full training:"
echo " bash train_rs5m_3gpu.sh"