-
Notifications
You must be signed in to change notification settings - Fork 2
/
run_owt_experiments.sh
executable file
·49 lines (45 loc) · 1.02 KB
/
run_owt_experiments.sh
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
#!/bin/bash
pythonscript="openwebtext_modern_demo.py"
echo "Approximate runtime: 106h (I) + 78h (II) + 116h (III) = 300h"
echo "---"
echo "I. Starting with short parallelism experiments..."
echo "---"
# 1.1 Parallelism experiments + caching
for threadcount in 1 2 4 8
do
echo 3 > /drop_caches
compression="none"
samplecount=8000
runs=2
python -u $pythonscript $threadcount $compression $samplecount $runs
done
# 1.2 clean up
rm -rf /tmp/owt*
echo "---"
echo "II. Caching experiments..."
echo "---"
# 2.1 Caching experiments
for threadcount in 8
do
echo 3 > /drop_caches
compression="none"
samplecount=180662
runs=2
python -u $pythonscript $threadcount $compression $samplecount $runs
done
# 2.2 Clean up
rm -rf /tmp/owt*
echo "---"
echo "III. Compression experiments..."
echo "---"
# 3.1 Compression experiments
for compression in ZLIB GZIP
do
echo 3 > /drop_caches
threadcount=8
samplecount=180662
runs=1
python -u $pythonscript $threadcount $compression $samplecount $runs
done
# 3.2 Clean up
rm -rf /tmp/owt*