-
Notifications
You must be signed in to change notification settings - Fork 7
/
run_antmaze_iql.sh
64 lines (51 loc) · 1.16 KB
/
run_antmaze_iql.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
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
# Script to reproduce antmaze results
GPU_LIST=(0 1)
env_list=(
# "antmaze-umaze-v2"
# "antmaze-umaze-diverse-v2"
"antmaze-medium-play-v2"
"antmaze-medium-diverse-v2"
"antmaze-large-play-v2"
"antmaze-large-diverse-v2"
)
for seed in 42; do
for env in ${env_list[*]}; do
GPU_DEVICE=${GPU_LIST[task%${#GPU_LIST[@]}]}
CUDA_VISIBLE_DEVICES=$GPU_DEVICE python main_iql.py \
--env_name $env \
--type 'iql' \
--tau 0.9 \
--alpha 10.0 \
--eval_period 10000 \
--n_eval_episodes 50 \
--policy_lr 0.0001 \
--seed $seed &
sleep 2
let "task=$task+1"
done
GPU_DEVICE=${GPU_LIST[task%${#GPU_LIST[@]}]}
CUDA_VISIBLE_DEVICES=$GPU_DEVICE python main_iql.py \
--env_name "antmaze-umaze-v2" \
--type 'iql' \
--tau 0.9 \
--alpha 10.0 \
--eval_period 10000 \
--n_eval_episodes 50 \
--policy_lr 0.001 \
--seed $seed &
sleep 2
let "task=$task+1"
GPU_DEVICE=${GPU_LIST[task%${#GPU_LIST[@]}]}
CUDA_VISIBLE_DEVICES=$GPU_DEVICE python main_iql.py \
--env_name "antmaze-umaze-diverse-v2" \
--type 'iql' \
--tau 0.9 \
--alpha 10.0 \
--eval_period 10000 \
--n_eval_episodes 50 \
--policy_lr 0.001 \
--seed $seed &
sleep 2
let "task=$task+1"
done