RAGEN / eval.sh
Harryis's picture
Add files using upload-large-folder tool
f48527c verified
Raw
History Blame Contribute Delete
4.95 kB
#!/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"