File size: 4,950 Bytes
f48527c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/usr/bin/env bash
set -euo pipefail

# 运行时追加的参数会应用到所有实验,例如:
# bash scripts/eval_agent_proxy.sh actor_rollout_ref.rollout.val_kwargs.temperature=0.0
EXTRA_OVERRIDES=("$@")

run_eval() {
  local exp_name="$1"
  local model_path="$2"
  local env_name="$3"
  shift 3
  local env_overrides=("$@")

  echo "=== Running ${exp_name} | env=${env_name} | model=${model_path} ==="
  python -m ragen.llm_agent.agent_proxy \
    --config-name eval \
    "model_path=${model_path}" \
    "es_manager.train.env_configs.tags=[${env_name}]" \
    "es_manager.val.env_configs.tags=[${env_name}]" \
    "output.filename=${exp_name}_val_rollouts.pkl" \
    "${env_overrides[@]}" \
    "${EXTRA_OVERRIDES[@]}"
}

run_eval "rubik_depth1_withthink_fulltraj_sa_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_rubikscube1_withthink_fulltraj_sa_rl/global_step_50/qwen2.5_3b_actor_hf" "rubikscube" \
  "custom_envs.rubikscube.env_config.scramble_depth=1" 

run_eval "rubik_depth1_withthink_sa_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_rubikscube1_withthink_sa_rl/global_step_50/qwen2.5_3b_actor_hf" "rubikscube" \
  "custom_envs.rubikscube.env_config.scramble_depth=1" 

run_eval "rubik_depth1_withthink_sas_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_rubikscube1_withthink_sas_rl/global_step_50/qwen2.5_3b_actor_hf" "rubikscube" \
  "custom_envs.rubikscube.env_config.scramble_depth=1" 




run_eval "rubik_depth2_withthink_fulltraj_sa_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sa_rl/global_step_200/qwen2.5_3b_actor_hf" "rubikscube" \
  "custom_envs.rubikscube.env_config.scramble_depth=2" 

run_eval "rubik_depth2_withthink_sa_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_rubikscube2_withthink_sa_rl/global_step_200/qwen2.5_3b_actor_hf" "rubikscube" \
  "custom_envs.rubikscube.env_config.scramble_depth=2" 

run_eval "rubik_depth2_withthink_sas_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_rubikscube2_withthink_sas_rl/global_step_200/qwen2.5_3b_actor_hf" "rubikscube" \
  "custom_envs.rubikscube.env_config.scramble_depth=2" 





run_eval "rubik_depth3_withthink_fulltraj_sa_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_rubikscube3_withthink_fulltraj_sa_rl/global_step_200/qwen2.5_3b_actor_hf" "rubikscube" \
  "custom_envs.rubikscube.env_config.scramble_depth=3" 

run_eval "rubik_depth3_withthink_sa_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_rubikscube3_withthink_sa_rl/global_step_200/qwen2.5_3b_actor_hf" "rubikscube" \
  "custom_envs.rubikscube.env_config.scramble_depth=3" 

run_eval "rubik_depth3_withthink_sas_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_rubikscube3_withthink_sas_rl/global_step_200/qwen2.5_3b_actor_hf" "rubikscube" \
  "custom_envs.rubikscube.env_config.scramble_depth=3" 



run_eval "sokoban_box1_withthink_fulltraj_sa_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_sokoban1_withthink_fulltraj_sa_rl/global_step_200/qwen2.5_3b_actor_hf" "CoordSokoban" \
  "custom_envs.CoordSokoban.env_config.num_boxes=1" 

run_eval "sokoban_box1_withthink_sa_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_sokoban1_withthink_sa_rl/global_step_200/qwen2.5_3b_actor_hf" "CoordSokoban" \
  "custom_envs.CoordSokoban.env_config.num_boxes=1" 

run_eval "sokoban_box1_withthink_sas_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_sokoban1_withthink_sas_rl/global_step_200/qwen2.5_3b_actor_hf" "CoordSokoban" \
  "custom_envs.CoordSokoban.env_config.num_boxes=1" 




run_eval "sokoban_box2_withthink_fulltraj_sa_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_sokoban2_withthink_fulltraj_sa_rl/global_step_200/qwen2.5_3b_actor_hf" "CoordSokoban" \
  "custom_envs.CoordSokoban.env_config.num_boxes=2" 

run_eval "sokoban_box2_withthink_sa_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_sokoban2_withthink_sa_rl/global_step_200/qwen2.5_3b_actor_hf" "CoordSokoban" \
  "custom_envs.CoordSokoban.env_config.num_boxes=2" 

run_eval "sokoban_box2_withthink_sas_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_sokoban2_withthink_sas_rl/global_step_200/qwen2.5_3b_actor_hf" "CoordSokoban" \
  "custom_envs.CoordSokoban.env_config.num_boxes=2" 




run_eval "sudoku_withthink_fulltraj_sa_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_sudoku_withthink_fulltraj_sa_rl/global_step_200/qwen2.5_3b_actor_hf" "SimpleSudoku" \
#   "custom_envs.CoordSokoban.env_config.num_boxes=2" 

run_eval "sudoku_withthink_sa_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_sudoku_withthink_sa_rl/global_step_200/qwen2.5_3b_actor_hf" "SimpleSudoku" \
#   "custom_envs.CoordSokoban.env_config.num_boxes=2" 

run_eval "sudoku_withthink_sas_rl" "/mnt/general/wanghy/RAGEN_v2/saves_hf/qwen2.5_3B_it_sudoku_withthink_sas_rl/global_step_200/qwen2.5_3b_actor_hf" "SimpleSudoku" \
#   "custom_envs.CoordSokoban.env_config.num_boxes=2"