-
Notifications
You must be signed in to change notification settings - Fork 6
/
do_launch_game_s2s.sh
executable file
·54 lines (37 loc) · 1.42 KB
/
do_launch_game_s2s.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
50
51
52
53
54
#!/bin/bash
## typical configurations
TEST_4="--mode=long --basename=test_s2s_movie_openvocab_d300_v15000_len15 --load-babi --lr=0.001 --dropout=0.5 --load-recurrent --units=300 --record-loss --multiplier=0.5 --length=15 --no-vocab "
TEST_5="--mode=long --basename=test_s2s_new_attn_d300_v15000_length15_dropout050 --load-babi --lr=0.001 --dropout=0.5 --load-recurrent --units=300 --record-loss --multiplier=0.5 --length=15 --skip-unk --hide-unk"
TEST_6="--mode=long --load-babi --load-recurrent --units=500 --length=15 --lr=0.001 --dropout=0.5 --basename=test_s2s_no_permute_d500_v15000_length15_dropout050 --hide-unk --skip-unk --teacher-forcing=0.5 "
TEST_7="--mode interactive --iter 4000"
LAUNCH=launch
CHECKPOINT=./saved/4000_checkpoint_chatbot_tutorial.tar
LOG=log
FILENAME=${HOME}/workspace/log.txt
if [ ! -f ${LAUNCH} ]; then
echo "quit -- no 'launch' file present."
exit
fi
if [ ! -f ${CHECKPOINT} ]; then
echo "quit -- usable 'checkpoint' file not present."
exit
fi
export CHATBOT_MODE="sequence"
export CHATBOT_START="start. sequence to sequence model."
if [ -f ${LOG} ]; then
echo "logging"
echo ${TEST_7}
echo "----" >> ${FILENAME}
date >> ${FILENAME}
echo "----" >> ${FILENAME}
cd bot
python3 -u game.py ${TEST_7} >> ${FILENAME} 2>&1
exit
else
cd bot
python3 game.py ${TEST_7}
exit
fi
cd bot
python3 game.py ${TEST_7} # 2> /dev/null
## this file must be hard coded for any model you want to run