Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- config/_2_sokoban.yaml +9 -0
- config/_4_countdown.yaml +22 -0
- config/_6_webshop.yaml +31 -0
- config/_7_lean.yaml +31 -0
- config/_8_sudoku.yaml +23 -0
- config/base.yaml +179 -0
- config/stream.yaml +18 -0
- config/webshop_full.yaml +27 -0
- docs/experiment_deepcoder.md +121 -0
- docs/experiment_main_table.md +122 -0
- docs/experiment_search.md +163 -0
- docs/guide_filtering_and_loss_scaling.md +157 -0
- gradient_analysis/plot_icml_steps.py +199 -0
- outputs/2026-04-30/13-11-58/.hydra/hydra.yaml +175 -0
- outputs/2026-05-11/10-46-20/.hydra/config.yaml +989 -0
- outputs/2026-05-11/10-46-20/.hydra/hydra.yaml +175 -0
- outputs/2026-05-11/10-52-37/train.log +0 -0
- outputs/2026-05-11/11-35-35/.hydra/hydra.yaml +177 -0
- outputs/2026-05-11/11-35-35/.hydra/overrides.yaml +4 -0
- outputs/2026-05-11/11-38-43/.hydra/config.yaml +989 -0
- outputs/2026-05-11/14-33-26/.hydra/config.yaml +989 -0
- outputs/2026-05-11/14-33-26/train.log +0 -0
- outputs/2026-05-11/17-12-08/.hydra/overrides.yaml +6 -0
- outputs/2026-05-11/19-32-33/train.log +0 -0
- outputs/2026-05-12/09-55-39/.hydra/config.yaml +989 -0
- outputs/2026-05-12/09-55-39/.hydra/hydra.yaml +177 -0
- outputs/2026-05-12/09-55-39/.hydra/overrides.yaml +4 -0
- outputs/2026-05-12/15-16-37/.hydra/config.yaml +989 -0
- outputs/2026-05-13/10-39-50/.hydra/config.yaml +989 -0
- outputs/2026-05-13/10-39-50/.hydra/hydra.yaml +177 -0
- outputs/2026-05-13/10-39-50/train.log +0 -0
- outputs/2026-05-15/14-05-31/.hydra/config.yaml +989 -0
- outputs/2026-05-15/14-05-31/.hydra/hydra.yaml +177 -0
- outputs/2026-05-15/14-05-31/.hydra/overrides.yaml +4 -0
- outputs/2026-05-15/14-05-31/train.log +0 -0
- outputs/2026-05-15/14-11-35/.hydra/config.yaml +989 -0
- outputs/2026-05-15/14-11-35/.hydra/hydra.yaml +177 -0
- outputs/2026-05-15/14-11-35/.hydra/overrides.yaml +4 -0
- outputs/2026-05-15/14-56-09/.hydra/config.yaml +989 -0
- outputs/2026-05-15/14-56-09/.hydra/hydra.yaml +177 -0
- outputs/2026-05-15/14-56-09/.hydra/overrides.yaml +4 -0
- outputs/2026-05-15/14-56-09/train.log +0 -0
- outputs/2026-05-15/15-01-19/.hydra/config.yaml +989 -0
- outputs/2026-05-15/15-01-19/.hydra/hydra.yaml +177 -0
- outputs/2026-05-15/15-01-19/.hydra/overrides.yaml +4 -0
- outputs/2026-05-15/15-01-19/train.log +0 -0
- outputs/2026-05-22/21-57-02/.hydra/config.yaml +1003 -0
- outputs/2026-05-22/21-57-02/.hydra/hydra.yaml +177 -0
- outputs/2026-05-22/21-57-02/.hydra/overrides.yaml +4 -0
- outputs/2026-05-22/21-57-02/train.log +0 -0
config/_2_sokoban.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
defaults:
|
| 2 |
+
- base
|
| 3 |
+
|
| 4 |
+
hydra:
|
| 5 |
+
searchpath:
|
| 6 |
+
- pkg://verl.trainer.config
|
| 7 |
+
|
| 8 |
+
trainer:
|
| 9 |
+
experiment_name: sokoban-main
|
config/_4_countdown.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
defaults:
|
| 2 |
+
- base
|
| 3 |
+
|
| 4 |
+
hydra:
|
| 5 |
+
searchpath:
|
| 6 |
+
- pkg://verl.trainer.config
|
| 7 |
+
|
| 8 |
+
trainer:
|
| 9 |
+
experiment_name: countdown
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
agent_proxy:
|
| 13 |
+
max_turn: 1
|
| 14 |
+
max_actions_per_turn: 1
|
| 15 |
+
|
| 16 |
+
es_manager:
|
| 17 |
+
train:
|
| 18 |
+
env_configs:
|
| 19 |
+
tags: ["Countdown"]
|
| 20 |
+
val:
|
| 21 |
+
env_configs:
|
| 22 |
+
tags: ["Countdown"]
|
config/_6_webshop.yaml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
defaults:
|
| 2 |
+
- base
|
| 3 |
+
|
| 4 |
+
hydra:
|
| 5 |
+
searchpath:
|
| 6 |
+
- pkg://verl.trainer.config
|
| 7 |
+
|
| 8 |
+
micro_batch_size_per_gpu: 4
|
| 9 |
+
ppo_mini_batch_size: 32
|
| 10 |
+
model_path: Qwen/Qwen2.5-3B-Instruct
|
| 11 |
+
|
| 12 |
+
trainer:
|
| 13 |
+
experiment_name: webshop
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
agent_proxy:
|
| 17 |
+
max_turn: 9
|
| 18 |
+
max_actions_per_turn: 1
|
| 19 |
+
|
| 20 |
+
actor_rollout_ref:
|
| 21 |
+
rollout:
|
| 22 |
+
max_model_len: 15000
|
| 23 |
+
max_num_batched_tokens: 15000
|
| 24 |
+
|
| 25 |
+
es_manager:
|
| 26 |
+
train:
|
| 27 |
+
env_configs:
|
| 28 |
+
tags: ["WebShop"]
|
| 29 |
+
val:
|
| 30 |
+
env_configs:
|
| 31 |
+
tags: ["WebShop"]
|
config/_7_lean.yaml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
defaults:
|
| 2 |
+
- base
|
| 3 |
+
|
| 4 |
+
hydra:
|
| 5 |
+
searchpath:
|
| 6 |
+
- pkg://verl.trainer.config
|
| 7 |
+
|
| 8 |
+
system:
|
| 9 |
+
CUDA_VISIBLE_DEVICES: "0,1,2,3"
|
| 10 |
+
|
| 11 |
+
trainer:
|
| 12 |
+
experiment_name: lean
|
| 13 |
+
n_gpus_per_node: 4
|
| 14 |
+
|
| 15 |
+
agent_proxy:
|
| 16 |
+
max_turn: 15
|
| 17 |
+
max_actions_per_turn: 4
|
| 18 |
+
max_context_window: 5
|
| 19 |
+
|
| 20 |
+
actor_rollout_ref:
|
| 21 |
+
rollout:
|
| 22 |
+
max_model_len: 8096
|
| 23 |
+
response_length: 512
|
| 24 |
+
|
| 25 |
+
es_manager:
|
| 26 |
+
train:
|
| 27 |
+
env_configs:
|
| 28 |
+
tags: ["Lean"]
|
| 29 |
+
val:
|
| 30 |
+
env_configs:
|
| 31 |
+
tags: ["Lean"]
|
config/_8_sudoku.yaml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
defaults:
|
| 2 |
+
- base
|
| 3 |
+
|
| 4 |
+
hydra:
|
| 5 |
+
searchpath:
|
| 6 |
+
- pkg://verl.trainer.config
|
| 7 |
+
|
| 8 |
+
trainer:
|
| 9 |
+
experiment_name: sudoku-main
|
| 10 |
+
|
| 11 |
+
es_manager:
|
| 12 |
+
train:
|
| 13 |
+
env_groups: 8
|
| 14 |
+
group_size: 16
|
| 15 |
+
env_configs:
|
| 16 |
+
tags: ["SimpleSudoku"]
|
| 17 |
+
n_groups: [8]
|
| 18 |
+
val:
|
| 19 |
+
env_groups: 32
|
| 20 |
+
group_size: 16
|
| 21 |
+
env_configs:
|
| 22 |
+
tags: ["SimpleSudoku"]
|
| 23 |
+
n_groups: [32]
|
config/base.yaml
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
defaults:
|
| 2 |
+
- ppo_trainer
|
| 3 |
+
- envs
|
| 4 |
+
|
| 5 |
+
system:
|
| 6 |
+
CUDA_VISIBLE_DEVICES: "0,1,2,3,4,5,6,7"
|
| 7 |
+
|
| 8 |
+
seed:
|
| 9 |
+
train: 10000
|
| 10 |
+
val: 123
|
| 11 |
+
|
| 12 |
+
micro_batch_size_per_gpu: 1
|
| 13 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 14 |
+
ppo_mini_batch_size: 32
|
| 15 |
+
model_path:
|
| 16 |
+
enable_response_mask: True # Enabling response mask could improve stability of rollout/old_log_prob, as P(st|history) are no longer calculated in loss here. See https://docs.google.com/document/d/1bg7obeiKTExuHHBl5uOiSpec5uLDZ2Tgvxy6li5pHX4/edit?usp=sharing for more details.
|
| 17 |
+
grpo_advantage_length_weight: False # if you do not enable this and critic/advantage_estimator is GRPO, and the critic/advantages/mean is too low, then you can try enabling this to encourage reasoning and forbid collapse
|
| 18 |
+
|
| 19 |
+
lora:
|
| 20 |
+
rank: 0
|
| 21 |
+
alpha: 64
|
| 22 |
+
target_modules: all-linear
|
| 23 |
+
|
| 24 |
+
actor_rollout_ref:
|
| 25 |
+
model:
|
| 26 |
+
path: ${model_path}
|
| 27 |
+
lora_rank: ${lora.rank}
|
| 28 |
+
lora_alpha: ${lora.alpha}
|
| 29 |
+
target_modules: ${lora.target_modules}
|
| 30 |
+
actor:
|
| 31 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size} # by default, ppo_mini_batch_size = train_batch_size / 4
|
| 32 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 33 |
+
use_ref: True
|
| 34 |
+
entropy_coeff: 0.001
|
| 35 |
+
use_kl_loss: False
|
| 36 |
+
kl_loss_coef: 0.000
|
| 37 |
+
kl_loss_type: kl
|
| 38 |
+
clip_ratio_low: 0.2
|
| 39 |
+
clip_ratio_high: 0.28
|
| 40 |
+
grpo_advantage_length_weight: ${grpo_advantage_length_weight}
|
| 41 |
+
filter_loss_scaling: "none" # "none", "linear", "sqrt"
|
| 42 |
+
# Loss aggregation mode: "token-mean" (default), "seq-mean-token-mean" (GRPO), "seq-mean-token-sum" (Dr. GRPO)
|
| 43 |
+
loss_agg_mode: "token-mean"
|
| 44 |
+
optim:
|
| 45 |
+
betas: [0.9, 0.999]
|
| 46 |
+
lr: 1e-6
|
| 47 |
+
ref:
|
| 48 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 49 |
+
rollout:
|
| 50 |
+
name: vllm
|
| 51 |
+
load_format: auto # load from huggingface instead of dummy (random init)
|
| 52 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 53 |
+
tensor_model_parallel_size: 1
|
| 54 |
+
max_model_len: 16384
|
| 55 |
+
prompt_length: 1 # useless. Just put it here
|
| 56 |
+
response_length: 400 # single-turn response length
|
| 57 |
+
gpu_memory_utilization: 0.7
|
| 58 |
+
max_num_batched_tokens: 16384 # set only when enable_chunked_prefill is true
|
| 59 |
+
temperature: 1
|
| 60 |
+
rollout_filter_value: 1.0
|
| 61 |
+
rollout_filter_strategy: top_p # top_p, top_k, top_k_abs, min_p
|
| 62 |
+
rollout_filter_type: largest # smallest or largest
|
| 63 |
+
rollout_filter_include_zero: True # whether to include groups with 0 score in the filtering
|
| 64 |
+
rollout_filter_top_p_prob_mode: linear # top_p mode: score-sum linear rule or original softmax
|
| 65 |
+
rollout_filter_selection_eps: 0.01 # linear top_p uses threshold = top_p * sum(scores) - eps
|
| 66 |
+
rollout_filter_empty_stop_steps: 5 # early stop after this many consecutive training steps with 0 kept samples
|
| 67 |
+
rollout_filter_metric: reward_variance
|
| 68 |
+
gradient_analysis_num_buckets: 6
|
| 69 |
+
gradient_analysis_bucket_mode: quantile
|
| 70 |
+
enforce_eager: True # for small models, set both enforce_eager and free_cache_engine to False to make rollout faster
|
| 71 |
+
free_cache_engine: True
|
| 72 |
+
val_kwargs:
|
| 73 |
+
do_sample: True
|
| 74 |
+
temperature: 0.5
|
| 75 |
+
|
| 76 |
+
critic:
|
| 77 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size} # by default, ppo_mini_batch_size = train_batch_size / 4
|
| 78 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 79 |
+
model:
|
| 80 |
+
path: ${model_path}
|
| 81 |
+
lora_rank: ${lora.rank}
|
| 82 |
+
lora_alpha: ${lora.alpha}
|
| 83 |
+
target_modules: ${lora.target_modules}
|
| 84 |
+
optim:
|
| 85 |
+
betas: [0.9, 0.999]
|
| 86 |
+
lr: 1e-5
|
| 87 |
+
|
| 88 |
+
data:
|
| 89 |
+
max_prompt_length: null
|
| 90 |
+
max_response_length: null
|
| 91 |
+
train_batch_size: null
|
| 92 |
+
|
| 93 |
+
algorithm:
|
| 94 |
+
gamma: 1.0
|
| 95 |
+
lam: 1.0
|
| 96 |
+
high_level_gamma: 0.95
|
| 97 |
+
adv_estimator: gae # "gae" for PPO, "grpo" for GRPO/Dr.GRPO
|
| 98 |
+
bi_level_gae: False
|
| 99 |
+
zero_task_advantage: False # if True, zero out advantages to remove task-driven policy gradient
|
| 100 |
+
# Dr. GRPO: set to False to use (R - mean) instead of (R - mean) / std
|
| 101 |
+
norm_adv_by_std_in_grpo: True
|
| 102 |
+
# Soft advantage reweighting: scale advantages by (group_std / max_group_std)
|
| 103 |
+
# This down-weights low reward variance prompts instead of hard filtering
|
| 104 |
+
soft_advantage_reweight: False
|
| 105 |
+
kl_penalty: kl # how to estimate kl divergence
|
| 106 |
+
kl_ctrl:
|
| 107 |
+
type: fixed
|
| 108 |
+
kl_coef: 0.000
|
| 109 |
+
|
| 110 |
+
trainer:
|
| 111 |
+
project_name: ragen
|
| 112 |
+
experiment_name: test
|
| 113 |
+
local_log_dir: "results/"
|
| 114 |
+
save_freq: -1
|
| 115 |
+
total_training_steps: 200
|
| 116 |
+
validation_steps: 1 # validation instances = validation_steps * val_env_groups * group_size
|
| 117 |
+
val_before_train: True
|
| 118 |
+
n_gpus_per_node: 8
|
| 119 |
+
test_freq: 10
|
| 120 |
+
generations_to_log_to_wandb:
|
| 121 |
+
val: 20
|
| 122 |
+
logger: [ 'console', 'wandb' ]
|
| 123 |
+
max_actor_ckpt_to_keep: 1
|
| 124 |
+
max_critic_ckpt_to_keep: 1
|
| 125 |
+
log_group_rv_table: False
|
| 126 |
+
gradient_analysis_mode: False
|
| 127 |
+
gradient_analysis_every: 50
|
| 128 |
+
gradient_analysis_env_groups: null
|
| 129 |
+
gradient_analysis_group_size: null
|
| 130 |
+
gradient_analysis_log_prefilter: False
|
| 131 |
+
gradient_analysis_only: False
|
| 132 |
+
exit_after_gradient_analysis: False
|
| 133 |
+
|
| 134 |
+
agent_proxy:
|
| 135 |
+
context_window_mode: "full" # "full" | "limited_multi_turn" | "single_turn"
|
| 136 |
+
max_context_window: -1 # k value: -1 for full history, 1 for no history (like without_history)
|
| 137 |
+
batch_adjust_mode: copy # "copy" to duplicate samples, "delete" to remove samples when batch size is not divisible
|
| 138 |
+
max_turn: 10
|
| 139 |
+
action_sep: "||"
|
| 140 |
+
max_actions_per_turn: 1 # how many actions can be output at most in a single turn
|
| 141 |
+
use_turn_scores: False # important to GAE when applying token-level rewards to token-level advantages. If False, will take the sum of scores as the reward for the last turn.
|
| 142 |
+
enable_think: True # False -> no think RL
|
| 143 |
+
reward_normalization:
|
| 144 |
+
grouping: "state" # state / batch / inductive
|
| 145 |
+
method: "identity" # asym_clip / identity / mean_std
|
| 146 |
+
|
| 147 |
+
# Collapse detection for diagnosing template collapse vs entropy collapse
|
| 148 |
+
collapse_detection:
|
| 149 |
+
compute_freq: 5 # Compute every N steps
|
| 150 |
+
micro_batch_size: 128 # Micro batch size for cross-scoring
|
| 151 |
+
first_turn_enabled: true # Compute first-turn metrics
|
| 152 |
+
multi_turn_enabled: true # Enable multi-turn sampling for MI computation
|
| 153 |
+
num_samples: 64 # N or all
|
| 154 |
+
|
| 155 |
+
es_manager:
|
| 156 |
+
format_penalty: -0.1
|
| 157 |
+
train:
|
| 158 |
+
env_groups: 8
|
| 159 |
+
# under the same group, the env config and env seed are ensured to be equal
|
| 160 |
+
group_size: 16
|
| 161 |
+
env_configs:
|
| 162 |
+
tags: ["CoordSokoban"]
|
| 163 |
+
n_groups: [8] # If not set, all env names divide nums equally. Under the same group, the env config and env seed (prompt) are equal in each generation
|
| 164 |
+
val:
|
| 165 |
+
env_groups: 512
|
| 166 |
+
group_size: 1 # should be set to 1 because when val temperature is set to 0 and group size > 1, there will be repetitive prompts which leads to same trajectory.
|
| 167 |
+
|
| 168 |
+
env_configs:
|
| 169 |
+
tags: ["CoordSokoban"]
|
| 170 |
+
n_groups: [512] # TODO: If not set, all env names divide nums equally. Under the same group, the env config and env seed (prompt) are equal in each generation
|
| 171 |
+
|
| 172 |
+
ctx_manager:
|
| 173 |
+
generation: # go to vllm
|
| 174 |
+
gen_config:
|
| 175 |
+
response_length: ${actor_rollout_ref.rollout.response_length}
|
| 176 |
+
temperature: ${actor_rollout_ref.rollout.temperature}
|
| 177 |
+
top_p: ${actor_rollout_ref.rollout.top_p}
|
| 178 |
+
top_k: ${actor_rollout_ref.rollout.top_k}
|
| 179 |
+
kwargs: null
|
config/stream.yaml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
defaults:
|
| 2 |
+
- base
|
| 3 |
+
|
| 4 |
+
hydra:
|
| 5 |
+
searchpath:
|
| 6 |
+
- pkg://verl.trainer.config
|
| 7 |
+
|
| 8 |
+
trainer:
|
| 9 |
+
experiment_name: sokoban-main
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
es_manager:
|
| 13 |
+
val:
|
| 14 |
+
env_groups: 1
|
| 15 |
+
group_size: 1 # should be set to 1 because when val temperature is set to 0 and group size > 1, there will be repetitive prompts which leads to same trajectory.
|
| 16 |
+
env_configs:
|
| 17 |
+
tags: ["SimpleSokoban"]
|
| 18 |
+
n_groups: [1] # TODO: If not set, all env names divide nums equally. Under the same group, the env config and env seed (prompt) are equal in each generation
|
config/webshop_full.yaml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
defaults:
|
| 2 |
+
- base
|
| 3 |
+
|
| 4 |
+
micro_batch_size_per_gpu: 4
|
| 5 |
+
ppo_mini_batch_size: 32
|
| 6 |
+
model_path: Qwen/Qwen2.5-3B-Instruct
|
| 7 |
+
|
| 8 |
+
trainer:
|
| 9 |
+
experiment_name: webshop_full
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
agent_proxy:
|
| 13 |
+
max_turn: 15
|
| 14 |
+
max_actions_per_turn: 1
|
| 15 |
+
|
| 16 |
+
actor_rollout_ref:
|
| 17 |
+
rollout:
|
| 18 |
+
max_model_len: 15000
|
| 19 |
+
max_num_batched_tokens: 15000
|
| 20 |
+
|
| 21 |
+
es_manager:
|
| 22 |
+
train:
|
| 23 |
+
env_configs:
|
| 24 |
+
tags: ["WebShopFull"]
|
| 25 |
+
val:
|
| 26 |
+
env_configs:
|
| 27 |
+
tags: ["WebShopFull"]
|
docs/experiment_deepcoder.md
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DeepCoder Experiment Runs
|
| 2 |
+
|
| 3 |
+
## Command Snippets Overview
|
| 4 |
+
|
| 5 |
+
| Condition | Purpose | Variables |
|
| 6 |
+
|--------|---------|-----------|
|
| 7 |
+
| `GRPO top-p 1.0` | Full-retention baseline under linear top-p filtering | `rollout_filter_strategy=top_p`, `rollout_filter_value=1`, `rollout_filter_include_zero=True` |
|
| 8 |
+
| `GRPO top-p 0.9` | Stronger reward-variance filtering with adaptive retention | `rollout_filter_strategy=top_p`, `rollout_filter_value=0.9`, `rollout_filter_include_zero=False` |
|
| 9 |
+
| `GRPO top-k 0.25` | Fixed-budget filtering that keeps the top 25% of train groups | `rollout_filter_strategy=top_k`, `rollout_filter_value=0.25`, `rollout_filter_include_zero=True` |
|
| 10 |
+
|
| 11 |
+
All three command snippets run DeepCoder with `Qwen/Qwen2.5-Coder-7B`, `GRPO`, and single-turn code generation.
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
## 1. Top-p 1.0 (`Qwen/Qwen2.5-Coder-7B-200-GRPO-top-p-1`)
|
| 16 |
+
|
| 17 |
+
Uses linear top-p filtering with `rollout_filter_value=1`.
|
| 18 |
+
|
| 19 |
+
Goal:
|
| 20 |
+
- Establish a full-retention baseline while keeping the same reward-variance ranking machinery as the filtered runs
|
| 21 |
+
|
| 22 |
+
Key Details:
|
| 23 |
+
- Filtering uses `top_p`, `largest`, `reward_variance`, and `rollout_filter_top_p_prob_mode=linear`
|
| 24 |
+
- `rollout_filter_value=1` with `rollout_filter_include_zero=True` keeps the full train-group pool under linear top-p selection, so this is the closest thing to a no-filter baseline in `deepcoder_lines`
|
| 25 |
+
- `actor_rollout_ref.actor.use_ref=False` and `actor_rollout_ref.actor.use_kl_loss=False` remove reference-policy KL from training
|
| 26 |
+
- The run budget is `200` training steps with checkpoints every `20` steps
|
| 27 |
+
|
| 28 |
+
Source:
|
| 29 |
+
- `docs/deepcoder_lines`, lines `1-89`
|
| 30 |
+
|
| 31 |
+
Outputs:
|
| 32 |
+
- W&B project: `deepcoder_RAGEN_final_3`
|
| 33 |
+
- Run name: `Qwen/Qwen2.5-Coder-7B-200-GRPO-top-p-1`
|
| 34 |
+
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
## 2. Top-p 0.9 (`Qwen/Qwen2.5-Coder-7B-200-GRPO-top-p-0.9`)
|
| 38 |
+
|
| 39 |
+
Uses the same linear top-p filter, but keeps only the highest-variance groups whose score mass reaches `0.9`.
|
| 40 |
+
|
| 41 |
+
Goal:
|
| 42 |
+
- Increase reward-variance filtering strength while keeping the rest of the GRPO setup fixed
|
| 43 |
+
|
| 44 |
+
Key Details:
|
| 45 |
+
- Filtering again uses `top_p`, `largest`, `reward_variance`, and `rollout_filter_top_p_prob_mode=linear`
|
| 46 |
+
- `rollout_filter_value=0.9` makes retention adaptive: the number of kept groups depends on how reward variance is distributed across the `16` train groups
|
| 47 |
+
- `rollout_filter_include_zero=False` excludes zero-variance groups from selection
|
| 48 |
+
- Because `rollout_filter_type=largest`, the filter prioritizes groups with the highest within-group reward variance
|
| 49 |
+
|
| 50 |
+
Source:
|
| 51 |
+
- `docs/deepcoder_lines`, lines `93-181`
|
| 52 |
+
|
| 53 |
+
Outputs:
|
| 54 |
+
- W&B project: `deepcoder_RAGEN_final_3`
|
| 55 |
+
- Run name: `Qwen/Qwen2.5-Coder-7B-200-GRPO-top-p-0.9`
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
## 3. Top-k 0.25 (`Qwen/Qwen2.5-Coder-7B-200-GRPO-top-k-0.25`)
|
| 60 |
+
|
| 61 |
+
Switches from adaptive top-p filtering to fixed-fraction top-k filtering.
|
| 62 |
+
|
| 63 |
+
Goal:
|
| 64 |
+
- Compare adaptive top-p filtering against a fixed keep-top-25% regime
|
| 65 |
+
|
| 66 |
+
Key Details:
|
| 67 |
+
- `rollout_filter_strategy=top_k` with `rollout_filter_value=0.25` keeps `int(0.25 * 16) = 4` train groups per step
|
| 68 |
+
- With `es_manager.train.group_size=8`, this corresponds to at most `32` kept rollouts per training step after filtering
|
| 69 |
+
- `rollout_filter_include_zero=True` means zero-variance groups are still part of the ranking pool, but only the top `4` groups survive
|
| 70 |
+
- `rollout_filter_type=largest` means those `4` groups are chosen by highest reward variance
|
| 71 |
+
|
| 72 |
+
Source:
|
| 73 |
+
- `docs/deepcoder_lines`, lines `185-273`
|
| 74 |
+
|
| 75 |
+
Outputs:
|
| 76 |
+
- W&B project: `deepcoder_RAGEN_final_3`
|
| 77 |
+
- Run name: `Qwen/Qwen2.5-Coder-7B-200-GRPO-top-k-0.25`
|
| 78 |
+
|
| 79 |
+
---
|
| 80 |
+
|
| 81 |
+
## Common Notes
|
| 82 |
+
|
| 83 |
+
- Source format:
|
| 84 |
+
- `docs/deepcoder_lines` is a collection of three standalone bash snippets, not a parameterized sweep script
|
| 85 |
+
- The file defines both `USE_GRPO` and `USE_PPO`, but all three `python train.py` commands actually expand `$USE_GRPO`
|
| 86 |
+
- Shared setup across all three conditions:
|
| 87 |
+
- Config: `_10_deepcoder`
|
| 88 |
+
- Model: `Qwen/Qwen2.5-Coder-7B`
|
| 89 |
+
- `algorithm.adv_estimator=grpo`
|
| 90 |
+
- `agent_proxy.reward_normalization.method=identity`
|
| 91 |
+
- `trainer.total_training_steps=200`
|
| 92 |
+
- `ppo_mini_batch_size=32`
|
| 93 |
+
- `micro_batch_size_per_gpu=1`
|
| 94 |
+
- `es_manager.train.env_groups=16`, `es_manager.train.group_size=8`
|
| 95 |
+
- `es_manager.val.env_groups=256`, `es_manager.val.group_size=1`
|
| 96 |
+
- `trainer.n_gpus_per_node=8`
|
| 97 |
+
- `system.CUDA_VISIBLE_DEVICES="0,1,2,3,4,5,6,7"`
|
| 98 |
+
- `actor_rollout_ref.rollout.tensor_model_parallel_size=4`
|
| 99 |
+
- `agent_proxy.max_turn=1`
|
| 100 |
+
- `actor_rollout_ref.actor.use_ref=False`
|
| 101 |
+
- `actor_rollout_ref.rollout.rollout_filter_type=largest`
|
| 102 |
+
- `actor_rollout_ref.rollout.rollout_filter_metric=reward_variance` by default from `config/base.yaml`
|
| 103 |
+
- `actor_rollout_ref.rollout.rollout_filter_top_p_prob_mode=linear`
|
| 104 |
+
- `actor_rollout_ref.rollout.rollout_filter_empty_stop_steps=0`
|
| 105 |
+
- `actor_rollout_ref.rollout.max_model_len=10000`
|
| 106 |
+
- `actor_rollout_ref.rollout.max_num_batched_tokens=10000`
|
| 107 |
+
- `actor_rollout_ref.rollout.response_length=4000`
|
| 108 |
+
- `agent_proxy.fail_on_prompt_too_long=True`
|
| 109 |
+
- `lora.rank=0`, `lora.alpha=64`, `lora.target_modules=all-linear`
|
| 110 |
+
- `actor_rollout_ref.rollout.gpu_memory_utilization=0.6`
|
| 111 |
+
- `trainer.save_freq=20`
|
| 112 |
+
- `trainer.validation_steps=1`
|
| 113 |
+
- `trainer.val_before_train=True`
|
| 114 |
+
- `trainer.test_freq=10`
|
| 115 |
+
- `collapse_detection.first_turn_enabled=False`
|
| 116 |
+
- `collapse_detection.multi_turn_enabled=False`
|
| 117 |
+
- `trainer.resume_mode=disable`
|
| 118 |
+
- Logging and artifacts:
|
| 119 |
+
- Default local log dir remains `results/`
|
| 120 |
+
- Default logger remains `['console', 'wandb']`
|
| 121 |
+
- Checkpoints are saved every `20` steps
|
docs/experiment_main_table.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Main Table Runs
|
| 2 |
+
|
| 3 |
+
This doc covers the experiment scripts for the main performance table.
|
| 4 |
+
|
| 5 |
+
## Scripts Overview
|
| 6 |
+
|
| 7 |
+
| Script | Purpose | Variables |
|
| 8 |
+
|--------|---------|-----------|
|
| 9 |
+
| `run_main_table_diff_algo.sh` | Compare algorithms | PPO, DAPO, GRPO, DrGRPO; `filter`/`nofilter` |
|
| 10 |
+
| `run_main_table_diff_size.sh` | Compare model sizes | 0.5B, 1.5B, 3B, 7B; `filter`/`nofilter` |
|
| 11 |
+
| `run_main_table_diff_model.sh` | Compare model types | Instruct, Reasoning; `filter`/`nofilter` |
|
| 12 |
+
|
| 13 |
+
All scripts run experiments across 5 tasks (sokoban, frozenlake, webshop, metamathqa, countdown) with filter/nofilter settings.
|
| 14 |
+
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
## 1. Different Algorithms (`run_main_table_diff_algo.sh`)
|
| 18 |
+
|
| 19 |
+
Compares PPO/DAPO/GRPO/DrGRPO using Qwen2.5-3B.
|
| 20 |
+
|
| 21 |
+
```bash
|
| 22 |
+
bash scripts/runs/run_main_table_diff_algo.sh --steps 400
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
Options:
|
| 26 |
+
- `--steps` (default: `400`)
|
| 27 |
+
- `--tasks` (comma list; default: `sokoban,frozenlake,webshop,metamathqa,countdown`)
|
| 28 |
+
- `--algos` (comma list; default: `PPO,DAPO,GRPO,DrGRPO`)
|
| 29 |
+
- `--gpus` (comma list; auto-detect if omitted)
|
| 30 |
+
- `--gpus-per-exp` (default: `1`)
|
| 31 |
+
- `--cooldown` (seconds; default: `30`)
|
| 32 |
+
- `--gpu-memory-utilization` (default: `0.3`)
|
| 33 |
+
- `--filters` (comma list; `filter`, `nofilter`, or `all`; default: `all`)
|
| 34 |
+
|
| 35 |
+
Examples:
|
| 36 |
+
```bash
|
| 37 |
+
# Run one `filter` and one `nofilter` PPO experiment on 4xH100 each
|
| 38 |
+
bash scripts/runs/run_main_table_diff_algo.sh --steps 400 --tasks sokoban --gpus-per-exp 4 --gpu-memory-utilization 0.3 --filters all --gpus 0,1,2,3,4,5,6,7 --algos PPO
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
Outputs:
|
| 42 |
+
- Per-task logs: `logs/diff_algo_<task>_Qwen2.5-3B/`
|
| 43 |
+
- Summary log: `logs/diff_algo_Qwen2.5-3B.log`
|
| 44 |
+
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
+
## 2. Different Model Sizes (`run_main_table_diff_size.sh`)
|
| 48 |
+
|
| 49 |
+
Compares Qwen2.5 models of different sizes using PPO.
|
| 50 |
+
|
| 51 |
+
```bash
|
| 52 |
+
bash scripts/runs/run_main_table_diff_size.sh --steps 400
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
Options:
|
| 56 |
+
- `--steps` (default: `400`)
|
| 57 |
+
- `--tasks` (comma list; default: `sokoban,frozenlake,webshop,metamathqa,countdown`)
|
| 58 |
+
- `--models` (comma list; default: `Qwen2.5-0.5B,Qwen2.5-1.5B,Qwen2.5-3B,Qwen2.5-7B`)
|
| 59 |
+
- `--gpus` (comma list; auto-detect if omitted)
|
| 60 |
+
- `--gpus-per-exp` (default: `1`)
|
| 61 |
+
- `--cooldown` (seconds; default: `30`)
|
| 62 |
+
- `--gpu-memory-utilization` (default: `0.3`)
|
| 63 |
+
- `--filters` (comma list; `filter`, `nofilter`, or `all`; default: `all`)
|
| 64 |
+
|
| 65 |
+
Examples:
|
| 66 |
+
```bash
|
| 67 |
+
# Run a single 1.5B/filter experiment on 4xH100
|
| 68 |
+
bash scripts/runs/run_main_table_diff_size.sh --steps 400 --tasks sokoban --gpus-per-exp 4 --gpu-memory-utilization 0.3 --filters filter --gpus 0,1,2,3 --models Qwen2.5-1.5B
|
| 69 |
+
|
| 70 |
+
# Quick test with smallest model
|
| 71 |
+
bash scripts/runs/run_main_table_diff_size.sh --steps 5 --models Qwen2.5-0.5B --tasks sokoban
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
Outputs:
|
| 75 |
+
- Per-task logs: `logs/diff_size_<task>/`
|
| 76 |
+
- Summary log: `logs/diff_size_PPO.log`
|
| 77 |
+
|
| 78 |
+
---
|
| 79 |
+
|
| 80 |
+
## 3. Different Model Types (`run_main_table_diff_model.sh`)
|
| 81 |
+
|
| 82 |
+
Compares different model types (Instruct, Reasoning) using PPO.
|
| 83 |
+
|
| 84 |
+
```bash
|
| 85 |
+
bash scripts/runs/run_main_table_diff_model.sh --steps 400
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
Options:
|
| 89 |
+
- `--steps` (default: `400`)
|
| 90 |
+
- `--tasks` (comma list; default: `sokoban,frozenlake,webshop,metamathqa,countdown`)
|
| 91 |
+
- `--models` (comma list; default: `Qwen2.5-3B-Instruct`)
|
| 92 |
+
- `--gpus` (comma list; auto-detect if omitted)
|
| 93 |
+
- `--gpus-per-exp` (default: `1`)
|
| 94 |
+
- `--cooldown` (seconds; default: `30`)
|
| 95 |
+
- `--gpu-memory-utilization` (default: `0.3`)
|
| 96 |
+
- `--filters` (comma list; `filter`, `nofilter`, or `all`; default: `all`)
|
| 97 |
+
|
| 98 |
+
Examples:
|
| 99 |
+
```bash
|
| 100 |
+
# Run one `filter` and one `nofilter` Llama-3.2-3B-Instruct experiment on 4xH100 each
|
| 101 |
+
bash scripts/runs/run_main_table_diff_model.sh --steps 400 --tasks sokoban --gpus-per-exp 4 --gpu-memory-utilization 0.5 --filters all --gpus 0,1,2,3,4,5,6,7 --models=meta-llama/Llama-3.2-3B-Instruct
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
Outputs:
|
| 105 |
+
- Per-task logs: `logs/diff_model_<task>/`
|
| 106 |
+
- Summary log: `logs/diff_model_PPO.log`
|
| 107 |
+
|
| 108 |
+
---
|
| 109 |
+
|
| 110 |
+
## Common Notes
|
| 111 |
+
|
| 112 |
+
- Effective rollout filter config for main-table runs:
|
| 113 |
+
- `rollout_filter_strategy=top_p`
|
| 114 |
+
- `rollout_filter_top_p_prob_mode=softmax`
|
| 115 |
+
- `rollout_filter_type=largest`
|
| 116 |
+
- `rollout_filter_metric=reward_variance`
|
| 117 |
+
- `rollout_filter_include_zero=True`
|
| 118 |
+
- Filter mode mapping:
|
| 119 |
+
- `filter`: `top_p=0.9`, `include_zero=True`
|
| 120 |
+
- `nofilter`: `top_p=1.0`, `include_zero=True`
|
| 121 |
+
- Because `include_zero=True`, `nofilter` (`top_p=1.0`) keeps all groups; it does not disable the filter code path, but it is effectively "no filtering" for the batch
|
| 122 |
+
- You can run a single experiment on `4xH100` by setting `--gpus-per-exp 4` and passing a 4-GPU list, or run one `filter` and one `nofilter` experiment in parallel by passing an 8-GPU list
|
docs/experiment_search.md
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Search Environment Experiments
|
| 2 |
+
|
| 3 |
+
This doc covers the experiment scripts for the Search (HotpotQA + Dense Retrieval) environment.
|
| 4 |
+
|
| 5 |
+
## Overview
|
| 6 |
+
|
| 7 |
+
All experiments use:
|
| 8 |
+
- **Task**: SearchQA (HotpotQA multi-hop QA with Wikipedia dense retrieval)
|
| 9 |
+
- **Model**: `Qwen/Qwen2.5-3B-Instruct`
|
| 10 |
+
- **Algorithm**: PPO (`algorithm.adv_estimator=gae`)
|
| 11 |
+
- **Config**: `_9_search`
|
| 12 |
+
|
| 13 |
+
The sweep compares three rollout filtering strategies while keeping all other hyperparameters fixed.
|
| 14 |
+
|
| 15 |
+
| Experiment | Filter Strategy | Filter Value | Effective Batch | Description |
|
| 16 |
+
|-----------|----------------|-------------|----------------|-------------|
|
| 17 |
+
| No Filter | `top_p` | `1.0` | 128 | Baseline: all rollout groups kept |
|
| 18 |
+
| TopK 0.25 | `top_k` | `0.25` | 32 | Keep top 25% groups by reward variance |
|
| 19 |
+
| TopP 0.9 | `top_p` | `0.9` | ~115 | Keep groups covering 90% cumulative reward variance |
|
| 20 |
+
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
## Prerequisites
|
| 24 |
+
|
| 25 |
+
### 1. Prepare data
|
| 26 |
+
|
| 27 |
+
```bash
|
| 28 |
+
# HotpotQA train/val parquet
|
| 29 |
+
python scripts/prepare_search_data.py
|
| 30 |
+
|
| 31 |
+
# Wikipedia corpus + FAISS index (~74GB)
|
| 32 |
+
python scripts/download_search_index.py
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
### 2. Start retrieval server
|
| 36 |
+
|
| 37 |
+
The retrieval server provides dense retrieval over ~21M Wikipedia passages using E5-base-v2 + FAISS.
|
| 38 |
+
|
| 39 |
+
```bash
|
| 40 |
+
python scripts/retrieval/server.py \
|
| 41 |
+
--data_dir ./search_data/prebuilt_indices \
|
| 42 |
+
--port 8000 --host 127.0.0.1 \
|
| 43 |
+
--device cuda:0 --gpu_memory_limit_mb 6144
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
**Important**: We recommend running the retrieval server on a **dedicated GPU** not used by training, or on CPU. Sharing a GPU with vLLM rollout and training causes CUDA OOM errors due to memory contention between processes.
|
| 47 |
+
|
| 48 |
+
---
|
| 49 |
+
|
| 50 |
+
## Experiment Scripts
|
| 51 |
+
|
| 52 |
+
All experiments use `scripts/runs/run_search_benchmark.sh`.
|
| 53 |
+
|
| 54 |
+
### Experiment 1: PPO + No Filter (baseline)
|
| 55 |
+
|
| 56 |
+
No filtering — all rollout groups are used for training.
|
| 57 |
+
|
| 58 |
+
```bash
|
| 59 |
+
bash scripts/runs/run_search_benchmark.sh \
|
| 60 |
+
--algos PPO \
|
| 61 |
+
--filter-strategy top_p --filter-value 1.0 \
|
| 62 |
+
--gpus 0,1,2,3,4,5,6,7 --gpus-per-exp 8 \
|
| 63 |
+
--micro-batch 4 --mini-batch 64 \
|
| 64 |
+
--gpu-memory-utilization 0.65 \
|
| 65 |
+
--save-freq 20 --steps 200 \
|
| 66 |
+
--retrieval-port 8000
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
### Experiment 2: PPO + TopK=0.25
|
| 70 |
+
|
| 71 |
+
Keep only the top 25% of rollout groups ranked by reward variance.
|
| 72 |
+
|
| 73 |
+
```bash
|
| 74 |
+
bash scripts/runs/run_search_benchmark.sh \
|
| 75 |
+
--algos PPO \
|
| 76 |
+
--filter-strategy top_k --filter-value 0.25 \
|
| 77 |
+
--gpus 0,1,2,3,4,5,6,7 --gpus-per-exp 8 \
|
| 78 |
+
--micro-batch 4 --mini-batch 32 \
|
| 79 |
+
--gpu-memory-utilization 0.65 \
|
| 80 |
+
--save-freq 20 --steps 200 \
|
| 81 |
+
--retrieval-port 8000
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
Note: `mini-batch` is reduced to 32 because effective batch after filtering is `16 groups * 8 group_size * 0.25 = 32`. The `ppo_mini_batch_size` must not exceed this value.
|
| 85 |
+
|
| 86 |
+
### Experiment 3: PPO + TopP=0.9
|
| 87 |
+
|
| 88 |
+
Keep rollout groups covering the top 90% cumulative reward variance (softmax-weighted).
|
| 89 |
+
|
| 90 |
+
```bash
|
| 91 |
+
bash scripts/runs/run_search_benchmark.sh \
|
| 92 |
+
--algos PPO \
|
| 93 |
+
--filter-strategy top_p --filter-value 0.9 \
|
| 94 |
+
--gpus 0,1,2,3,4,5,6,7 --gpus-per-exp 8 \
|
| 95 |
+
--micro-batch 4 --mini-batch 64 \
|
| 96 |
+
--gpu-memory-utilization 0.65 \
|
| 97 |
+
--save-freq 20 --steps 200 \
|
| 98 |
+
--retrieval-port 8000
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
---
|
| 102 |
+
|
| 103 |
+
## W&B Runs
|
| 104 |
+
|
| 105 |
+
Project: [`cuhksz-gc/ragen_search_benchmark`](https://wandb.ai/cuhksz-gc/ragen_search_benchmark)
|
| 106 |
+
|
| 107 |
+
| Experiment | Run ID | Link |
|
| 108 |
+
|-----------|--------|------|
|
| 109 |
+
| PPO + No Filter | `2sbt8952` | [wandb](https://wandb.ai/cuhksz-gc/ragen_search_benchmark/runs/2sbt8952) |
|
| 110 |
+
| PPO + TopK=0.25 | `2h5c7kbb` | [wandb](https://wandb.ai/cuhksz-gc/ragen_search_benchmark/runs/2h5c7kbb) |
|
| 111 |
+
| PPO + TopP=0.9 | `tbgx0lpt` | [wandb](https://wandb.ai/cuhksz-gc/ragen_search_benchmark/runs/tbgx0lpt) |
|
| 112 |
+
|
| 113 |
+
---
|
| 114 |
+
|
| 115 |
+
## Shared Config
|
| 116 |
+
|
| 117 |
+
```yaml
|
| 118 |
+
# config/_9_search.yaml overrides
|
| 119 |
+
micro_batch_size_per_gpu: 4
|
| 120 |
+
ppo_mini_batch_size: 32-64 # depends on filter setting
|
| 121 |
+
|
| 122 |
+
agent_proxy:
|
| 123 |
+
max_turn: 5
|
| 124 |
+
max_actions_per_turn: 1
|
| 125 |
+
|
| 126 |
+
actor_rollout_ref:
|
| 127 |
+
rollout:
|
| 128 |
+
max_model_len: 5000 # TopK=0.25 experiment used 4000
|
| 129 |
+
max_num_batched_tokens: 5000 # TopK=0.25 experiment used 4000
|
| 130 |
+
gpu_memory_utilization: 0.65
|
| 131 |
+
temperature: 1
|
| 132 |
+
actor:
|
| 133 |
+
use_kl_loss: False
|
| 134 |
+
kl_loss_coef: 0.001
|
| 135 |
+
entropy_coeff: 0.001
|
| 136 |
+
loss_agg_mode: token-mean
|
| 137 |
+
filter_loss_scaling: none
|
| 138 |
+
|
| 139 |
+
es_manager:
|
| 140 |
+
train:
|
| 141 |
+
env_groups: 16
|
| 142 |
+
group_size: 8 # 16 * 8 = 128 rollouts per step
|
| 143 |
+
val:
|
| 144 |
+
env_groups: 256
|
| 145 |
+
|
| 146 |
+
collapse_detection:
|
| 147 |
+
compute_freq: 999 # effectively disabled
|
| 148 |
+
|
| 149 |
+
trainer:
|
| 150 |
+
total_training_steps: 200
|
| 151 |
+
save_freq: 20
|
| 152 |
+
val_before_train: True
|
| 153 |
+
logger: ['console', 'wandb']
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
---
|
| 157 |
+
|
| 158 |
+
## Common Notes
|
| 159 |
+
|
| 160 |
+
- **Retrieval server GPU deployment**: Place the E5 retrieval server on a **dedicated GPU** not used by training. Co-locating with training on the same GPU causes CUDA OOM due to memory contention between vLLM, training, and the E5 server process. Do not use CPU mode — during rollout, hundreds of environments issue concurrent retrieval requests (256 env groups can produce 1000+ requests), and CPU cannot keep up.
|
| 161 |
+
- **mini-batch size adjustment**: When using aggressive filtering (e.g., `top_k=0.25`), reduce `ppo_mini_batch_size` so it does not exceed `env_groups * group_size * filter_value`. Otherwise training fails with an assertion error.
|
| 162 |
+
- **max_model_len**: Default is 5000 (in `_9_search.yaml`). The TopK=0.25 experiment used 4000 to save KV cache memory; the No Filter and TopP=0.9 experiments use the default 5000.
|
| 163 |
+
- **Checkpoint size**: Each checkpoint is ~35GB (model + optimizer, 8 FSDP shards). With `save_freq=20` and 200 steps, expect 10 checkpoints (~350GB). Monitor disk usage and delete old checkpoints as needed.
|
docs/guide_filtering_and_loss_scaling.md
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Filtering Strategies and Loss Scaling in RAGEN
|
| 2 |
+
|
| 3 |
+
## Overview
|
| 4 |
+
This document details the advanced filtering strategies and the loss scaling mechanism implemented to stabilize Reinforcement Learning (RL) training, particularly when using aggressive filtering techniques in the GRPO/PPO loop.
|
| 5 |
+
|
| 6 |
+
Note: the short guide for the current `top_p`, `top_k`, and no-filter variants lives in [guide_rollout_filtering.md](./guide_rollout_filtering.md).
|
| 7 |
+
|
| 8 |
+
## 1. Rolling Filter Strategies (`rollout_filter_strategy`)
|
| 9 |
+
We have implemented three strategies to filter rollout groups based on their rewards/scores.
|
| 10 |
+
|
| 11 |
+
### `top_p` (Nucleus Sampling)
|
| 12 |
+
- **Description**: Selects the smallest set of groups whose **cumulative probability** (derived from the softmax of scores) exceeds the threshold `value`.
|
| 13 |
+
- **Configuration**:
|
| 14 |
+
```yaml
|
| 15 |
+
actor_rollout_ref:
|
| 16 |
+
rollout:
|
| 17 |
+
rollout_filter_strategy: top_p
|
| 18 |
+
rollout_filter_value: 0.5 # Keep top cumulative 50% probability mass
|
| 19 |
+
```
|
| 20 |
+
- **Behavior**:
|
| 21 |
+
- Scores are converted to logits (negated if `rollout_filter_type: smallest`).
|
| 22 |
+
- Softmax is applied to get probabilities.
|
| 23 |
+
- Groups are sorted by probability.
|
| 24 |
+
- Groups are selected until the cumulative sum $\ge$ `value`.
|
| 25 |
+
- **Constraint**: Always keeps at least one group.
|
| 26 |
+
|
| 27 |
+
### `top_k`
|
| 28 |
+
- **Description**: Selects the top fraction `value` (e.g., 0.5 for 50%) of groups.
|
| 29 |
+
- **Configuration**:
|
| 30 |
+
```yaml
|
| 31 |
+
actor_rollout_ref:
|
| 32 |
+
rollout:
|
| 33 |
+
rollout_filter_strategy: top_k
|
| 34 |
+
rollout_filter_value: 0.5 # Keep top 50% groups
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
### `top_k_abs`
|
| 38 |
+
- **Description**: Selects specifically the top `k` groups with the highest (or lowest) scores.
|
| 39 |
+
- **Configuration**:
|
| 40 |
+
```yaml
|
| 41 |
+
actor_rollout_ref:
|
| 42 |
+
rollout:
|
| 43 |
+
rollout_filter_strategy: top_k_abs
|
| 44 |
+
rollout_filter_value: 4 # Keep top 4 groups
|
| 45 |
+
```
|
| 46 |
+
- **Behavior**: A simple sorting and slicing operation. Useful for guaranteeing a fixed batch size of "good" examples.
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
### `min_p`
|
| 50 |
+
- **Description**: Selects groups whose score is at least a fraction `value` of the maximum score in the batch.
|
| 51 |
+
- **Behavior**:
|
| 52 |
+
- **`largest`**: Keeps groups where $\text{score} \ge \text{max\_score} \cdot \text{value}$.
|
| 53 |
+
- **`smallest`**: Keeps groups where $\text{score} \le \text{min\_score} / \text{value}$.
|
| 54 |
+
- **Configuration**:
|
| 55 |
+
```yaml
|
| 56 |
+
actor_rollout_ref:
|
| 57 |
+
rollout:
|
| 58 |
+
rollout_filter_strategy: min_p
|
| 59 |
+
rollout_filter_value: 0.8 # Keep groups with score >= 0.8 * max_score
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
### Other Parameters
|
| 63 |
+
- **`rollout_filter_metric`**: `reward_variance` (default), `reward`, `reward_sum`, `entropy`, `entropy_variance`, or `length`.
|
| 64 |
+
- **`rollout_filter_type`**: `largest` (default) or `smallest`. Determines if we want high or low scores.
|
| 65 |
+
- **`rollout_filter_include_zero`**: If `True`, groups with zero score are candidates for filtering. If `False`, they are excluded or handled differently depending on the specific logic (often used to ensure we don't train on complete failures).
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
|
| 69 |
+
## 2. Filter Loss Scaling (`filter_loss_scaling`)
|
| 70 |
+
Aggressive filtering (e.g., `top_p=0.2`) can result in keeping only a small fraction of the generated prompts. This can lead to high variance in gradients. To mitigate this, we implemented loss scaling.
|
| 71 |
+
|
| 72 |
+
### Concept
|
| 73 |
+
We scale the PPO policy loss (and potentially KL/entropy components depending on the implementation) by a factor derived from the **kept ratio**:
|
| 74 |
+
$$ \text{ratio} = \frac{N_{\text{kept}}}{N_{\text{total}}} $$
|
| 75 |
+
|
| 76 |
+
### Configuration
|
| 77 |
+
Controlled via `actor_rollout_ref.actor.filter_loss_scaling`:
|
| 78 |
+
|
| 79 |
+
1. **`none`** (Default): No scaling.
|
| 80 |
+
$$ \mathcal{L}_{\text{final}} = \mathcal{L}_{\text{ppo}} $$
|
| 81 |
+
|
| 82 |
+
2. **`linear`**: Scales linearly with the kept ratio.
|
| 83 |
+
$$ \mathcal{L}_{\text{final}} = \mathcal{L}_{\text{ppo}} \times \text{ratio} $$
|
| 84 |
+
- *Intuition*: If we only keep 10% of the data, we scale the update down by 10% to prevent over-fitting to this small subset.
|
| 85 |
+
|
| 86 |
+
3. **`sqrt`**: Scales by the square root of the kept ratio.
|
| 87 |
+
$$ \mathcal{L}_{\text{final}} = \mathcal{L}_{\text{ppo}} \times \sqrt{\text{ratio}} $$
|
| 88 |
+
- *Intuition*: A milder dampening than linear.
|
| 89 |
+
|
| 90 |
+
### Implementation Details
|
| 91 |
+
- **Trainer**: The kept ratio is calculated in `ragen/trainer/agent_trainer.py`.
|
| 92 |
+
- **Loss Scaling**: The scaling is applied directly to the **advantages** in `ragen/trainer/agent_trainer.py` (after `compute_advantage`).
|
| 93 |
+
```python
|
| 94 |
+
if filter_loss_scaling == "linear":
|
| 95 |
+
batch.batch["advantages"] *= filter_kept_ratio
|
| 96 |
+
```
|
| 97 |
+
This effectively scales the policy gradient updates.
|
| 98 |
+
|
| 99 |
+
---
|
| 100 |
+
|
| 101 |
+
## 3. Reward Variance Early Stopping
|
| 102 |
+
To prevent training on collapsed or uninformative rollout groups, we implemented an early stopping mechanism based on reward variance.
|
| 103 |
+
|
| 104 |
+
### Concept
|
| 105 |
+
The trainer monitors the reward standard deviation (`rollout/in_group_reward_std`) at the successful training-step level.
|
| 106 |
+
|
| 107 |
+
1. **Baseline Generation**: During the first 10 successful training steps, the trainer calculates the average reward variance ($V_{base}$).
|
| 108 |
+
2. **Monitoring**: A sliding window of the last 10 successful training steps is maintained (starts after baseline is ready).
|
| 109 |
+
3. **Stopping Condition**: If all 10 consecutive step variances are less than 10% of $V_{base}$, training is stopped.
|
| 110 |
+
$$ \forall i \in \{1 \dots 10\}: V_i < 0.1 \times V_{base} \implies \text{Stop Training} $$
|
| 111 |
+
|
| 112 |
+
### Implementation
|
| 113 |
+
- **Baseline**: Average of `rollout/in_group_reward_std` for `global_steps` 1-10.
|
| 114 |
+
- **Sliding Window**: Uses a `collections.deque(maxlen=10)` to track the most recent successful training steps.
|
| 115 |
+
- **Metric**: Logs `early_stopped/reward_variance_collapse: 1.0` when triggered.
|
| 116 |
+
|
| 117 |
+
### 2. Success-Based Early Stopping
|
| 118 |
+
To prevent wasting compute on environments where the model is failing to learn, we implemented an early stopping mechanism based on validation success rates.
|
| 119 |
+
|
| 120 |
+
- **Condition**: If the success rate for a specific environment (e.g., `val-env/CoordSokoban/success`) remains below **1% (0.01)** for **5 consecutive** validation steps, the training is stopped.
|
| 121 |
+
- **Metric**: Logs `early_stopped/low_validation_success: 1.0` when triggered.
|
| 122 |
+
|
| 123 |
+
---
|
| 124 |
+
|
| 125 |
+
A unified script `scripts/runs/run_filtering_final.sh` is provided to run the validated set of filtering experiments.
|
| 126 |
+
|
| 127 |
+
### Usage
|
| 128 |
+
```bash
|
| 129 |
+
# Run experiments across available GPUs (e.g., 2 GPUs per experiment)
|
| 130 |
+
bash scripts/runs/run_filtering_final.sh 2
|
| 131 |
+
```
|
| 132 |
+
|
| 133 |
+
### Features
|
| 134 |
+
- **PPO Focused**: All experiments in this suite use the PPO algorithm.
|
| 135 |
+
- **400 Steps**: Standardized training length.
|
| 136 |
+
- **Auto-Scheduling**: Automatically detects available GPUs and distributes experiments.
|
| 137 |
+
- **Metric Coverage**: Covers `reward_variance`, `entropy`, `entropy_variance`, and `length`.
|
| 138 |
+
- **Automatic Skip**: Tracks progress in `filter_final_donelist.txt` to avoid redundant runs.
|
| 139 |
+
|
| 140 |
+
---
|
| 141 |
+
|
| 142 |
+
## 5. Code References
|
| 143 |
+
- **Filtering Logic**: `ragen/trainer/rollout_filter.py`
|
| 144 |
+
- **Trainer Integration**: `ragen/trainer/agent_trainer.py`
|
| 145 |
+
- **Early Stopping Logic**: `RayAgentTrainer` in `ragen/trainer/agent_trainer.py`
|
| 146 |
+
- **Loss Scaling Implementation**: `verl/verl/workers/actor/dp_actor.py` (specifically `DataParallelPPOActor.update_policy`)
|
| 147 |
+
- **Configuration**: `config/base.yaml` and `verl/verl/workers/config/actor.py`
|
| 148 |
+
|
| 149 |
+
---
|
| 150 |
+
|
| 151 |
+
## 6. Troubleshooting
|
| 152 |
+
|
| 153 |
+
### `AssertionError: old_log_probs` Collision
|
| 154 |
+
If you use `rollout_filter_metric=entropy`, you might encounter an `AssertionError` during the `batch.union` operation in `agent_trainer.py`.
|
| 155 |
+
|
| 156 |
+
- **Cause**: The `EntropyRolloutFilter` recomputes log probabilities to calculate entropy and returns them in the `DataProto`. The trainer also recomputes log probabilities for the PPO update. `DataProto.union` rejects keys that already exist if they are not the exact same tensor instance.
|
| 157 |
+
- **Resolution**: The filter has been updated to only include the `entropys` key and prune the redundant `old_log_probs` before unioning with the main batch.
|
gradient_analysis/plot_icml_steps.py
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import json
|
| 3 |
+
import argparse
|
| 4 |
+
from typing import Dict, List, Tuple
|
| 5 |
+
|
| 6 |
+
import numpy as np
|
| 7 |
+
import matplotlib.pyplot as plt
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def _load_metrics(path: str) -> Dict:
|
| 11 |
+
with open(path, "r") as f:
|
| 12 |
+
return json.load(f)
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def _bucket_sort_key(bucket: str) -> Tuple[int, int, str]:
|
| 16 |
+
if bucket.startswith("bucket_"):
|
| 17 |
+
suffix = bucket.split("_", 1)[1]
|
| 18 |
+
if suffix.isdigit():
|
| 19 |
+
return (0, int(suffix), bucket)
|
| 20 |
+
return (1, 0, bucket)
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def _extract_buckets(metrics: Dict) -> List[str]:
|
| 24 |
+
buckets = set()
|
| 25 |
+
for k in metrics.keys():
|
| 26 |
+
if k.startswith("grad_norm/bucket_"):
|
| 27 |
+
parts = k.split("/")
|
| 28 |
+
if len(parts) >= 2:
|
| 29 |
+
buckets.add(parts[1])
|
| 30 |
+
return sorted(buckets, key=_bucket_sort_key)
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def _rv_stats(metrics: Dict, buckets: List[str]) -> Tuple[List[float], List[float], List[float]]:
|
| 34 |
+
means, mins, maxs = [], [], []
|
| 35 |
+
for b in buckets:
|
| 36 |
+
means.append(float(metrics.get(f"grad_norm/{b}/reward_std_mean", 0.0)))
|
| 37 |
+
mins.append(float(metrics.get(f"grad_norm/{b}/reward_std_min", 0.0)))
|
| 38 |
+
maxs.append(float(metrics.get(f"grad_norm/{b}/reward_std_max", 0.0)))
|
| 39 |
+
return means, mins, maxs
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
def _grad_series(metrics: Dict, buckets: List[str]) -> Tuple[List[float], List[float], List[float]]:
|
| 43 |
+
task = []
|
| 44 |
+
kl = []
|
| 45 |
+
ent = []
|
| 46 |
+
for b in buckets:
|
| 47 |
+
task.append(float(metrics.get(f"grad_norm/{b}/task", 0.0)))
|
| 48 |
+
kl.append(float(metrics.get(f"grad_norm/{b}/kl", 0.0)))
|
| 49 |
+
ent.append(float(metrics.get(f"grad_norm/{b}/entropy", 0.0)))
|
| 50 |
+
return task, kl, ent
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def _default_step_dir(mode: str, step: str) -> str:
|
| 54 |
+
base_dir = os.path.dirname(__file__)
|
| 55 |
+
return os.path.join(base_dir, "data", mode, step)
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
def main() -> None:
|
| 59 |
+
parser = argparse.ArgumentParser(description="ICML paper plots: step 0/20/40 grid.")
|
| 60 |
+
parser.add_argument("--mode", choices=["grpo", "ppo"], default="grpo", help="Which dataset to plot")
|
| 61 |
+
parser.add_argument("--step0-dir", default=None, help="Directory with metrics json for step 0")
|
| 62 |
+
parser.add_argument("--step20-dir", default=None, help="Directory with metrics json for step 20")
|
| 63 |
+
parser.add_argument("--step40-dir", default=None, help="Directory with metrics json for step 40")
|
| 64 |
+
parser.add_argument("--out", default="icml_step0_20_40_grid.png", help="Output PNG path")
|
| 65 |
+
args = parser.parse_args()
|
| 66 |
+
|
| 67 |
+
step0_dir = args.step0_dir or _default_step_dir(args.mode, "step0")
|
| 68 |
+
step20_dir = args.step20_dir or _default_step_dir(args.mode, "step20")
|
| 69 |
+
step40_dir = args.step40_dir or _default_step_dir(args.mode, "step40")
|
| 70 |
+
|
| 71 |
+
metrics0 = _load_metrics(os.path.join(step0_dir, "metrics.json"))
|
| 72 |
+
metrics20 = _load_metrics(os.path.join(step20_dir, "metrics.json"))
|
| 73 |
+
metrics40 = _load_metrics(os.path.join(step40_dir, "metrics.json"))
|
| 74 |
+
|
| 75 |
+
buckets = _extract_buckets(metrics20)
|
| 76 |
+
buckets = [b for b in buckets if b in _extract_buckets(metrics40)]
|
| 77 |
+
buckets = [b for b in buckets if b in _extract_buckets(metrics0)]
|
| 78 |
+
labels = [b.replace("_", " ") for b in buckets]
|
| 79 |
+
|
| 80 |
+
rv20_means, rv20_mins, rv20_maxs = _rv_stats(metrics20, buckets)
|
| 81 |
+
rv40_means, rv40_mins, rv40_maxs = _rv_stats(metrics40, buckets)
|
| 82 |
+
task20, kl20, ent20 = _grad_series(metrics20, buckets)
|
| 83 |
+
task40, kl40, ent40 = _grad_series(metrics40, buckets)
|
| 84 |
+
reg20 = [k + e for k, e in zip(kl20, ent20)]
|
| 85 |
+
reg40 = [k + e for k, e in zip(kl40, ent40)]
|
| 86 |
+
rv0_means, rv0_mins, rv0_maxs = _rv_stats(metrics0, buckets)
|
| 87 |
+
task0, kl0, ent0 = _grad_series(metrics0, buckets)
|
| 88 |
+
reg0 = [k + e for k, e in zip(kl0, ent0)]
|
| 89 |
+
|
| 90 |
+
fig, axes = plt.subplots(3, 3, figsize=(16, 12), sharex="col")
|
| 91 |
+
color_rv = "#1f78b4"
|
| 92 |
+
color_task = "#e67e22"
|
| 93 |
+
color_reg = "#16a085"
|
| 94 |
+
|
| 95 |
+
positions = np.arange(len(buckets))
|
| 96 |
+
box_width = 0.35
|
| 97 |
+
def _draw_interval_mean(ax, x, vmin, vmax, vmean, color):
|
| 98 |
+
if vmax < vmin:
|
| 99 |
+
vmin, vmax = vmax, vmin
|
| 100 |
+
yerr = [[max(0.0, vmean - vmin)], [max(0.0, vmax - vmean)]]
|
| 101 |
+
ax.errorbar(
|
| 102 |
+
[x],
|
| 103 |
+
[vmean],
|
| 104 |
+
yerr=yerr,
|
| 105 |
+
fmt="o",
|
| 106 |
+
color=color,
|
| 107 |
+
markersize=5,
|
| 108 |
+
capsize=4,
|
| 109 |
+
linewidth=1.2,
|
| 110 |
+
)
|
| 111 |
+
|
| 112 |
+
# rows: step0 (if provided), step20, step40
|
| 113 |
+
steps = [
|
| 114 |
+
("Step 0", rv0_means, rv0_mins, rv0_maxs, task0, reg0),
|
| 115 |
+
("Step 20", rv20_means, rv20_mins, rv20_maxs, task20, reg20),
|
| 116 |
+
("Step 40", rv40_means, rv40_mins, rv40_maxs, task40, reg40),
|
| 117 |
+
]
|
| 118 |
+
|
| 119 |
+
col_titles = [
|
| 120 |
+
"Reward Variance by bucket",
|
| 121 |
+
"Task gradient norm vs Reward Variance",
|
| 122 |
+
"Regularizer gradient norm (KL+Entropy) vs RV",
|
| 123 |
+
]
|
| 124 |
+
col_captions = [
|
| 125 |
+
"RV quantile buckets. (Q1 -> Q6)",
|
| 126 |
+
"Bucket RV (log scale).",
|
| 127 |
+
"Bucket RV (log scale).",
|
| 128 |
+
]
|
| 129 |
+
|
| 130 |
+
for r, (step_name, rv_means, rv_mins, rv_maxs, task, reg) in enumerate(steps):
|
| 131 |
+
# (a) RV per bucket interval + mean
|
| 132 |
+
ax = axes[r][0]
|
| 133 |
+
for i, x in enumerate(positions):
|
| 134 |
+
_draw_interval_mean(
|
| 135 |
+
ax,
|
| 136 |
+
x,
|
| 137 |
+
rv_mins[i],
|
| 138 |
+
rv_maxs[i],
|
| 139 |
+
rv_means[i],
|
| 140 |
+
color=color_rv,
|
| 141 |
+
)
|
| 142 |
+
ax.set_yscale("log")
|
| 143 |
+
ax.grid(axis="y", linestyle="--", alpha=0.15, linewidth=0.8)
|
| 144 |
+
ax.set_ylabel(f"{step_name}\nReward Variance (Std)")
|
| 145 |
+
if r == 0:
|
| 146 |
+
ax.set_title("(a) " + col_titles[0], fontweight="bold")
|
| 147 |
+
ax.set_xticks(positions)
|
| 148 |
+
ax.set_xticklabels(labels if r == len(steps) - 1 else [])
|
| 149 |
+
|
| 150 |
+
# (b) Task vs RV
|
| 151 |
+
ax = axes[r][1]
|
| 152 |
+
ax.plot(rv_means, task, linestyle="-", marker="o", color=color_task, markersize=5)
|
| 153 |
+
ax.set_xscale("log")
|
| 154 |
+
ax.grid(axis="y", linestyle="--", alpha=0.15, linewidth=0.8)
|
| 155 |
+
ax.set_ylabel(f"{step_name}\nTask grad norm")
|
| 156 |
+
if r == 0:
|
| 157 |
+
ax.set_title("(b) " + col_titles[1], fontweight="bold")
|
| 158 |
+
# if r == len(steps) - 1:
|
| 159 |
+
# ax.set_xlabel("RV mean")
|
| 160 |
+
|
| 161 |
+
# (c) Reg vs RV
|
| 162 |
+
ax = axes[r][2]
|
| 163 |
+
ax.plot(rv_means, reg, linestyle="-", marker="o", color=color_reg, markersize=5)
|
| 164 |
+
ax.set_xscale("log")
|
| 165 |
+
ax.set_ylim(0.0, 0.1)
|
| 166 |
+
ax.grid(axis="y", linestyle="--", alpha=0.15, linewidth=0.8)
|
| 167 |
+
ax.set_ylabel(f"{step_name}\nKL+Entropy grad norm")
|
| 168 |
+
if r == 0:
|
| 169 |
+
ax.set_title("(c) " + col_titles[2], fontweight="bold")
|
| 170 |
+
# if r == len(steps) - 1:
|
| 171 |
+
# ax.set_xlabel("RV mean")
|
| 172 |
+
|
| 173 |
+
# style spines
|
| 174 |
+
for row in axes:
|
| 175 |
+
for a in row:
|
| 176 |
+
a.spines["top"].set_visible(False)
|
| 177 |
+
a.spines["right"].set_visible(False)
|
| 178 |
+
|
| 179 |
+
# captions under each column
|
| 180 |
+
for c, caption in enumerate(col_captions):
|
| 181 |
+
ax = axes[-1][c]
|
| 182 |
+
ax.text(
|
| 183 |
+
0.5,
|
| 184 |
+
-0.15,
|
| 185 |
+
caption,
|
| 186 |
+
transform=ax.transAxes,
|
| 187 |
+
ha="center",
|
| 188 |
+
va="top",
|
| 189 |
+
fontsize=10,
|
| 190 |
+
fontweight="bold",
|
| 191 |
+
)
|
| 192 |
+
|
| 193 |
+
plt.tight_layout()
|
| 194 |
+
plt.savefig(args.out, dpi=300)
|
| 195 |
+
print(f"Saved figure to {os.path.abspath(args.out)}")
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
if __name__ == "__main__":
|
| 199 |
+
main()
|
outputs/2026-04-30/13-11-58/.hydra/hydra.yaml
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
hydra:
|
| 2 |
+
run:
|
| 3 |
+
dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 4 |
+
sweep:
|
| 5 |
+
dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 6 |
+
subdir: ${hydra.job.num}
|
| 7 |
+
launcher:
|
| 8 |
+
_target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
|
| 9 |
+
sweeper:
|
| 10 |
+
_target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
|
| 11 |
+
max_batch_size: null
|
| 12 |
+
params: null
|
| 13 |
+
help:
|
| 14 |
+
app_name: ${hydra.job.name}
|
| 15 |
+
header: '${hydra.help.app_name} is powered by Hydra.
|
| 16 |
+
|
| 17 |
+
'
|
| 18 |
+
footer: 'Powered by Hydra (https://hydra.cc)
|
| 19 |
+
|
| 20 |
+
Use --hydra-help to view Hydra specific help
|
| 21 |
+
|
| 22 |
+
'
|
| 23 |
+
template: '${hydra.help.header}
|
| 24 |
+
|
| 25 |
+
== Configuration groups ==
|
| 26 |
+
|
| 27 |
+
Compose your configuration from those groups (group=option)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
$APP_CONFIG_GROUPS
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
== Config ==
|
| 34 |
+
|
| 35 |
+
Override anything in the config (foo.bar=value)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
$CONFIG
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
${hydra.help.footer}
|
| 42 |
+
|
| 43 |
+
'
|
| 44 |
+
hydra_help:
|
| 45 |
+
template: 'Hydra (${hydra.runtime.version})
|
| 46 |
+
|
| 47 |
+
See https://hydra.cc for more info.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
== Flags ==
|
| 51 |
+
|
| 52 |
+
$FLAGS_HELP
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
== Configuration groups ==
|
| 56 |
+
|
| 57 |
+
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
|
| 58 |
+
to command line)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
$HYDRA_CONFIG_GROUPS
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
Use ''--cfg hydra'' to Show the Hydra config.
|
| 65 |
+
|
| 66 |
+
'
|
| 67 |
+
hydra_help: ???
|
| 68 |
+
hydra_logging:
|
| 69 |
+
version: 1
|
| 70 |
+
formatters:
|
| 71 |
+
simple:
|
| 72 |
+
format: '[%(asctime)s][HYDRA] %(message)s'
|
| 73 |
+
handlers:
|
| 74 |
+
console:
|
| 75 |
+
class: logging.StreamHandler
|
| 76 |
+
formatter: simple
|
| 77 |
+
stream: ext://sys.stdout
|
| 78 |
+
root:
|
| 79 |
+
level: INFO
|
| 80 |
+
handlers:
|
| 81 |
+
- console
|
| 82 |
+
loggers:
|
| 83 |
+
logging_example:
|
| 84 |
+
level: DEBUG
|
| 85 |
+
disable_existing_loggers: false
|
| 86 |
+
job_logging:
|
| 87 |
+
version: 1
|
| 88 |
+
formatters:
|
| 89 |
+
simple:
|
| 90 |
+
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
|
| 91 |
+
handlers:
|
| 92 |
+
console:
|
| 93 |
+
class: logging.StreamHandler
|
| 94 |
+
formatter: simple
|
| 95 |
+
stream: ext://sys.stdout
|
| 96 |
+
file:
|
| 97 |
+
class: logging.FileHandler
|
| 98 |
+
formatter: simple
|
| 99 |
+
filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
|
| 100 |
+
root:
|
| 101 |
+
level: INFO
|
| 102 |
+
handlers:
|
| 103 |
+
- console
|
| 104 |
+
- file
|
| 105 |
+
disable_existing_loggers: false
|
| 106 |
+
env: {}
|
| 107 |
+
mode: RUN
|
| 108 |
+
searchpath:
|
| 109 |
+
- pkg://verl.trainer.config
|
| 110 |
+
callbacks: {}
|
| 111 |
+
output_subdir: .hydra
|
| 112 |
+
overrides:
|
| 113 |
+
hydra:
|
| 114 |
+
- hydra.mode=RUN
|
| 115 |
+
task:
|
| 116 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 117 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 118 |
+
job:
|
| 119 |
+
name: train
|
| 120 |
+
chdir: null
|
| 121 |
+
override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 122 |
+
id: ???
|
| 123 |
+
num: ???
|
| 124 |
+
config_name: _2_sokoban
|
| 125 |
+
env_set: {}
|
| 126 |
+
env_copy: []
|
| 127 |
+
config:
|
| 128 |
+
override_dirname:
|
| 129 |
+
kv_sep: '='
|
| 130 |
+
item_sep: ','
|
| 131 |
+
exclude_keys: []
|
| 132 |
+
runtime:
|
| 133 |
+
version: 1.3.2
|
| 134 |
+
version_base: '1.3'
|
| 135 |
+
cwd: /mnt/general/wanghy/RAGEN_v2
|
| 136 |
+
config_sources:
|
| 137 |
+
- path: hydra.conf
|
| 138 |
+
schema: pkg
|
| 139 |
+
provider: hydra
|
| 140 |
+
- path: /mnt/general/wanghy/RAGEN_v2/config
|
| 141 |
+
schema: file
|
| 142 |
+
provider: main
|
| 143 |
+
- path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
|
| 144 |
+
schema: file
|
| 145 |
+
provider: command-line
|
| 146 |
+
- path: verl.trainer.config
|
| 147 |
+
schema: pkg
|
| 148 |
+
provider: hydra.searchpath in main
|
| 149 |
+
- path: ''
|
| 150 |
+
schema: structured
|
| 151 |
+
provider: schema
|
| 152 |
+
output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-04-30/13-11-58
|
| 153 |
+
choices:
|
| 154 |
+
reward_model: dp_reward_model
|
| 155 |
+
critic: dp_critic
|
| 156 |
+
critic/../engine@critic.model.fsdp_config: fsdp
|
| 157 |
+
critic/../optim@critic.optim: fsdp
|
| 158 |
+
model@actor_rollout_ref.model: hf_model
|
| 159 |
+
rollout@actor_rollout_ref.rollout: rollout
|
| 160 |
+
ref@actor_rollout_ref.ref: dp_ref
|
| 161 |
+
ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
|
| 162 |
+
data: legacy_data
|
| 163 |
+
actor@actor_rollout_ref.actor: dp_actor
|
| 164 |
+
actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
|
| 165 |
+
actor/../optim@actor_rollout_ref.actor.optim: fsdp
|
| 166 |
+
hydra/env: default
|
| 167 |
+
hydra/callbacks: null
|
| 168 |
+
hydra/job_logging: default
|
| 169 |
+
hydra/hydra_logging: default
|
| 170 |
+
hydra/hydra_help: default
|
| 171 |
+
hydra/help: default
|
| 172 |
+
hydra/sweeper: basic
|
| 173 |
+
hydra/launcher: basic
|
| 174 |
+
hydra/output: default
|
| 175 |
+
verbose: false
|
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
|
| 8 |
+
weight_decay: 0.01
|
| 9 |
+
lr_warmup_steps: -1
|
| 10 |
+
betas:
|
| 11 |
+
- 0.9
|
| 12 |
+
- 0.999
|
| 13 |
+
clip_grad: 1.0
|
| 14 |
+
min_lr_ratio: 0.0
|
| 15 |
+
num_cycles: 0.5
|
| 16 |
+
warmup_style: constant
|
| 17 |
+
fsdp_config:
|
| 18 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 19 |
+
wrap_policy:
|
| 20 |
+
min_num_params: 0
|
| 21 |
+
param_offload: false
|
| 22 |
+
optimizer_offload: false
|
| 23 |
+
offload_policy: false
|
| 24 |
+
reshard_after_forward: true
|
| 25 |
+
fsdp_size: -1
|
| 26 |
+
forward_prefetch: false
|
| 27 |
+
model_dtype: fp32
|
| 28 |
+
use_orig_params: false
|
| 29 |
+
ulysses_sequence_parallel_size: 1
|
| 30 |
+
entropy_from_logits_with_chunking: false
|
| 31 |
+
use_torch_compile: true
|
| 32 |
+
entropy_checkpointing: false
|
| 33 |
+
forward_only: false
|
| 34 |
+
strategy: fsdp
|
| 35 |
+
_target_: verl.workers.config.FSDPActorConfig
|
| 36 |
+
strategy: fsdp
|
| 37 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 38 |
+
ppo_micro_batch_size: null
|
| 39 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 40 |
+
use_dynamic_bsz: false
|
| 41 |
+
ppo_max_token_len_per_gpu: 16384
|
| 42 |
+
clip_ratio: 0.2
|
| 43 |
+
clip_ratio_low: 0.2
|
| 44 |
+
clip_ratio_high: 0.28
|
| 45 |
+
freeze_vision_tower: false
|
| 46 |
+
policy_loss:
|
| 47 |
+
_target_: verl.workers.config.PolicyLossConfig
|
| 48 |
+
loss_mode: vanilla
|
| 49 |
+
clip_cov_ratio: 0.0002
|
| 50 |
+
clip_cov_lb: 1.0
|
| 51 |
+
clip_cov_ub: 5.0
|
| 52 |
+
kl_cov_ratio: 0.0002
|
| 53 |
+
ppo_kl_coef: 0.1
|
| 54 |
+
clip_ratio_c: 3.0
|
| 55 |
+
loss_agg_mode: token-mean
|
| 56 |
+
entropy_coeff: 0.001
|
| 57 |
+
tis_imp_ratio_cap: -1
|
| 58 |
+
use_kl_loss: false
|
| 59 |
+
use_torch_compile: true
|
| 60 |
+
kl_loss_coef: 0.0
|
| 61 |
+
kl_loss_type: kl
|
| 62 |
+
ppo_epochs: 1
|
| 63 |
+
shuffle: false
|
| 64 |
+
checkpoint:
|
| 65 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 66 |
+
save_contents:
|
| 67 |
+
- model
|
| 68 |
+
- optimizer
|
| 69 |
+
- extra
|
| 70 |
+
load_contents: ${.save_contents}
|
| 71 |
+
async_save: false
|
| 72 |
+
use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
|
| 73 |
+
profiler:
|
| 74 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 75 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 76 |
+
enable: false
|
| 77 |
+
all_ranks: false
|
| 78 |
+
ranks: []
|
| 79 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 80 |
+
tool_config:
|
| 81 |
+
nsys:
|
| 82 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 83 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 84 |
+
npu:
|
| 85 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 86 |
+
contents: []
|
| 87 |
+
level: level1
|
| 88 |
+
analysis: true
|
| 89 |
+
discrete: false
|
| 90 |
+
torch:
|
| 91 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 92 |
+
step_start: 0
|
| 93 |
+
step_end: null
|
| 94 |
+
torch_memory:
|
| 95 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 96 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 97 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 98 |
+
grad_clip: 1.0
|
| 99 |
+
ulysses_sequence_parallel_size: 1
|
| 100 |
+
entropy_from_logits_with_chunking: false
|
| 101 |
+
entropy_checkpointing: false
|
| 102 |
+
use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
|
| 103 |
+
use_ref: true
|
| 104 |
+
grpo_advantage_length_weight: ${grpo_advantage_length_weight}
|
| 105 |
+
filter_loss_scaling: none
|
| 106 |
+
ref:
|
| 107 |
+
strategy: ${actor_rollout_ref.actor.strategy}
|
| 108 |
+
use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
|
| 109 |
+
log_prob_micro_batch_size: null
|
| 110 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 111 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 112 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 113 |
+
profiler:
|
| 114 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 115 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 116 |
+
enable: false
|
| 117 |
+
all_ranks: false
|
| 118 |
+
ranks: []
|
| 119 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 120 |
+
tool_config:
|
| 121 |
+
nsys:
|
| 122 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 123 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 124 |
+
npu:
|
| 125 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 126 |
+
contents: []
|
| 127 |
+
level: level1
|
| 128 |
+
analysis: true
|
| 129 |
+
discrete: false
|
| 130 |
+
torch:
|
| 131 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 132 |
+
step_start: 0
|
| 133 |
+
step_end: null
|
| 134 |
+
torch_memory:
|
| 135 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 136 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 137 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 138 |
+
fsdp_config:
|
| 139 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 140 |
+
wrap_policy:
|
| 141 |
+
min_num_params: 0
|
| 142 |
+
param_offload: false
|
| 143 |
+
optimizer_offload: false
|
| 144 |
+
offload_policy: false
|
| 145 |
+
reshard_after_forward: true
|
| 146 |
+
fsdp_size: -1
|
| 147 |
+
forward_prefetch: false
|
| 148 |
+
model_dtype: fp32
|
| 149 |
+
use_orig_params: false
|
| 150 |
+
ulysses_sequence_parallel_size: 1
|
| 151 |
+
entropy_from_logits_with_chunking: false
|
| 152 |
+
use_torch_compile: true
|
| 153 |
+
entropy_checkpointing: false
|
| 154 |
+
forward_only: false
|
| 155 |
+
strategy: fsdp
|
| 156 |
+
model: null
|
| 157 |
+
ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
|
| 158 |
+
entropy_from_logits_with_chunking: false
|
| 159 |
+
entropy_checkpointing: false
|
| 160 |
+
rollout:
|
| 161 |
+
_target_: verl.workers.config.RolloutConfig
|
| 162 |
+
name: vllm
|
| 163 |
+
mode: sync
|
| 164 |
+
temperature: 1
|
| 165 |
+
top_k: -1
|
| 166 |
+
top_p: 1
|
| 167 |
+
prompt_length: 1
|
| 168 |
+
response_length: 400
|
| 169 |
+
dtype: bfloat16
|
| 170 |
+
gpu_memory_utilization: 0.8
|
| 171 |
+
ignore_eos: false
|
| 172 |
+
enforce_eager: true
|
| 173 |
+
cudagraph_capture_sizes: null
|
| 174 |
+
free_cache_engine: true
|
| 175 |
+
tensor_model_parallel_size: 1
|
| 176 |
+
data_parallel_size: 1
|
| 177 |
+
expert_parallel_size: 1
|
| 178 |
+
max_num_batched_tokens: 8192
|
| 179 |
+
max_model_len: 3600
|
| 180 |
+
max_num_seqs: 1024
|
| 181 |
+
enable_chunked_prefill: true
|
| 182 |
+
enable_prefix_caching: true
|
| 183 |
+
load_format: auto
|
| 184 |
+
log_prob_micro_batch_size: null
|
| 185 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 186 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 187 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 188 |
+
disable_log_stats: true
|
| 189 |
+
do_sample: true
|
| 190 |
+
'n': 1
|
| 191 |
+
over_sample_rate: 0
|
| 192 |
+
multi_stage_wake_up: false
|
| 193 |
+
engine_kwargs:
|
| 194 |
+
vllm: {}
|
| 195 |
+
sglang: {}
|
| 196 |
+
val_kwargs:
|
| 197 |
+
_target_: verl.workers.config.SamplingConfig
|
| 198 |
+
top_k: -1
|
| 199 |
+
top_p: 1.0
|
| 200 |
+
temperature: 0.5
|
| 201 |
+
'n': 1
|
| 202 |
+
do_sample: true
|
| 203 |
+
multi_turn:
|
| 204 |
+
_target_: verl.workers.config.MultiTurnConfig
|
| 205 |
+
enable: false
|
| 206 |
+
max_assistant_turns: null
|
| 207 |
+
tool_config_path: null
|
| 208 |
+
max_user_turns: null
|
| 209 |
+
max_parallel_calls: 1
|
| 210 |
+
max_tool_response_length: 256
|
| 211 |
+
tool_response_truncate_side: middle
|
| 212 |
+
interaction_config_path: null
|
| 213 |
+
use_inference_chat_template: false
|
| 214 |
+
tokenization_sanity_check_mode: strict
|
| 215 |
+
format: hermes
|
| 216 |
+
num_repeat_rollouts: null
|
| 217 |
+
calculate_log_probs: false
|
| 218 |
+
agent:
|
| 219 |
+
_target_: verl.workers.config.AgentLoopConfig
|
| 220 |
+
num_workers: 8
|
| 221 |
+
agent_loop_config_path: null
|
| 222 |
+
custom_async_server:
|
| 223 |
+
_target_: verl.workers.config.CustomAsyncServerConfig
|
| 224 |
+
path: null
|
| 225 |
+
name: null
|
| 226 |
+
update_weights_bucket_megabytes: 512
|
| 227 |
+
trace:
|
| 228 |
+
_target_: verl.workers.config.TraceConfig
|
| 229 |
+
backend: null
|
| 230 |
+
token2text: false
|
| 231 |
+
skip_rollout: false
|
| 232 |
+
skip_dump_dir: /tmp/rollout_dump
|
| 233 |
+
skip_tokenizer_init: true
|
| 234 |
+
profiler:
|
| 235 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 236 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 237 |
+
enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
|
| 238 |
+
all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
|
| 239 |
+
ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
|
| 240 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 241 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 242 |
+
layered_summon: false
|
| 243 |
+
rollout_filter_value: 0.9
|
| 244 |
+
rollout_filter_strategy: top_p
|
| 245 |
+
rollout_filter_type: largest
|
| 246 |
+
rollout_filter_include_zero: true
|
| 247 |
+
rollout_filter_top_p_prob_mode: linear
|
| 248 |
+
rollout_filter_selection_eps: 0.01
|
| 249 |
+
rollout_filter_empty_stop_steps: 5
|
| 250 |
+
rollout_filter_metric: reward_variance
|
| 251 |
+
gradient_analysis_num_buckets: 6
|
| 252 |
+
gradient_analysis_bucket_mode: quantile
|
| 253 |
+
model:
|
| 254 |
+
_target_: verl.workers.config.HFModelConfig
|
| 255 |
+
path: ${model_path}
|
| 256 |
+
hf_config_path: null
|
| 257 |
+
tokenizer_path: null
|
| 258 |
+
use_shm: false
|
| 259 |
+
trust_remote_code: false
|
| 260 |
+
custom_chat_template: null
|
| 261 |
+
external_lib: null
|
| 262 |
+
override_config: {}
|
| 263 |
+
enable_gradient_checkpointing: true
|
| 264 |
+
enable_activation_offload: false
|
| 265 |
+
use_remove_padding: false
|
| 266 |
+
lora_rank: ${lora.rank}
|
| 267 |
+
lora_alpha: ${lora.alpha}
|
| 268 |
+
target_modules: ${lora.target_modules}
|
| 269 |
+
exclude_modules: null
|
| 270 |
+
use_liger: false
|
| 271 |
+
use_fused_kernels: false
|
| 272 |
+
fused_kernel_options:
|
| 273 |
+
impl_backend: torch
|
| 274 |
+
hybrid_engine: true
|
| 275 |
+
nccl_timeout: 600
|
| 276 |
+
data:
|
| 277 |
+
tokenizer: null
|
| 278 |
+
use_shm: false
|
| 279 |
+
train_files: ~/data/rlhf/gsm8k/train.parquet
|
| 280 |
+
val_files: ~/data/rlhf/gsm8k/test.parquet
|
| 281 |
+
prompt_key: prompt
|
| 282 |
+
reward_fn_key: data_source
|
| 283 |
+
max_prompt_length: null
|
| 284 |
+
max_response_length: null
|
| 285 |
+
train_batch_size: null
|
| 286 |
+
val_batch_size: null
|
| 287 |
+
return_raw_input_ids: false
|
| 288 |
+
return_raw_chat: false
|
| 289 |
+
return_full_prompt: false
|
| 290 |
+
shuffle: true
|
| 291 |
+
dataloader_num_workers: 8
|
| 292 |
+
validation_shuffle: false
|
| 293 |
+
filter_overlong_prompts: false
|
| 294 |
+
filter_overlong_prompts_workers: 1
|
| 295 |
+
truncation: error
|
| 296 |
+
image_key: images
|
| 297 |
+
video_key: videos
|
| 298 |
+
trust_remote_code: false
|
| 299 |
+
custom_cls:
|
| 300 |
+
path: null
|
| 301 |
+
name: null
|
| 302 |
+
return_multi_modal_inputs: true
|
| 303 |
+
sampler:
|
| 304 |
+
class_path: null
|
| 305 |
+
class_name: null
|
| 306 |
+
datagen:
|
| 307 |
+
path: null
|
| 308 |
+
name: null
|
| 309 |
+
apply_chat_template_kwargs: {}
|
| 310 |
+
critic:
|
| 311 |
+
optim:
|
| 312 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 313 |
+
lr: 1.0e-05
|
| 314 |
+
lr_warmup_steps_ratio: 0.0
|
| 315 |
+
total_training_steps: -1
|
| 316 |
+
weight_decay: 0.01
|
| 317 |
+
lr_warmup_steps: -1
|
| 318 |
+
betas:
|
| 319 |
+
- 0.9
|
| 320 |
+
- 0.999
|
| 321 |
+
clip_grad: 1.0
|
| 322 |
+
min_lr_ratio: 0.0
|
| 323 |
+
num_cycles: 0.5
|
| 324 |
+
warmup_style: constant
|
| 325 |
+
model:
|
| 326 |
+
fsdp_config:
|
| 327 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 328 |
+
wrap_policy:
|
| 329 |
+
min_num_params: 0
|
| 330 |
+
param_offload: false
|
| 331 |
+
optimizer_offload: false
|
| 332 |
+
offload_policy: false
|
| 333 |
+
reshard_after_forward: true
|
| 334 |
+
fsdp_size: -1
|
| 335 |
+
forward_prefetch: false
|
| 336 |
+
model_dtype: fp32
|
| 337 |
+
use_orig_params: false
|
| 338 |
+
ulysses_sequence_parallel_size: 1
|
| 339 |
+
entropy_from_logits_with_chunking: false
|
| 340 |
+
use_torch_compile: true
|
| 341 |
+
entropy_checkpointing: false
|
| 342 |
+
forward_only: false
|
| 343 |
+
strategy: fsdp
|
| 344 |
+
path: ${model_path}
|
| 345 |
+
tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
|
| 346 |
+
override_config: {}
|
| 347 |
+
external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
|
| 348 |
+
trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
|
| 349 |
+
_target_: verl.workers.config.FSDPCriticModelCfg
|
| 350 |
+
use_shm: false
|
| 351 |
+
enable_gradient_checkpointing: true
|
| 352 |
+
enable_activation_offload: false
|
| 353 |
+
use_remove_padding: false
|
| 354 |
+
lora_rank: ${lora.rank}
|
| 355 |
+
lora_alpha: ${lora.alpha}
|
| 356 |
+
target_modules: ${lora.target_modules}
|
| 357 |
+
_target_: verl.workers.config.FSDPCriticConfig
|
| 358 |
+
rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
|
| 359 |
+
strategy: fsdp
|
| 360 |
+
enable: null
|
| 361 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 362 |
+
ppo_micro_batch_size: null
|
| 363 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 364 |
+
use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 365 |
+
ppo_max_token_len_per_gpu: 32768
|
| 366 |
+
forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
|
| 367 |
+
ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
|
| 368 |
+
shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
|
| 369 |
+
cliprange_value: 0.5
|
| 370 |
+
loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
|
| 371 |
+
checkpoint:
|
| 372 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 373 |
+
save_contents:
|
| 374 |
+
- model
|
| 375 |
+
- optimizer
|
| 376 |
+
- extra
|
| 377 |
+
load_contents: ${.save_contents}
|
| 378 |
+
async_save: false
|
| 379 |
+
profiler:
|
| 380 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 381 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 382 |
+
enable: false
|
| 383 |
+
all_ranks: false
|
| 384 |
+
ranks: []
|
| 385 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 386 |
+
tool_config:
|
| 387 |
+
nsys:
|
| 388 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 389 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 390 |
+
npu:
|
| 391 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 392 |
+
contents: []
|
| 393 |
+
level: level1
|
| 394 |
+
analysis: true
|
| 395 |
+
discrete: false
|
| 396 |
+
torch:
|
| 397 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 398 |
+
step_start: 0
|
| 399 |
+
step_end: null
|
| 400 |
+
torch_memory:
|
| 401 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 402 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 403 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 404 |
+
forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
|
| 405 |
+
forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
|
| 406 |
+
ulysses_sequence_parallel_size: 1
|
| 407 |
+
grad_clip: 1.0
|
| 408 |
+
reward_model:
|
| 409 |
+
enable: false
|
| 410 |
+
enable_resource_pool: false
|
| 411 |
+
n_gpus_per_node: 0
|
| 412 |
+
nnodes: 0
|
| 413 |
+
strategy: fsdp
|
| 414 |
+
model:
|
| 415 |
+
input_tokenizer: ${actor_rollout_ref.model.path}
|
| 416 |
+
path: ~/models/FsfairX-LLaMA3-RM-v0.1
|
| 417 |
+
external_lib: ${actor_rollout_ref.model.external_lib}
|
| 418 |
+
trust_remote_code: false
|
| 419 |
+
use_shm: false
|
| 420 |
+
use_remove_padding: false
|
| 421 |
+
use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
|
| 422 |
+
fsdp_config:
|
| 423 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 424 |
+
wrap_policy:
|
| 425 |
+
min_num_params: 0
|
| 426 |
+
param_offload: false
|
| 427 |
+
reshard_after_forward: true
|
| 428 |
+
fsdp_size: -1
|
| 429 |
+
forward_prefetch: false
|
| 430 |
+
micro_batch_size: null
|
| 431 |
+
micro_batch_size_per_gpu: null
|
| 432 |
+
max_length: null
|
| 433 |
+
use_dynamic_bsz: ${critic.use_dynamic_bsz}
|
| 434 |
+
forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
|
| 435 |
+
reward_manager: naive
|
| 436 |
+
launch_reward_fn_async: false
|
| 437 |
+
sandbox_fusion:
|
| 438 |
+
url: null
|
| 439 |
+
max_concurrent: 64
|
| 440 |
+
memory_limit_mb: 1024
|
| 441 |
+
profiler:
|
| 442 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 443 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 444 |
+
enable: false
|
| 445 |
+
all_ranks: false
|
| 446 |
+
ranks: []
|
| 447 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 448 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 449 |
+
ulysses_sequence_parallel_size: 1
|
| 450 |
+
custom_reward_function:
|
| 451 |
+
path: null
|
| 452 |
+
name: compute_score
|
| 453 |
+
algorithm:
|
| 454 |
+
_target_: verl.trainer.config.AlgoConfig
|
| 455 |
+
gamma: 1.0
|
| 456 |
+
lam: 1.0
|
| 457 |
+
adv_estimator: gae
|
| 458 |
+
norm_adv_by_std_in_grpo: true
|
| 459 |
+
use_kl_in_reward: false
|
| 460 |
+
kl_penalty: kl
|
| 461 |
+
kl_ctrl:
|
| 462 |
+
_target_: verl.trainer.config.KLControlConfig
|
| 463 |
+
type: fixed
|
| 464 |
+
kl_coef: 0.0
|
| 465 |
+
horizon: 10000
|
| 466 |
+
target_kl: 0.1
|
| 467 |
+
use_pf_ppo: false
|
| 468 |
+
pf_ppo:
|
| 469 |
+
reweight_method: pow
|
| 470 |
+
weight_pow: 2.0
|
| 471 |
+
high_level_gamma: 0.95
|
| 472 |
+
bi_level_gae: false
|
| 473 |
+
zero_task_advantage: false
|
| 474 |
+
soft_advantage_reweight: false
|
| 475 |
+
trainer:
|
| 476 |
+
balance_batch: true
|
| 477 |
+
total_epochs: 30
|
| 478 |
+
total_training_steps: 600
|
| 479 |
+
project_name: ragen
|
| 480 |
+
experiment_name: sokoban-main
|
| 481 |
+
logger:
|
| 482 |
+
- console
|
| 483 |
+
- wandb
|
| 484 |
+
log_val_generations: 0
|
| 485 |
+
rollout_data_dir: null
|
| 486 |
+
validation_data_dir: null
|
| 487 |
+
nnodes: 1
|
| 488 |
+
n_gpus_per_node: 8
|
| 489 |
+
save_freq: 100
|
| 490 |
+
esi_redundant_time: 0
|
| 491 |
+
resume_mode: auto
|
| 492 |
+
resume_from_path: null
|
| 493 |
+
val_before_train: true
|
| 494 |
+
val_only: false
|
| 495 |
+
test_freq: 10
|
| 496 |
+
critic_warmup: 0
|
| 497 |
+
default_hdfs_dir: null
|
| 498 |
+
del_local_ckpt_after_load: false
|
| 499 |
+
default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
|
| 500 |
+
max_actor_ckpt_to_keep: 1
|
| 501 |
+
max_critic_ckpt_to_keep: 1
|
| 502 |
+
ray_wait_register_center_timeout: 300
|
| 503 |
+
device: cuda
|
| 504 |
+
use_legacy_worker_impl: auto
|
| 505 |
+
local_log_dir: results/
|
| 506 |
+
validation_steps: 1
|
| 507 |
+
generations_to_log_to_wandb:
|
| 508 |
+
val: 20
|
| 509 |
+
log_group_rv_table: false
|
| 510 |
+
gradient_analysis_mode: false
|
| 511 |
+
gradient_analysis_every: 50
|
| 512 |
+
gradient_analysis_env_groups: null
|
| 513 |
+
gradient_analysis_group_size: null
|
| 514 |
+
gradient_analysis_log_prefilter: false
|
| 515 |
+
gradient_analysis_only: false
|
| 516 |
+
exit_after_gradient_analysis: false
|
| 517 |
+
global_profiler:
|
| 518 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 519 |
+
tool: null
|
| 520 |
+
steps: null
|
| 521 |
+
profile_continuous_steps: false
|
| 522 |
+
save_path: outputs/profile
|
| 523 |
+
global_tool_config:
|
| 524 |
+
nsys:
|
| 525 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 526 |
+
discrete: false
|
| 527 |
+
controller_nsight_options:
|
| 528 |
+
trace: cuda,nvtx,cublas,ucx
|
| 529 |
+
cuda-memory-usage: 'true'
|
| 530 |
+
cuda-graph-trace: graph
|
| 531 |
+
worker_nsight_options:
|
| 532 |
+
trace: cuda,nvtx,cublas,ucx
|
| 533 |
+
cuda-memory-usage: 'true'
|
| 534 |
+
cuda-graph-trace: graph
|
| 535 |
+
capture-range: cudaProfilerApi
|
| 536 |
+
capture-range-end: null
|
| 537 |
+
kill: none
|
| 538 |
+
torch_memory:
|
| 539 |
+
trace_alloc_max_entries: 100000
|
| 540 |
+
stack_depth: 32
|
| 541 |
+
context: all
|
| 542 |
+
stacks: all
|
| 543 |
+
kw_args: {}
|
| 544 |
+
ray_kwargs:
|
| 545 |
+
ray_init:
|
| 546 |
+
num_cpus: null
|
| 547 |
+
timeline_json_file: null
|
| 548 |
+
custom_envs:
|
| 549 |
+
SimpleSokoban:
|
| 550 |
+
env_type: sokoban
|
| 551 |
+
max_actions_per_traj: 10
|
| 552 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 553 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 554 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 555 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 556 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 557 |
+
max_tokens: 100
|
| 558 |
+
parallel_friendly: false
|
| 559 |
+
max_workers: 32
|
| 560 |
+
env_config:
|
| 561 |
+
dim_x: 6
|
| 562 |
+
dim_y: 6
|
| 563 |
+
num_boxes: 1
|
| 564 |
+
max_steps: 100
|
| 565 |
+
LargerSokoban:
|
| 566 |
+
env_type: sokoban
|
| 567 |
+
max_actions_per_traj: 10
|
| 568 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 569 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 570 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 571 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 572 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 573 |
+
max_tokens: 100
|
| 574 |
+
parallel_friendly: false
|
| 575 |
+
max_workers: 32
|
| 576 |
+
env_config:
|
| 577 |
+
dim_x: 8
|
| 578 |
+
dim_y: 8
|
| 579 |
+
num_boxes: 2
|
| 580 |
+
max_steps: 100
|
| 581 |
+
search_depth: 10
|
| 582 |
+
SokobanDifferentGridVocab:
|
| 583 |
+
env_type: sokoban
|
| 584 |
+
max_actions_per_traj: 10
|
| 585 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 586 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 587 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 588 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 589 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 590 |
+
max_tokens: 100
|
| 591 |
+
parallel_friendly: false
|
| 592 |
+
max_workers: 32
|
| 593 |
+
env_config:
|
| 594 |
+
search_depth: 30
|
| 595 |
+
dim_x: 6
|
| 596 |
+
dim_y: 6
|
| 597 |
+
num_boxes: 1
|
| 598 |
+
max_steps: 100
|
| 599 |
+
grid_lookup:
|
| 600 |
+
0: W
|
| 601 |
+
1: .
|
| 602 |
+
2: G
|
| 603 |
+
3: C
|
| 604 |
+
4: B
|
| 605 |
+
5: A
|
| 606 |
+
6: '@'
|
| 607 |
+
grid_vocab:
|
| 608 |
+
W: wall
|
| 609 |
+
.: empty
|
| 610 |
+
G: target
|
| 611 |
+
C: box on target
|
| 612 |
+
B: box
|
| 613 |
+
A: player
|
| 614 |
+
'@': player on target
|
| 615 |
+
CoordSokoban:
|
| 616 |
+
env_type: sokoban
|
| 617 |
+
max_actions_per_traj: 10
|
| 618 |
+
env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
|
| 619 |
+
\ need to push all boxes to targets.\nYou are provided with a symbol grid and\
|
| 620 |
+
\ the zero-indexed coordinates of the player, each box, and each target. \n\
|
| 621 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
|
| 622 |
+
\ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
|
| 623 |
+
\ the same direction. \nYou cannot push a box through a wall, and you cannot\
|
| 624 |
+
\ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
|
| 625 |
+
\ || Right || Up</answer>.\n"
|
| 626 |
+
max_tokens: 120
|
| 627 |
+
parallel_friendly: false
|
| 628 |
+
max_workers: 32
|
| 629 |
+
env_config:
|
| 630 |
+
dim_x: 6
|
| 631 |
+
dim_y: 6
|
| 632 |
+
num_boxes: 1
|
| 633 |
+
max_steps: 100
|
| 634 |
+
observation_format: grid_coord
|
| 635 |
+
VisualSimpleSokoban:
|
| 636 |
+
env_type: sokoban
|
| 637 |
+
max_actions_per_traj: 10
|
| 638 |
+
env_instruction: You are solving the Sokoban puzzle. You are the player and you
|
| 639 |
+
need to push all boxes to targets. When you are right next to a box, you can
|
| 640 |
+
push it by moving in the same direction. You cannot push a box through a wall,
|
| 641 |
+
and you cannot pull a box. The answer should be a sequence of actions, like
|
| 642 |
+
<answer>Right || Right || Up</answer>
|
| 643 |
+
max_tokens: 100
|
| 644 |
+
parallel_friendly: false
|
| 645 |
+
max_workers: 32
|
| 646 |
+
env_config:
|
| 647 |
+
dim_x: 6
|
| 648 |
+
dim_y: 6
|
| 649 |
+
num_boxes: 1
|
| 650 |
+
max_steps: 100
|
| 651 |
+
render_mode: rgb_array
|
| 652 |
+
Alfworld:
|
| 653 |
+
env_type: alfworld
|
| 654 |
+
max_actions_per_traj: 50
|
| 655 |
+
parallel_friendly: false
|
| 656 |
+
max_workers: 1
|
| 657 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 658 |
+
|
| 659 |
+
Complete household tasks by navigating and interacting with objects.
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 663 |
+
process MUST be enclosed within <think> </think> tags.
|
| 664 |
+
|
| 665 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 666 |
+
for current step and present it within <answer>...</answer> tags.
|
| 667 |
+
|
| 668 |
+
'
|
| 669 |
+
max_tokens: 512
|
| 670 |
+
env_config:
|
| 671 |
+
eval_dataset: eval_in_distribution
|
| 672 |
+
AlfworldOOD:
|
| 673 |
+
env_type: alfworld
|
| 674 |
+
max_actions_per_traj: 50
|
| 675 |
+
parallel_friendly: false
|
| 676 |
+
max_workers: 1
|
| 677 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 678 |
+
|
| 679 |
+
Complete household tasks by navigating and interacting with objects.
|
| 680 |
+
|
| 681 |
+
|
| 682 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 683 |
+
process MUST be enclosed within <think> </think> tags.
|
| 684 |
+
|
| 685 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 686 |
+
for current step and present it within <answer>...</answer> tags.
|
| 687 |
+
|
| 688 |
+
'
|
| 689 |
+
max_tokens: 512
|
| 690 |
+
env_config:
|
| 691 |
+
eval_dataset: eval_out_of_distribution
|
| 692 |
+
Countdown:
|
| 693 |
+
env_type: countdown
|
| 694 |
+
max_actions_per_traj: 1
|
| 695 |
+
env_instruction: 'You are solving the Countdown puzzle. You should use the num
|
| 696 |
+
list to create an equation that equals the target. Example answer format: <think>
|
| 697 |
+
To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
|
| 698 |
+
= 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
|
| 699 |
+
max_tokens: 100
|
| 700 |
+
parallel_friendly: false
|
| 701 |
+
max_workers: 32
|
| 702 |
+
env_config: null
|
| 703 |
+
Bandit:
|
| 704 |
+
env_type: bandit
|
| 705 |
+
max_actions_per_traj: 1
|
| 706 |
+
env_instruction: ''
|
| 707 |
+
max_tokens: 100
|
| 708 |
+
parallel_friendly: false
|
| 709 |
+
max_workers: 32
|
| 710 |
+
env_config:
|
| 711 |
+
split: train
|
| 712 |
+
BanditTest:
|
| 713 |
+
env_type: bandit
|
| 714 |
+
max_actions_per_traj: 1
|
| 715 |
+
env_instruction: ''
|
| 716 |
+
max_tokens: 100
|
| 717 |
+
parallel_friendly: false
|
| 718 |
+
max_workers: 32
|
| 719 |
+
env_config:
|
| 720 |
+
split: test
|
| 721 |
+
DeepCoder:
|
| 722 |
+
env_type: deepcoder
|
| 723 |
+
max_actions_per_traj: 1
|
| 724 |
+
env_instruction: 'You are solving a coding task. Provide a complete Python function
|
| 725 |
+
solution only. Format: <answer>...</answer>'
|
| 726 |
+
max_tokens: 8000
|
| 727 |
+
parallel_friendly: true
|
| 728 |
+
max_workers: 32
|
| 729 |
+
env_config:
|
| 730 |
+
max_steps: 1
|
| 731 |
+
FrozenLake:
|
| 732 |
+
env_type: frozen_lake
|
| 733 |
+
max_actions_per_traj: 10
|
| 734 |
+
env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
|
| 735 |
+
go to the target. You may move to the unintended direction due to the slippery
|
| 736 |
+
ice. Example answer format: <think>To forbid the hole and go to the target,
|
| 737 |
+
I should go left then go up.</think><answer>Left || Up</answer>'
|
| 738 |
+
max_tokens: 100
|
| 739 |
+
parallel_friendly: false
|
| 740 |
+
max_workers: 32
|
| 741 |
+
env_config:
|
| 742 |
+
success_rate: 0.8
|
| 743 |
+
CoordFrozenLake:
|
| 744 |
+
env_type: frozen_lake
|
| 745 |
+
max_actions_per_traj: 10
|
| 746 |
+
env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
|
| 747 |
+
both a symbol grid and zero-indexed coordinates for the start, goal, player,
|
| 748 |
+
and any holes.
|
| 749 |
+
|
| 750 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner
|
| 751 |
+
(5, 5).
|
| 752 |
+
|
| 753 |
+
Beware that the ice is slippery, so the agent might slide and end up in an unintended
|
| 754 |
+
tile.
|
| 755 |
+
|
| 756 |
+
Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
|
| 757 |
+
|
| 758 |
+
'
|
| 759 |
+
max_tokens: 120
|
| 760 |
+
parallel_friendly: false
|
| 761 |
+
max_workers: 32
|
| 762 |
+
env_config:
|
| 763 |
+
observation_format: grid_coord
|
| 764 |
+
success_rate: 0.8
|
| 765 |
+
MetamathQA:
|
| 766 |
+
env_type: metamathqa
|
| 767 |
+
max_actions_per_traj: 1
|
| 768 |
+
env_instruction: 'You are solving Math problems. '
|
| 769 |
+
max_tokens: 100
|
| 770 |
+
env_config: null
|
| 771 |
+
WebShopFull:
|
| 772 |
+
env_type: webshop
|
| 773 |
+
max_actions_per_traj: 15
|
| 774 |
+
env_instruction: You are an expert autonomous agent operating in the WebShop e‑commerce
|
| 775 |
+
environment.
|
| 776 |
+
max_tokens: 200
|
| 777 |
+
env_config:
|
| 778 |
+
dataset: full
|
| 779 |
+
WebShop:
|
| 780 |
+
env_type: webshop
|
| 781 |
+
max_actions_per_traj: 9
|
| 782 |
+
env_instruction: 'You are browsing an online shop. Based on the instruction, buy
|
| 783 |
+
a product that close to the production description. You need to search, read
|
| 784 |
+
the search results, pick a product, choose the size and color and buy. You should
|
| 785 |
+
only choose action from the available actions list provided later. Example
|
| 786 |
+
process: I need a gingko light and 20x20 pillow cover that is hand painted.
|
| 787 |
+
First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
|
| 788 |
+
with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
|
| 789 |
+
max_tokens: 200
|
| 790 |
+
env_config:
|
| 791 |
+
dataset: small
|
| 792 |
+
Lean:
|
| 793 |
+
env_type: lean
|
| 794 |
+
max_actions_per_traj: 30
|
| 795 |
+
env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
|
| 796 |
+
propose a sequence of tactics that completes the proof. Think step by step about
|
| 797 |
+
which tactics to apply next. Provide tactics separated by '||', for example
|
| 798 |
+
<answer>intro || simp || rfl</answer>.
|
| 799 |
+
max_tokens: 512
|
| 800 |
+
parallel_friendly: true
|
| 801 |
+
max_workers: 32
|
| 802 |
+
env_config: null
|
| 803 |
+
SimpleSudoku:
|
| 804 |
+
env_type: sudoku
|
| 805 |
+
max_actions_per_traj: 20
|
| 806 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 807 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 808 |
+
|
| 809 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 810 |
+
shown as dots (.).
|
| 811 |
+
|
| 812 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 813 |
+
or <answer>2,3,5</answer>
|
| 814 |
+
|
| 815 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 816 |
+
if any occur.
|
| 817 |
+
|
| 818 |
+
'
|
| 819 |
+
max_tokens: 150
|
| 820 |
+
parallel_friendly: false
|
| 821 |
+
max_workers: 32
|
| 822 |
+
env_config:
|
| 823 |
+
grid_size: 9
|
| 824 |
+
difficulty: easy
|
| 825 |
+
render_format: with_feedback
|
| 826 |
+
show_conflicts: true
|
| 827 |
+
show_valid_numbers: true
|
| 828 |
+
max_steps: 81
|
| 829 |
+
MediumSudoku:
|
| 830 |
+
env_type: sudoku
|
| 831 |
+
max_actions_per_traj: 30
|
| 832 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 833 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 834 |
+
|
| 835 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 836 |
+
shown as dots (.).
|
| 837 |
+
|
| 838 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 839 |
+
or <answer>2,3,5</answer>
|
| 840 |
+
|
| 841 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 842 |
+
if any occur.
|
| 843 |
+
|
| 844 |
+
'
|
| 845 |
+
max_tokens: 150
|
| 846 |
+
parallel_friendly: false
|
| 847 |
+
max_workers: 32
|
| 848 |
+
env_config:
|
| 849 |
+
grid_size: 9
|
| 850 |
+
difficulty: medium
|
| 851 |
+
render_format: with_feedback
|
| 852 |
+
show_conflicts: true
|
| 853 |
+
show_valid_numbers: true
|
| 854 |
+
max_steps: 81
|
| 855 |
+
SearchQA:
|
| 856 |
+
env_type: search
|
| 857 |
+
max_actions_per_traj: 10
|
| 858 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 859 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 860 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 861 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 862 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 863 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 864 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 865 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 866 |
+
\ Platt]</answer>\n"
|
| 867 |
+
max_tokens: 300
|
| 868 |
+
parallel_friendly: true
|
| 869 |
+
max_workers: 32
|
| 870 |
+
env_config:
|
| 871 |
+
max_steps: 10
|
| 872 |
+
max_search_results: 5
|
| 873 |
+
SearchQAMock:
|
| 874 |
+
env_type: search
|
| 875 |
+
max_actions_per_traj: 10
|
| 876 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 877 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 878 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 879 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 880 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 881 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 882 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 883 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 884 |
+
\ Platt]</answer>\n"
|
| 885 |
+
max_tokens: 300
|
| 886 |
+
parallel_friendly: true
|
| 887 |
+
max_workers: 32
|
| 888 |
+
env_config:
|
| 889 |
+
max_steps: 10
|
| 890 |
+
max_search_results: 5
|
| 891 |
+
mock_mode: true
|
| 892 |
+
game_2048:
|
| 893 |
+
env_type: game_2048
|
| 894 |
+
max_actions_per_traj: 700
|
| 895 |
+
env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
|
| 896 |
+
by sliding Up, Right, Down, or Left.
|
| 897 |
+
|
| 898 |
+
If a move is invalid (no tiles move), a small penalty is applied. Respond with
|
| 899 |
+
a single action.
|
| 900 |
+
|
| 901 |
+
Example: <answer>Up</answer>
|
| 902 |
+
|
| 903 |
+
'
|
| 904 |
+
max_tokens: 8192
|
| 905 |
+
env_config: null
|
| 906 |
+
rubikscube:
|
| 907 |
+
env_type: rubikscube
|
| 908 |
+
max_actions_per_traj: 20
|
| 909 |
+
env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
|
| 910 |
+
is to restore the cube so that each of the faces consists of a single, unique
|
| 911 |
+
color.
|
| 912 |
+
|
| 913 |
+
Available actions use standard Singmaster notation for face rotations: U, U'',
|
| 914 |
+
D, D'', L, L'', R, R'', F, F'', B, B''.
|
| 915 |
+
|
| 916 |
+
- Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
|
| 917 |
+
|
| 918 |
+
- Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
|
| 919 |
+
prime ('') means 90° counter-clockwise (e.g., "R''").
|
| 920 |
+
|
| 921 |
+
Respond with a sequence of actions separated by "||".
|
| 922 |
+
|
| 923 |
+
Example: <answer>U</answer>
|
| 924 |
+
|
| 925 |
+
'
|
| 926 |
+
max_tokens: 96
|
| 927 |
+
env_config:
|
| 928 |
+
scramble_depth: 1
|
| 929 |
+
max_steps: 20
|
| 930 |
+
render_mode: text
|
| 931 |
+
system:
|
| 932 |
+
CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
|
| 933 |
+
seed:
|
| 934 |
+
train: 10000
|
| 935 |
+
val: 123
|
| 936 |
+
micro_batch_size_per_gpu: 1
|
| 937 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 938 |
+
ppo_mini_batch_size: 32
|
| 939 |
+
model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box1_rft
|
| 940 |
+
enable_response_mask: true
|
| 941 |
+
grpo_advantage_length_weight: false
|
| 942 |
+
lora:
|
| 943 |
+
rank: 0
|
| 944 |
+
alpha: 64
|
| 945 |
+
target_modules: all-linear
|
| 946 |
+
agent_proxy:
|
| 947 |
+
context_window_mode: full
|
| 948 |
+
max_context_window: -1
|
| 949 |
+
batch_adjust_mode: copy
|
| 950 |
+
max_turn: 5
|
| 951 |
+
action_sep: '||'
|
| 952 |
+
max_actions_per_turn: 2
|
| 953 |
+
use_turn_scores: false
|
| 954 |
+
enable_think: true
|
| 955 |
+
reward_normalization:
|
| 956 |
+
grouping: state
|
| 957 |
+
method: identity
|
| 958 |
+
collapse_detection:
|
| 959 |
+
compute_freq: 5
|
| 960 |
+
micro_batch_size: 128
|
| 961 |
+
first_turn_enabled: true
|
| 962 |
+
multi_turn_enabled: true
|
| 963 |
+
num_samples: 64
|
| 964 |
+
es_manager:
|
| 965 |
+
format_penalty: -0.1
|
| 966 |
+
train:
|
| 967 |
+
env_groups: 8
|
| 968 |
+
group_size: 16
|
| 969 |
+
env_configs:
|
| 970 |
+
tags:
|
| 971 |
+
- CoordSokoban
|
| 972 |
+
n_groups:
|
| 973 |
+
- 8
|
| 974 |
+
val:
|
| 975 |
+
env_groups: 512
|
| 976 |
+
group_size: 1
|
| 977 |
+
env_configs:
|
| 978 |
+
tags:
|
| 979 |
+
- CoordSokoban
|
| 980 |
+
n_groups:
|
| 981 |
+
- 512
|
| 982 |
+
ctx_manager:
|
| 983 |
+
generation:
|
| 984 |
+
gen_config:
|
| 985 |
+
response_length: ${actor_rollout_ref.rollout.response_length}
|
| 986 |
+
temperature: ${actor_rollout_ref.rollout.temperature}
|
| 987 |
+
top_p: ${actor_rollout_ref.rollout.top_p}
|
| 988 |
+
top_k: ${actor_rollout_ref.rollout.top_k}
|
| 989 |
+
kwargs: null
|
outputs/2026-05-11/10-46-20/.hydra/hydra.yaml
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
hydra:
|
| 2 |
+
run:
|
| 3 |
+
dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 4 |
+
sweep:
|
| 5 |
+
dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 6 |
+
subdir: ${hydra.job.num}
|
| 7 |
+
launcher:
|
| 8 |
+
_target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
|
| 9 |
+
sweeper:
|
| 10 |
+
_target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
|
| 11 |
+
max_batch_size: null
|
| 12 |
+
params: null
|
| 13 |
+
help:
|
| 14 |
+
app_name: ${hydra.job.name}
|
| 15 |
+
header: '${hydra.help.app_name} is powered by Hydra.
|
| 16 |
+
|
| 17 |
+
'
|
| 18 |
+
footer: 'Powered by Hydra (https://hydra.cc)
|
| 19 |
+
|
| 20 |
+
Use --hydra-help to view Hydra specific help
|
| 21 |
+
|
| 22 |
+
'
|
| 23 |
+
template: '${hydra.help.header}
|
| 24 |
+
|
| 25 |
+
== Configuration groups ==
|
| 26 |
+
|
| 27 |
+
Compose your configuration from those groups (group=option)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
$APP_CONFIG_GROUPS
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
== Config ==
|
| 34 |
+
|
| 35 |
+
Override anything in the config (foo.bar=value)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
$CONFIG
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
${hydra.help.footer}
|
| 42 |
+
|
| 43 |
+
'
|
| 44 |
+
hydra_help:
|
| 45 |
+
template: 'Hydra (${hydra.runtime.version})
|
| 46 |
+
|
| 47 |
+
See https://hydra.cc for more info.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
== Flags ==
|
| 51 |
+
|
| 52 |
+
$FLAGS_HELP
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
== Configuration groups ==
|
| 56 |
+
|
| 57 |
+
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
|
| 58 |
+
to command line)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
$HYDRA_CONFIG_GROUPS
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
Use ''--cfg hydra'' to Show the Hydra config.
|
| 65 |
+
|
| 66 |
+
'
|
| 67 |
+
hydra_help: ???
|
| 68 |
+
hydra_logging:
|
| 69 |
+
version: 1
|
| 70 |
+
formatters:
|
| 71 |
+
simple:
|
| 72 |
+
format: '[%(asctime)s][HYDRA] %(message)s'
|
| 73 |
+
handlers:
|
| 74 |
+
console:
|
| 75 |
+
class: logging.StreamHandler
|
| 76 |
+
formatter: simple
|
| 77 |
+
stream: ext://sys.stdout
|
| 78 |
+
root:
|
| 79 |
+
level: INFO
|
| 80 |
+
handlers:
|
| 81 |
+
- console
|
| 82 |
+
loggers:
|
| 83 |
+
logging_example:
|
| 84 |
+
level: DEBUG
|
| 85 |
+
disable_existing_loggers: false
|
| 86 |
+
job_logging:
|
| 87 |
+
version: 1
|
| 88 |
+
formatters:
|
| 89 |
+
simple:
|
| 90 |
+
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
|
| 91 |
+
handlers:
|
| 92 |
+
console:
|
| 93 |
+
class: logging.StreamHandler
|
| 94 |
+
formatter: simple
|
| 95 |
+
stream: ext://sys.stdout
|
| 96 |
+
file:
|
| 97 |
+
class: logging.FileHandler
|
| 98 |
+
formatter: simple
|
| 99 |
+
filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
|
| 100 |
+
root:
|
| 101 |
+
level: INFO
|
| 102 |
+
handlers:
|
| 103 |
+
- console
|
| 104 |
+
- file
|
| 105 |
+
disable_existing_loggers: false
|
| 106 |
+
env: {}
|
| 107 |
+
mode: RUN
|
| 108 |
+
searchpath:
|
| 109 |
+
- pkg://verl.trainer.config
|
| 110 |
+
callbacks: {}
|
| 111 |
+
output_subdir: .hydra
|
| 112 |
+
overrides:
|
| 113 |
+
hydra:
|
| 114 |
+
- hydra.mode=RUN
|
| 115 |
+
task:
|
| 116 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 117 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 118 |
+
job:
|
| 119 |
+
name: train
|
| 120 |
+
chdir: null
|
| 121 |
+
override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 122 |
+
id: ???
|
| 123 |
+
num: ???
|
| 124 |
+
config_name: _2_sokoban
|
| 125 |
+
env_set: {}
|
| 126 |
+
env_copy: []
|
| 127 |
+
config:
|
| 128 |
+
override_dirname:
|
| 129 |
+
kv_sep: '='
|
| 130 |
+
item_sep: ','
|
| 131 |
+
exclude_keys: []
|
| 132 |
+
runtime:
|
| 133 |
+
version: 1.3.2
|
| 134 |
+
version_base: '1.3'
|
| 135 |
+
cwd: /mnt/general/wanghy/RAGEN_v2
|
| 136 |
+
config_sources:
|
| 137 |
+
- path: hydra.conf
|
| 138 |
+
schema: pkg
|
| 139 |
+
provider: hydra
|
| 140 |
+
- path: /mnt/general/wanghy/RAGEN_v2/config
|
| 141 |
+
schema: file
|
| 142 |
+
provider: main
|
| 143 |
+
- path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
|
| 144 |
+
schema: file
|
| 145 |
+
provider: command-line
|
| 146 |
+
- path: verl.trainer.config
|
| 147 |
+
schema: pkg
|
| 148 |
+
provider: hydra.searchpath in main
|
| 149 |
+
- path: ''
|
| 150 |
+
schema: structured
|
| 151 |
+
provider: schema
|
| 152 |
+
output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-05-11/10-46-20
|
| 153 |
+
choices:
|
| 154 |
+
reward_model: dp_reward_model
|
| 155 |
+
critic: dp_critic
|
| 156 |
+
critic/../engine@critic.model.fsdp_config: fsdp
|
| 157 |
+
critic/../optim@critic.optim: fsdp
|
| 158 |
+
model@actor_rollout_ref.model: hf_model
|
| 159 |
+
rollout@actor_rollout_ref.rollout: rollout
|
| 160 |
+
ref@actor_rollout_ref.ref: dp_ref
|
| 161 |
+
ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
|
| 162 |
+
data: legacy_data
|
| 163 |
+
actor@actor_rollout_ref.actor: dp_actor
|
| 164 |
+
actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
|
| 165 |
+
actor/../optim@actor_rollout_ref.actor.optim: fsdp
|
| 166 |
+
hydra/env: default
|
| 167 |
+
hydra/callbacks: null
|
| 168 |
+
hydra/job_logging: default
|
| 169 |
+
hydra/hydra_logging: default
|
| 170 |
+
hydra/hydra_help: default
|
| 171 |
+
hydra/help: default
|
| 172 |
+
hydra/sweeper: basic
|
| 173 |
+
hydra/launcher: basic
|
| 174 |
+
hydra/output: default
|
| 175 |
+
verbose: false
|
outputs/2026-05-11/10-52-37/train.log
ADDED
|
File without changes
|
outputs/2026-05-11/11-35-35/.hydra/hydra.yaml
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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${hydra.job.num}
|
| 7 |
+
launcher:
|
| 8 |
+
_target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
|
| 9 |
+
sweeper:
|
| 10 |
+
_target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
|
| 11 |
+
max_batch_size: null
|
| 12 |
+
params: null
|
| 13 |
+
help:
|
| 14 |
+
app_name: ${hydra.job.name}
|
| 15 |
+
header: '${hydra.help.app_name} is powered by Hydra.
|
| 16 |
+
|
| 17 |
+
'
|
| 18 |
+
footer: 'Powered by Hydra (https://hydra.cc)
|
| 19 |
+
|
| 20 |
+
Use --hydra-help to view Hydra specific help
|
| 21 |
+
|
| 22 |
+
'
|
| 23 |
+
template: '${hydra.help.header}
|
| 24 |
+
|
| 25 |
+
== Configuration groups ==
|
| 26 |
+
|
| 27 |
+
Compose your configuration from those groups (group=option)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
$APP_CONFIG_GROUPS
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
== Config ==
|
| 34 |
+
|
| 35 |
+
Override anything in the config (foo.bar=value)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
$CONFIG
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
${hydra.help.footer}
|
| 42 |
+
|
| 43 |
+
'
|
| 44 |
+
hydra_help:
|
| 45 |
+
template: 'Hydra (${hydra.runtime.version})
|
| 46 |
+
|
| 47 |
+
See https://hydra.cc for more info.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
== Flags ==
|
| 51 |
+
|
| 52 |
+
$FLAGS_HELP
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
== Configuration groups ==
|
| 56 |
+
|
| 57 |
+
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
|
| 58 |
+
to command line)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
$HYDRA_CONFIG_GROUPS
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
Use ''--cfg hydra'' to Show the Hydra config.
|
| 65 |
+
|
| 66 |
+
'
|
| 67 |
+
hydra_help: ???
|
| 68 |
+
hydra_logging:
|
| 69 |
+
version: 1
|
| 70 |
+
formatters:
|
| 71 |
+
simple:
|
| 72 |
+
format: '[%(asctime)s][HYDRA] %(message)s'
|
| 73 |
+
handlers:
|
| 74 |
+
console:
|
| 75 |
+
class: logging.StreamHandler
|
| 76 |
+
formatter: simple
|
| 77 |
+
stream: ext://sys.stdout
|
| 78 |
+
root:
|
| 79 |
+
level: INFO
|
| 80 |
+
handlers:
|
| 81 |
+
- console
|
| 82 |
+
loggers:
|
| 83 |
+
logging_example:
|
| 84 |
+
level: DEBUG
|
| 85 |
+
disable_existing_loggers: false
|
| 86 |
+
job_logging:
|
| 87 |
+
version: 1
|
| 88 |
+
formatters:
|
| 89 |
+
simple:
|
| 90 |
+
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
|
| 91 |
+
handlers:
|
| 92 |
+
console:
|
| 93 |
+
class: logging.StreamHandler
|
| 94 |
+
formatter: simple
|
| 95 |
+
stream: ext://sys.stdout
|
| 96 |
+
file:
|
| 97 |
+
class: logging.FileHandler
|
| 98 |
+
formatter: simple
|
| 99 |
+
filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
|
| 100 |
+
root:
|
| 101 |
+
level: INFO
|
| 102 |
+
handlers:
|
| 103 |
+
- console
|
| 104 |
+
- file
|
| 105 |
+
disable_existing_loggers: false
|
| 106 |
+
env: {}
|
| 107 |
+
mode: RUN
|
| 108 |
+
searchpath:
|
| 109 |
+
- pkg://verl.trainer.config
|
| 110 |
+
callbacks: {}
|
| 111 |
+
output_subdir: .hydra
|
| 112 |
+
overrides:
|
| 113 |
+
hydra:
|
| 114 |
+
- hydra.mode=RUN
|
| 115 |
+
task:
|
| 116 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 117 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 118 |
+
- trainer.total_training_steps=1000
|
| 119 |
+
- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box1_rft
|
| 120 |
+
job:
|
| 121 |
+
name: train
|
| 122 |
+
chdir: null
|
| 123 |
+
override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box1_rft,trainer.total_training_steps=1000
|
| 124 |
+
id: ???
|
| 125 |
+
num: ???
|
| 126 |
+
config_name: _2_sokoban
|
| 127 |
+
env_set: {}
|
| 128 |
+
env_copy: []
|
| 129 |
+
config:
|
| 130 |
+
override_dirname:
|
| 131 |
+
kv_sep: '='
|
| 132 |
+
item_sep: ','
|
| 133 |
+
exclude_keys: []
|
| 134 |
+
runtime:
|
| 135 |
+
version: 1.3.2
|
| 136 |
+
version_base: '1.3'
|
| 137 |
+
cwd: /mnt/general/wanghy/RAGEN_v2
|
| 138 |
+
config_sources:
|
| 139 |
+
- path: hydra.conf
|
| 140 |
+
schema: pkg
|
| 141 |
+
provider: hydra
|
| 142 |
+
- path: /mnt/general/wanghy/RAGEN_v2/config
|
| 143 |
+
schema: file
|
| 144 |
+
provider: main
|
| 145 |
+
- path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
|
| 146 |
+
schema: file
|
| 147 |
+
provider: command-line
|
| 148 |
+
- path: verl.trainer.config
|
| 149 |
+
schema: pkg
|
| 150 |
+
provider: hydra.searchpath in main
|
| 151 |
+
- path: ''
|
| 152 |
+
schema: structured
|
| 153 |
+
provider: schema
|
| 154 |
+
output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-05-11/11-35-35
|
| 155 |
+
choices:
|
| 156 |
+
reward_model: dp_reward_model
|
| 157 |
+
critic: dp_critic
|
| 158 |
+
critic/../engine@critic.model.fsdp_config: fsdp
|
| 159 |
+
critic/../optim@critic.optim: fsdp
|
| 160 |
+
model@actor_rollout_ref.model: hf_model
|
| 161 |
+
rollout@actor_rollout_ref.rollout: rollout
|
| 162 |
+
ref@actor_rollout_ref.ref: dp_ref
|
| 163 |
+
ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
|
| 164 |
+
data: legacy_data
|
| 165 |
+
actor@actor_rollout_ref.actor: dp_actor
|
| 166 |
+
actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
|
| 167 |
+
actor/../optim@actor_rollout_ref.actor.optim: fsdp
|
| 168 |
+
hydra/env: default
|
| 169 |
+
hydra/callbacks: null
|
| 170 |
+
hydra/job_logging: default
|
| 171 |
+
hydra/hydra_logging: default
|
| 172 |
+
hydra/hydra_help: default
|
| 173 |
+
hydra/help: default
|
| 174 |
+
hydra/sweeper: basic
|
| 175 |
+
hydra/launcher: basic
|
| 176 |
+
hydra/output: default
|
| 177 |
+
verbose: false
|
outputs/2026-05-11/11-35-35/.hydra/overrides.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 2 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 3 |
+
- trainer.total_training_steps=1000
|
| 4 |
+
- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box1_rft
|
outputs/2026-05-11/11-38-43/.hydra/config.yaml
ADDED
|
@@ -0,0 +1,989 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
actor_rollout_ref:
|
| 2 |
+
actor:
|
| 3 |
+
optim:
|
| 4 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 5 |
+
lr: 1.0e-06
|
| 6 |
+
lr_warmup_steps_ratio: 0.0
|
| 7 |
+
total_training_steps: -1
|
| 8 |
+
weight_decay: 0.01
|
| 9 |
+
lr_warmup_steps: -1
|
| 10 |
+
betas:
|
| 11 |
+
- 0.9
|
| 12 |
+
- 0.999
|
| 13 |
+
clip_grad: 1.0
|
| 14 |
+
min_lr_ratio: 0.0
|
| 15 |
+
num_cycles: 0.5
|
| 16 |
+
warmup_style: constant
|
| 17 |
+
fsdp_config:
|
| 18 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 19 |
+
wrap_policy:
|
| 20 |
+
min_num_params: 0
|
| 21 |
+
param_offload: false
|
| 22 |
+
optimizer_offload: false
|
| 23 |
+
offload_policy: false
|
| 24 |
+
reshard_after_forward: true
|
| 25 |
+
fsdp_size: -1
|
| 26 |
+
forward_prefetch: false
|
| 27 |
+
model_dtype: fp32
|
| 28 |
+
use_orig_params: false
|
| 29 |
+
ulysses_sequence_parallel_size: 1
|
| 30 |
+
entropy_from_logits_with_chunking: false
|
| 31 |
+
use_torch_compile: true
|
| 32 |
+
entropy_checkpointing: false
|
| 33 |
+
forward_only: false
|
| 34 |
+
strategy: fsdp
|
| 35 |
+
_target_: verl.workers.config.FSDPActorConfig
|
| 36 |
+
strategy: fsdp
|
| 37 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 38 |
+
ppo_micro_batch_size: null
|
| 39 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 40 |
+
use_dynamic_bsz: false
|
| 41 |
+
ppo_max_token_len_per_gpu: 16384
|
| 42 |
+
clip_ratio: 0.2
|
| 43 |
+
clip_ratio_low: 0.2
|
| 44 |
+
clip_ratio_high: 0.28
|
| 45 |
+
freeze_vision_tower: false
|
| 46 |
+
policy_loss:
|
| 47 |
+
_target_: verl.workers.config.PolicyLossConfig
|
| 48 |
+
loss_mode: vanilla
|
| 49 |
+
clip_cov_ratio: 0.0002
|
| 50 |
+
clip_cov_lb: 1.0
|
| 51 |
+
clip_cov_ub: 5.0
|
| 52 |
+
kl_cov_ratio: 0.0002
|
| 53 |
+
ppo_kl_coef: 0.1
|
| 54 |
+
clip_ratio_c: 3.0
|
| 55 |
+
loss_agg_mode: token-mean
|
| 56 |
+
entropy_coeff: 0.001
|
| 57 |
+
tis_imp_ratio_cap: -1
|
| 58 |
+
use_kl_loss: false
|
| 59 |
+
use_torch_compile: true
|
| 60 |
+
kl_loss_coef: 0.0
|
| 61 |
+
kl_loss_type: kl
|
| 62 |
+
ppo_epochs: 1
|
| 63 |
+
shuffle: false
|
| 64 |
+
checkpoint:
|
| 65 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 66 |
+
save_contents:
|
| 67 |
+
- model
|
| 68 |
+
- optimizer
|
| 69 |
+
- extra
|
| 70 |
+
load_contents: ${.save_contents}
|
| 71 |
+
async_save: false
|
| 72 |
+
use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
|
| 73 |
+
profiler:
|
| 74 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 75 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 76 |
+
enable: false
|
| 77 |
+
all_ranks: false
|
| 78 |
+
ranks: []
|
| 79 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 80 |
+
tool_config:
|
| 81 |
+
nsys:
|
| 82 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 83 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 84 |
+
npu:
|
| 85 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 86 |
+
contents: []
|
| 87 |
+
level: level1
|
| 88 |
+
analysis: true
|
| 89 |
+
discrete: false
|
| 90 |
+
torch:
|
| 91 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 92 |
+
step_start: 0
|
| 93 |
+
step_end: null
|
| 94 |
+
torch_memory:
|
| 95 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 96 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 97 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 98 |
+
grad_clip: 1.0
|
| 99 |
+
ulysses_sequence_parallel_size: 1
|
| 100 |
+
entropy_from_logits_with_chunking: false
|
| 101 |
+
entropy_checkpointing: false
|
| 102 |
+
use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
|
| 103 |
+
use_ref: true
|
| 104 |
+
grpo_advantage_length_weight: ${grpo_advantage_length_weight}
|
| 105 |
+
filter_loss_scaling: none
|
| 106 |
+
ref:
|
| 107 |
+
strategy: ${actor_rollout_ref.actor.strategy}
|
| 108 |
+
use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
|
| 109 |
+
log_prob_micro_batch_size: null
|
| 110 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 111 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 112 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 113 |
+
profiler:
|
| 114 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 115 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 116 |
+
enable: false
|
| 117 |
+
all_ranks: false
|
| 118 |
+
ranks: []
|
| 119 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 120 |
+
tool_config:
|
| 121 |
+
nsys:
|
| 122 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 123 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 124 |
+
npu:
|
| 125 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 126 |
+
contents: []
|
| 127 |
+
level: level1
|
| 128 |
+
analysis: true
|
| 129 |
+
discrete: false
|
| 130 |
+
torch:
|
| 131 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 132 |
+
step_start: 0
|
| 133 |
+
step_end: null
|
| 134 |
+
torch_memory:
|
| 135 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 136 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 137 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 138 |
+
fsdp_config:
|
| 139 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 140 |
+
wrap_policy:
|
| 141 |
+
min_num_params: 0
|
| 142 |
+
param_offload: false
|
| 143 |
+
optimizer_offload: false
|
| 144 |
+
offload_policy: false
|
| 145 |
+
reshard_after_forward: true
|
| 146 |
+
fsdp_size: -1
|
| 147 |
+
forward_prefetch: false
|
| 148 |
+
model_dtype: fp32
|
| 149 |
+
use_orig_params: false
|
| 150 |
+
ulysses_sequence_parallel_size: 1
|
| 151 |
+
entropy_from_logits_with_chunking: false
|
| 152 |
+
use_torch_compile: true
|
| 153 |
+
entropy_checkpointing: false
|
| 154 |
+
forward_only: false
|
| 155 |
+
strategy: fsdp
|
| 156 |
+
model: null
|
| 157 |
+
ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
|
| 158 |
+
entropy_from_logits_with_chunking: false
|
| 159 |
+
entropy_checkpointing: false
|
| 160 |
+
rollout:
|
| 161 |
+
_target_: verl.workers.config.RolloutConfig
|
| 162 |
+
name: vllm
|
| 163 |
+
mode: sync
|
| 164 |
+
temperature: 1
|
| 165 |
+
top_k: -1
|
| 166 |
+
top_p: 1
|
| 167 |
+
prompt_length: 1
|
| 168 |
+
response_length: 400
|
| 169 |
+
dtype: bfloat16
|
| 170 |
+
gpu_memory_utilization: 0.8
|
| 171 |
+
ignore_eos: false
|
| 172 |
+
enforce_eager: true
|
| 173 |
+
cudagraph_capture_sizes: null
|
| 174 |
+
free_cache_engine: true
|
| 175 |
+
tensor_model_parallel_size: 1
|
| 176 |
+
data_parallel_size: 1
|
| 177 |
+
expert_parallel_size: 1
|
| 178 |
+
max_num_batched_tokens: 8192
|
| 179 |
+
max_model_len: 3600
|
| 180 |
+
max_num_seqs: 1024
|
| 181 |
+
enable_chunked_prefill: true
|
| 182 |
+
enable_prefix_caching: true
|
| 183 |
+
load_format: auto
|
| 184 |
+
log_prob_micro_batch_size: null
|
| 185 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 186 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 187 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 188 |
+
disable_log_stats: true
|
| 189 |
+
do_sample: true
|
| 190 |
+
'n': 1
|
| 191 |
+
over_sample_rate: 0
|
| 192 |
+
multi_stage_wake_up: false
|
| 193 |
+
engine_kwargs:
|
| 194 |
+
vllm: {}
|
| 195 |
+
sglang: {}
|
| 196 |
+
val_kwargs:
|
| 197 |
+
_target_: verl.workers.config.SamplingConfig
|
| 198 |
+
top_k: -1
|
| 199 |
+
top_p: 1.0
|
| 200 |
+
temperature: 0.5
|
| 201 |
+
'n': 1
|
| 202 |
+
do_sample: true
|
| 203 |
+
multi_turn:
|
| 204 |
+
_target_: verl.workers.config.MultiTurnConfig
|
| 205 |
+
enable: false
|
| 206 |
+
max_assistant_turns: null
|
| 207 |
+
tool_config_path: null
|
| 208 |
+
max_user_turns: null
|
| 209 |
+
max_parallel_calls: 1
|
| 210 |
+
max_tool_response_length: 256
|
| 211 |
+
tool_response_truncate_side: middle
|
| 212 |
+
interaction_config_path: null
|
| 213 |
+
use_inference_chat_template: false
|
| 214 |
+
tokenization_sanity_check_mode: strict
|
| 215 |
+
format: hermes
|
| 216 |
+
num_repeat_rollouts: null
|
| 217 |
+
calculate_log_probs: false
|
| 218 |
+
agent:
|
| 219 |
+
_target_: verl.workers.config.AgentLoopConfig
|
| 220 |
+
num_workers: 8
|
| 221 |
+
agent_loop_config_path: null
|
| 222 |
+
custom_async_server:
|
| 223 |
+
_target_: verl.workers.config.CustomAsyncServerConfig
|
| 224 |
+
path: null
|
| 225 |
+
name: null
|
| 226 |
+
update_weights_bucket_megabytes: 512
|
| 227 |
+
trace:
|
| 228 |
+
_target_: verl.workers.config.TraceConfig
|
| 229 |
+
backend: null
|
| 230 |
+
token2text: false
|
| 231 |
+
skip_rollout: false
|
| 232 |
+
skip_dump_dir: /tmp/rollout_dump
|
| 233 |
+
skip_tokenizer_init: true
|
| 234 |
+
profiler:
|
| 235 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 236 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 237 |
+
enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
|
| 238 |
+
all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
|
| 239 |
+
ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
|
| 240 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 241 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 242 |
+
layered_summon: false
|
| 243 |
+
rollout_filter_value: 0.9
|
| 244 |
+
rollout_filter_strategy: top_p
|
| 245 |
+
rollout_filter_type: largest
|
| 246 |
+
rollout_filter_include_zero: true
|
| 247 |
+
rollout_filter_top_p_prob_mode: linear
|
| 248 |
+
rollout_filter_selection_eps: 0.01
|
| 249 |
+
rollout_filter_empty_stop_steps: 5
|
| 250 |
+
rollout_filter_metric: reward_variance
|
| 251 |
+
gradient_analysis_num_buckets: 6
|
| 252 |
+
gradient_analysis_bucket_mode: quantile
|
| 253 |
+
model:
|
| 254 |
+
_target_: verl.workers.config.HFModelConfig
|
| 255 |
+
path: ${model_path}
|
| 256 |
+
hf_config_path: null
|
| 257 |
+
tokenizer_path: null
|
| 258 |
+
use_shm: false
|
| 259 |
+
trust_remote_code: false
|
| 260 |
+
custom_chat_template: null
|
| 261 |
+
external_lib: null
|
| 262 |
+
override_config: {}
|
| 263 |
+
enable_gradient_checkpointing: true
|
| 264 |
+
enable_activation_offload: false
|
| 265 |
+
use_remove_padding: false
|
| 266 |
+
lora_rank: ${lora.rank}
|
| 267 |
+
lora_alpha: ${lora.alpha}
|
| 268 |
+
target_modules: ${lora.target_modules}
|
| 269 |
+
exclude_modules: null
|
| 270 |
+
use_liger: false
|
| 271 |
+
use_fused_kernels: false
|
| 272 |
+
fused_kernel_options:
|
| 273 |
+
impl_backend: torch
|
| 274 |
+
hybrid_engine: true
|
| 275 |
+
nccl_timeout: 600
|
| 276 |
+
data:
|
| 277 |
+
tokenizer: null
|
| 278 |
+
use_shm: false
|
| 279 |
+
train_files: ~/data/rlhf/gsm8k/train.parquet
|
| 280 |
+
val_files: ~/data/rlhf/gsm8k/test.parquet
|
| 281 |
+
prompt_key: prompt
|
| 282 |
+
reward_fn_key: data_source
|
| 283 |
+
max_prompt_length: null
|
| 284 |
+
max_response_length: null
|
| 285 |
+
train_batch_size: null
|
| 286 |
+
val_batch_size: null
|
| 287 |
+
return_raw_input_ids: false
|
| 288 |
+
return_raw_chat: false
|
| 289 |
+
return_full_prompt: false
|
| 290 |
+
shuffle: true
|
| 291 |
+
dataloader_num_workers: 8
|
| 292 |
+
validation_shuffle: false
|
| 293 |
+
filter_overlong_prompts: false
|
| 294 |
+
filter_overlong_prompts_workers: 1
|
| 295 |
+
truncation: error
|
| 296 |
+
image_key: images
|
| 297 |
+
video_key: videos
|
| 298 |
+
trust_remote_code: false
|
| 299 |
+
custom_cls:
|
| 300 |
+
path: null
|
| 301 |
+
name: null
|
| 302 |
+
return_multi_modal_inputs: true
|
| 303 |
+
sampler:
|
| 304 |
+
class_path: null
|
| 305 |
+
class_name: null
|
| 306 |
+
datagen:
|
| 307 |
+
path: null
|
| 308 |
+
name: null
|
| 309 |
+
apply_chat_template_kwargs: {}
|
| 310 |
+
critic:
|
| 311 |
+
optim:
|
| 312 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 313 |
+
lr: 1.0e-05
|
| 314 |
+
lr_warmup_steps_ratio: 0.0
|
| 315 |
+
total_training_steps: -1
|
| 316 |
+
weight_decay: 0.01
|
| 317 |
+
lr_warmup_steps: -1
|
| 318 |
+
betas:
|
| 319 |
+
- 0.9
|
| 320 |
+
- 0.999
|
| 321 |
+
clip_grad: 1.0
|
| 322 |
+
min_lr_ratio: 0.0
|
| 323 |
+
num_cycles: 0.5
|
| 324 |
+
warmup_style: constant
|
| 325 |
+
model:
|
| 326 |
+
fsdp_config:
|
| 327 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 328 |
+
wrap_policy:
|
| 329 |
+
min_num_params: 0
|
| 330 |
+
param_offload: false
|
| 331 |
+
optimizer_offload: false
|
| 332 |
+
offload_policy: false
|
| 333 |
+
reshard_after_forward: true
|
| 334 |
+
fsdp_size: -1
|
| 335 |
+
forward_prefetch: false
|
| 336 |
+
model_dtype: fp32
|
| 337 |
+
use_orig_params: false
|
| 338 |
+
ulysses_sequence_parallel_size: 1
|
| 339 |
+
entropy_from_logits_with_chunking: false
|
| 340 |
+
use_torch_compile: true
|
| 341 |
+
entropy_checkpointing: false
|
| 342 |
+
forward_only: false
|
| 343 |
+
strategy: fsdp
|
| 344 |
+
path: ${model_path}
|
| 345 |
+
tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
|
| 346 |
+
override_config: {}
|
| 347 |
+
external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
|
| 348 |
+
trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
|
| 349 |
+
_target_: verl.workers.config.FSDPCriticModelCfg
|
| 350 |
+
use_shm: false
|
| 351 |
+
enable_gradient_checkpointing: true
|
| 352 |
+
enable_activation_offload: false
|
| 353 |
+
use_remove_padding: false
|
| 354 |
+
lora_rank: ${lora.rank}
|
| 355 |
+
lora_alpha: ${lora.alpha}
|
| 356 |
+
target_modules: ${lora.target_modules}
|
| 357 |
+
_target_: verl.workers.config.FSDPCriticConfig
|
| 358 |
+
rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
|
| 359 |
+
strategy: fsdp
|
| 360 |
+
enable: null
|
| 361 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 362 |
+
ppo_micro_batch_size: null
|
| 363 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 364 |
+
use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 365 |
+
ppo_max_token_len_per_gpu: 32768
|
| 366 |
+
forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
|
| 367 |
+
ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
|
| 368 |
+
shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
|
| 369 |
+
cliprange_value: 0.5
|
| 370 |
+
loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
|
| 371 |
+
checkpoint:
|
| 372 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 373 |
+
save_contents:
|
| 374 |
+
- model
|
| 375 |
+
- optimizer
|
| 376 |
+
- extra
|
| 377 |
+
load_contents: ${.save_contents}
|
| 378 |
+
async_save: false
|
| 379 |
+
profiler:
|
| 380 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 381 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 382 |
+
enable: false
|
| 383 |
+
all_ranks: false
|
| 384 |
+
ranks: []
|
| 385 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 386 |
+
tool_config:
|
| 387 |
+
nsys:
|
| 388 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 389 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 390 |
+
npu:
|
| 391 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 392 |
+
contents: []
|
| 393 |
+
level: level1
|
| 394 |
+
analysis: true
|
| 395 |
+
discrete: false
|
| 396 |
+
torch:
|
| 397 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 398 |
+
step_start: 0
|
| 399 |
+
step_end: null
|
| 400 |
+
torch_memory:
|
| 401 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 402 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 403 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 404 |
+
forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
|
| 405 |
+
forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
|
| 406 |
+
ulysses_sequence_parallel_size: 1
|
| 407 |
+
grad_clip: 1.0
|
| 408 |
+
reward_model:
|
| 409 |
+
enable: false
|
| 410 |
+
enable_resource_pool: false
|
| 411 |
+
n_gpus_per_node: 0
|
| 412 |
+
nnodes: 0
|
| 413 |
+
strategy: fsdp
|
| 414 |
+
model:
|
| 415 |
+
input_tokenizer: ${actor_rollout_ref.model.path}
|
| 416 |
+
path: ~/models/FsfairX-LLaMA3-RM-v0.1
|
| 417 |
+
external_lib: ${actor_rollout_ref.model.external_lib}
|
| 418 |
+
trust_remote_code: false
|
| 419 |
+
use_shm: false
|
| 420 |
+
use_remove_padding: false
|
| 421 |
+
use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
|
| 422 |
+
fsdp_config:
|
| 423 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 424 |
+
wrap_policy:
|
| 425 |
+
min_num_params: 0
|
| 426 |
+
param_offload: false
|
| 427 |
+
reshard_after_forward: true
|
| 428 |
+
fsdp_size: -1
|
| 429 |
+
forward_prefetch: false
|
| 430 |
+
micro_batch_size: null
|
| 431 |
+
micro_batch_size_per_gpu: null
|
| 432 |
+
max_length: null
|
| 433 |
+
use_dynamic_bsz: ${critic.use_dynamic_bsz}
|
| 434 |
+
forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
|
| 435 |
+
reward_manager: naive
|
| 436 |
+
launch_reward_fn_async: false
|
| 437 |
+
sandbox_fusion:
|
| 438 |
+
url: null
|
| 439 |
+
max_concurrent: 64
|
| 440 |
+
memory_limit_mb: 1024
|
| 441 |
+
profiler:
|
| 442 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 443 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 444 |
+
enable: false
|
| 445 |
+
all_ranks: false
|
| 446 |
+
ranks: []
|
| 447 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 448 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 449 |
+
ulysses_sequence_parallel_size: 1
|
| 450 |
+
custom_reward_function:
|
| 451 |
+
path: null
|
| 452 |
+
name: compute_score
|
| 453 |
+
algorithm:
|
| 454 |
+
_target_: verl.trainer.config.AlgoConfig
|
| 455 |
+
gamma: 1.0
|
| 456 |
+
lam: 1.0
|
| 457 |
+
adv_estimator: gae
|
| 458 |
+
norm_adv_by_std_in_grpo: true
|
| 459 |
+
use_kl_in_reward: false
|
| 460 |
+
kl_penalty: kl
|
| 461 |
+
kl_ctrl:
|
| 462 |
+
_target_: verl.trainer.config.KLControlConfig
|
| 463 |
+
type: fixed
|
| 464 |
+
kl_coef: 0.0
|
| 465 |
+
horizon: 10000
|
| 466 |
+
target_kl: 0.1
|
| 467 |
+
use_pf_ppo: false
|
| 468 |
+
pf_ppo:
|
| 469 |
+
reweight_method: pow
|
| 470 |
+
weight_pow: 2.0
|
| 471 |
+
high_level_gamma: 0.95
|
| 472 |
+
bi_level_gae: false
|
| 473 |
+
zero_task_advantage: false
|
| 474 |
+
soft_advantage_reweight: false
|
| 475 |
+
trainer:
|
| 476 |
+
balance_batch: true
|
| 477 |
+
total_epochs: 30
|
| 478 |
+
total_training_steps: 1000
|
| 479 |
+
project_name: ragen
|
| 480 |
+
experiment_name: sokoban-main
|
| 481 |
+
logger:
|
| 482 |
+
- console
|
| 483 |
+
- wandb
|
| 484 |
+
log_val_generations: 0
|
| 485 |
+
rollout_data_dir: null
|
| 486 |
+
validation_data_dir: null
|
| 487 |
+
nnodes: 1
|
| 488 |
+
n_gpus_per_node: 8
|
| 489 |
+
save_freq: -1
|
| 490 |
+
esi_redundant_time: 0
|
| 491 |
+
resume_mode: auto
|
| 492 |
+
resume_from_path: null
|
| 493 |
+
val_before_train: true
|
| 494 |
+
val_only: false
|
| 495 |
+
test_freq: 10
|
| 496 |
+
critic_warmup: 0
|
| 497 |
+
default_hdfs_dir: null
|
| 498 |
+
del_local_ckpt_after_load: false
|
| 499 |
+
default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
|
| 500 |
+
max_actor_ckpt_to_keep: 1
|
| 501 |
+
max_critic_ckpt_to_keep: 1
|
| 502 |
+
ray_wait_register_center_timeout: 300
|
| 503 |
+
device: cuda
|
| 504 |
+
use_legacy_worker_impl: auto
|
| 505 |
+
local_log_dir: results/
|
| 506 |
+
validation_steps: 1
|
| 507 |
+
generations_to_log_to_wandb:
|
| 508 |
+
val: 20
|
| 509 |
+
log_group_rv_table: false
|
| 510 |
+
gradient_analysis_mode: false
|
| 511 |
+
gradient_analysis_every: 50
|
| 512 |
+
gradient_analysis_env_groups: null
|
| 513 |
+
gradient_analysis_group_size: null
|
| 514 |
+
gradient_analysis_log_prefilter: false
|
| 515 |
+
gradient_analysis_only: false
|
| 516 |
+
exit_after_gradient_analysis: false
|
| 517 |
+
global_profiler:
|
| 518 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 519 |
+
tool: null
|
| 520 |
+
steps: null
|
| 521 |
+
profile_continuous_steps: false
|
| 522 |
+
save_path: outputs/profile
|
| 523 |
+
global_tool_config:
|
| 524 |
+
nsys:
|
| 525 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 526 |
+
discrete: false
|
| 527 |
+
controller_nsight_options:
|
| 528 |
+
trace: cuda,nvtx,cublas,ucx
|
| 529 |
+
cuda-memory-usage: 'true'
|
| 530 |
+
cuda-graph-trace: graph
|
| 531 |
+
worker_nsight_options:
|
| 532 |
+
trace: cuda,nvtx,cublas,ucx
|
| 533 |
+
cuda-memory-usage: 'true'
|
| 534 |
+
cuda-graph-trace: graph
|
| 535 |
+
capture-range: cudaProfilerApi
|
| 536 |
+
capture-range-end: null
|
| 537 |
+
kill: none
|
| 538 |
+
torch_memory:
|
| 539 |
+
trace_alloc_max_entries: 100000
|
| 540 |
+
stack_depth: 32
|
| 541 |
+
context: all
|
| 542 |
+
stacks: all
|
| 543 |
+
kw_args: {}
|
| 544 |
+
ray_kwargs:
|
| 545 |
+
ray_init:
|
| 546 |
+
num_cpus: null
|
| 547 |
+
timeline_json_file: null
|
| 548 |
+
custom_envs:
|
| 549 |
+
SimpleSokoban:
|
| 550 |
+
env_type: sokoban
|
| 551 |
+
max_actions_per_traj: 10
|
| 552 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 553 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 554 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 555 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 556 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 557 |
+
max_tokens: 100
|
| 558 |
+
parallel_friendly: false
|
| 559 |
+
max_workers: 32
|
| 560 |
+
env_config:
|
| 561 |
+
dim_x: 6
|
| 562 |
+
dim_y: 6
|
| 563 |
+
num_boxes: 1
|
| 564 |
+
max_steps: 100
|
| 565 |
+
LargerSokoban:
|
| 566 |
+
env_type: sokoban
|
| 567 |
+
max_actions_per_traj: 10
|
| 568 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 569 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 570 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 571 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 572 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 573 |
+
max_tokens: 100
|
| 574 |
+
parallel_friendly: false
|
| 575 |
+
max_workers: 32
|
| 576 |
+
env_config:
|
| 577 |
+
dim_x: 8
|
| 578 |
+
dim_y: 8
|
| 579 |
+
num_boxes: 2
|
| 580 |
+
max_steps: 100
|
| 581 |
+
search_depth: 10
|
| 582 |
+
SokobanDifferentGridVocab:
|
| 583 |
+
env_type: sokoban
|
| 584 |
+
max_actions_per_traj: 10
|
| 585 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 586 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 587 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 588 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 589 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 590 |
+
max_tokens: 100
|
| 591 |
+
parallel_friendly: false
|
| 592 |
+
max_workers: 32
|
| 593 |
+
env_config:
|
| 594 |
+
search_depth: 30
|
| 595 |
+
dim_x: 6
|
| 596 |
+
dim_y: 6
|
| 597 |
+
num_boxes: 1
|
| 598 |
+
max_steps: 100
|
| 599 |
+
grid_lookup:
|
| 600 |
+
0: W
|
| 601 |
+
1: .
|
| 602 |
+
2: G
|
| 603 |
+
3: C
|
| 604 |
+
4: B
|
| 605 |
+
5: A
|
| 606 |
+
6: '@'
|
| 607 |
+
grid_vocab:
|
| 608 |
+
W: wall
|
| 609 |
+
.: empty
|
| 610 |
+
G: target
|
| 611 |
+
C: box on target
|
| 612 |
+
B: box
|
| 613 |
+
A: player
|
| 614 |
+
'@': player on target
|
| 615 |
+
CoordSokoban:
|
| 616 |
+
env_type: sokoban
|
| 617 |
+
max_actions_per_traj: 10
|
| 618 |
+
env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
|
| 619 |
+
\ need to push all boxes to targets.\nYou are provided with a symbol grid and\
|
| 620 |
+
\ the zero-indexed coordinates of the player, each box, and each target. \n\
|
| 621 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
|
| 622 |
+
\ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
|
| 623 |
+
\ the same direction. \nYou cannot push a box through a wall, and you cannot\
|
| 624 |
+
\ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
|
| 625 |
+
\ || Right || Up</answer>.\n"
|
| 626 |
+
max_tokens: 120
|
| 627 |
+
parallel_friendly: false
|
| 628 |
+
max_workers: 32
|
| 629 |
+
env_config:
|
| 630 |
+
dim_x: 6
|
| 631 |
+
dim_y: 6
|
| 632 |
+
num_boxes: 1
|
| 633 |
+
max_steps: 100
|
| 634 |
+
observation_format: grid_coord
|
| 635 |
+
VisualSimpleSokoban:
|
| 636 |
+
env_type: sokoban
|
| 637 |
+
max_actions_per_traj: 10
|
| 638 |
+
env_instruction: You are solving the Sokoban puzzle. You are the player and you
|
| 639 |
+
need to push all boxes to targets. When you are right next to a box, you can
|
| 640 |
+
push it by moving in the same direction. You cannot push a box through a wall,
|
| 641 |
+
and you cannot pull a box. The answer should be a sequence of actions, like
|
| 642 |
+
<answer>Right || Right || Up</answer>
|
| 643 |
+
max_tokens: 100
|
| 644 |
+
parallel_friendly: false
|
| 645 |
+
max_workers: 32
|
| 646 |
+
env_config:
|
| 647 |
+
dim_x: 6
|
| 648 |
+
dim_y: 6
|
| 649 |
+
num_boxes: 1
|
| 650 |
+
max_steps: 100
|
| 651 |
+
render_mode: rgb_array
|
| 652 |
+
Alfworld:
|
| 653 |
+
env_type: alfworld
|
| 654 |
+
max_actions_per_traj: 50
|
| 655 |
+
parallel_friendly: false
|
| 656 |
+
max_workers: 1
|
| 657 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 658 |
+
|
| 659 |
+
Complete household tasks by navigating and interacting with objects.
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 663 |
+
process MUST be enclosed within <think> </think> tags.
|
| 664 |
+
|
| 665 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 666 |
+
for current step and present it within <answer>...</answer> tags.
|
| 667 |
+
|
| 668 |
+
'
|
| 669 |
+
max_tokens: 512
|
| 670 |
+
env_config:
|
| 671 |
+
eval_dataset: eval_in_distribution
|
| 672 |
+
AlfworldOOD:
|
| 673 |
+
env_type: alfworld
|
| 674 |
+
max_actions_per_traj: 50
|
| 675 |
+
parallel_friendly: false
|
| 676 |
+
max_workers: 1
|
| 677 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 678 |
+
|
| 679 |
+
Complete household tasks by navigating and interacting with objects.
|
| 680 |
+
|
| 681 |
+
|
| 682 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 683 |
+
process MUST be enclosed within <think> </think> tags.
|
| 684 |
+
|
| 685 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 686 |
+
for current step and present it within <answer>...</answer> tags.
|
| 687 |
+
|
| 688 |
+
'
|
| 689 |
+
max_tokens: 512
|
| 690 |
+
env_config:
|
| 691 |
+
eval_dataset: eval_out_of_distribution
|
| 692 |
+
Countdown:
|
| 693 |
+
env_type: countdown
|
| 694 |
+
max_actions_per_traj: 1
|
| 695 |
+
env_instruction: 'You are solving the Countdown puzzle. You should use the num
|
| 696 |
+
list to create an equation that equals the target. Example answer format: <think>
|
| 697 |
+
To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
|
| 698 |
+
= 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
|
| 699 |
+
max_tokens: 100
|
| 700 |
+
parallel_friendly: false
|
| 701 |
+
max_workers: 32
|
| 702 |
+
env_config: null
|
| 703 |
+
Bandit:
|
| 704 |
+
env_type: bandit
|
| 705 |
+
max_actions_per_traj: 1
|
| 706 |
+
env_instruction: ''
|
| 707 |
+
max_tokens: 100
|
| 708 |
+
parallel_friendly: false
|
| 709 |
+
max_workers: 32
|
| 710 |
+
env_config:
|
| 711 |
+
split: train
|
| 712 |
+
BanditTest:
|
| 713 |
+
env_type: bandit
|
| 714 |
+
max_actions_per_traj: 1
|
| 715 |
+
env_instruction: ''
|
| 716 |
+
max_tokens: 100
|
| 717 |
+
parallel_friendly: false
|
| 718 |
+
max_workers: 32
|
| 719 |
+
env_config:
|
| 720 |
+
split: test
|
| 721 |
+
DeepCoder:
|
| 722 |
+
env_type: deepcoder
|
| 723 |
+
max_actions_per_traj: 1
|
| 724 |
+
env_instruction: 'You are solving a coding task. Provide a complete Python function
|
| 725 |
+
solution only. Format: <answer>...</answer>'
|
| 726 |
+
max_tokens: 8000
|
| 727 |
+
parallel_friendly: true
|
| 728 |
+
max_workers: 32
|
| 729 |
+
env_config:
|
| 730 |
+
max_steps: 1
|
| 731 |
+
FrozenLake:
|
| 732 |
+
env_type: frozen_lake
|
| 733 |
+
max_actions_per_traj: 10
|
| 734 |
+
env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
|
| 735 |
+
go to the target. You may move to the unintended direction due to the slippery
|
| 736 |
+
ice. Example answer format: <think>To forbid the hole and go to the target,
|
| 737 |
+
I should go left then go up.</think><answer>Left || Up</answer>'
|
| 738 |
+
max_tokens: 100
|
| 739 |
+
parallel_friendly: false
|
| 740 |
+
max_workers: 32
|
| 741 |
+
env_config:
|
| 742 |
+
success_rate: 0.8
|
| 743 |
+
CoordFrozenLake:
|
| 744 |
+
env_type: frozen_lake
|
| 745 |
+
max_actions_per_traj: 10
|
| 746 |
+
env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
|
| 747 |
+
both a symbol grid and zero-indexed coordinates for the start, goal, player,
|
| 748 |
+
and any holes.
|
| 749 |
+
|
| 750 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner
|
| 751 |
+
(5, 5).
|
| 752 |
+
|
| 753 |
+
Beware that the ice is slippery, so the agent might slide and end up in an unintended
|
| 754 |
+
tile.
|
| 755 |
+
|
| 756 |
+
Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
|
| 757 |
+
|
| 758 |
+
'
|
| 759 |
+
max_tokens: 120
|
| 760 |
+
parallel_friendly: false
|
| 761 |
+
max_workers: 32
|
| 762 |
+
env_config:
|
| 763 |
+
observation_format: grid_coord
|
| 764 |
+
success_rate: 0.8
|
| 765 |
+
MetamathQA:
|
| 766 |
+
env_type: metamathqa
|
| 767 |
+
max_actions_per_traj: 1
|
| 768 |
+
env_instruction: 'You are solving Math problems. '
|
| 769 |
+
max_tokens: 100
|
| 770 |
+
env_config: null
|
| 771 |
+
WebShopFull:
|
| 772 |
+
env_type: webshop
|
| 773 |
+
max_actions_per_traj: 15
|
| 774 |
+
env_instruction: You are an expert autonomous agent operating in the WebShop e‑commerce
|
| 775 |
+
environment.
|
| 776 |
+
max_tokens: 200
|
| 777 |
+
env_config:
|
| 778 |
+
dataset: full
|
| 779 |
+
WebShop:
|
| 780 |
+
env_type: webshop
|
| 781 |
+
max_actions_per_traj: 9
|
| 782 |
+
env_instruction: 'You are browsing an online shop. Based on the instruction, buy
|
| 783 |
+
a product that close to the production description. You need to search, read
|
| 784 |
+
the search results, pick a product, choose the size and color and buy. You should
|
| 785 |
+
only choose action from the available actions list provided later. Example
|
| 786 |
+
process: I need a gingko light and 20x20 pillow cover that is hand painted.
|
| 787 |
+
First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
|
| 788 |
+
with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
|
| 789 |
+
max_tokens: 200
|
| 790 |
+
env_config:
|
| 791 |
+
dataset: small
|
| 792 |
+
Lean:
|
| 793 |
+
env_type: lean
|
| 794 |
+
max_actions_per_traj: 30
|
| 795 |
+
env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
|
| 796 |
+
propose a sequence of tactics that completes the proof. Think step by step about
|
| 797 |
+
which tactics to apply next. Provide tactics separated by '||', for example
|
| 798 |
+
<answer>intro || simp || rfl</answer>.
|
| 799 |
+
max_tokens: 512
|
| 800 |
+
parallel_friendly: true
|
| 801 |
+
max_workers: 32
|
| 802 |
+
env_config: null
|
| 803 |
+
SimpleSudoku:
|
| 804 |
+
env_type: sudoku
|
| 805 |
+
max_actions_per_traj: 20
|
| 806 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 807 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 808 |
+
|
| 809 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 810 |
+
shown as dots (.).
|
| 811 |
+
|
| 812 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 813 |
+
or <answer>2,3,5</answer>
|
| 814 |
+
|
| 815 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 816 |
+
if any occur.
|
| 817 |
+
|
| 818 |
+
'
|
| 819 |
+
max_tokens: 150
|
| 820 |
+
parallel_friendly: false
|
| 821 |
+
max_workers: 32
|
| 822 |
+
env_config:
|
| 823 |
+
grid_size: 9
|
| 824 |
+
difficulty: easy
|
| 825 |
+
render_format: with_feedback
|
| 826 |
+
show_conflicts: true
|
| 827 |
+
show_valid_numbers: true
|
| 828 |
+
max_steps: 81
|
| 829 |
+
MediumSudoku:
|
| 830 |
+
env_type: sudoku
|
| 831 |
+
max_actions_per_traj: 30
|
| 832 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 833 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 834 |
+
|
| 835 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 836 |
+
shown as dots (.).
|
| 837 |
+
|
| 838 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 839 |
+
or <answer>2,3,5</answer>
|
| 840 |
+
|
| 841 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 842 |
+
if any occur.
|
| 843 |
+
|
| 844 |
+
'
|
| 845 |
+
max_tokens: 150
|
| 846 |
+
parallel_friendly: false
|
| 847 |
+
max_workers: 32
|
| 848 |
+
env_config:
|
| 849 |
+
grid_size: 9
|
| 850 |
+
difficulty: medium
|
| 851 |
+
render_format: with_feedback
|
| 852 |
+
show_conflicts: true
|
| 853 |
+
show_valid_numbers: true
|
| 854 |
+
max_steps: 81
|
| 855 |
+
SearchQA:
|
| 856 |
+
env_type: search
|
| 857 |
+
max_actions_per_traj: 10
|
| 858 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 859 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 860 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 861 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 862 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 863 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 864 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 865 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 866 |
+
\ Platt]</answer>\n"
|
| 867 |
+
max_tokens: 300
|
| 868 |
+
parallel_friendly: true
|
| 869 |
+
max_workers: 32
|
| 870 |
+
env_config:
|
| 871 |
+
max_steps: 10
|
| 872 |
+
max_search_results: 5
|
| 873 |
+
SearchQAMock:
|
| 874 |
+
env_type: search
|
| 875 |
+
max_actions_per_traj: 10
|
| 876 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 877 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 878 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 879 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 880 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 881 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 882 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 883 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 884 |
+
\ Platt]</answer>\n"
|
| 885 |
+
max_tokens: 300
|
| 886 |
+
parallel_friendly: true
|
| 887 |
+
max_workers: 32
|
| 888 |
+
env_config:
|
| 889 |
+
max_steps: 10
|
| 890 |
+
max_search_results: 5
|
| 891 |
+
mock_mode: true
|
| 892 |
+
game_2048:
|
| 893 |
+
env_type: game_2048
|
| 894 |
+
max_actions_per_traj: 700
|
| 895 |
+
env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
|
| 896 |
+
by sliding Up, Right, Down, or Left.
|
| 897 |
+
|
| 898 |
+
If a move is invalid (no tiles move), a small penalty is applied. Respond with
|
| 899 |
+
a single action.
|
| 900 |
+
|
| 901 |
+
Example: <answer>Up</answer>
|
| 902 |
+
|
| 903 |
+
'
|
| 904 |
+
max_tokens: 8192
|
| 905 |
+
env_config: null
|
| 906 |
+
rubikscube:
|
| 907 |
+
env_type: rubikscube
|
| 908 |
+
max_actions_per_traj: 20
|
| 909 |
+
env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
|
| 910 |
+
is to restore the cube so that each of the faces consists of a single, unique
|
| 911 |
+
color.
|
| 912 |
+
|
| 913 |
+
Available actions use standard Singmaster notation for face rotations: U, U'',
|
| 914 |
+
D, D'', L, L'', R, R'', F, F'', B, B''.
|
| 915 |
+
|
| 916 |
+
- Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
|
| 917 |
+
|
| 918 |
+
- Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
|
| 919 |
+
prime ('') means 90° counter-clockwise (e.g., "R''").
|
| 920 |
+
|
| 921 |
+
Respond with a sequence of actions separated by "||".
|
| 922 |
+
|
| 923 |
+
Example: <answer>U</answer>
|
| 924 |
+
|
| 925 |
+
'
|
| 926 |
+
max_tokens: 96
|
| 927 |
+
env_config:
|
| 928 |
+
scramble_depth: 1
|
| 929 |
+
max_steps: 20
|
| 930 |
+
render_mode: text
|
| 931 |
+
system:
|
| 932 |
+
CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
|
| 933 |
+
seed:
|
| 934 |
+
train: 10000
|
| 935 |
+
val: 123
|
| 936 |
+
micro_batch_size_per_gpu: 1
|
| 937 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 938 |
+
ppo_mini_batch_size: 32
|
| 939 |
+
model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box1_rft
|
| 940 |
+
enable_response_mask: true
|
| 941 |
+
grpo_advantage_length_weight: false
|
| 942 |
+
lora:
|
| 943 |
+
rank: 0
|
| 944 |
+
alpha: 64
|
| 945 |
+
target_modules: all-linear
|
| 946 |
+
agent_proxy:
|
| 947 |
+
context_window_mode: full
|
| 948 |
+
max_context_window: -1
|
| 949 |
+
batch_adjust_mode: copy
|
| 950 |
+
max_turn: 5
|
| 951 |
+
action_sep: '||'
|
| 952 |
+
max_actions_per_turn: 2
|
| 953 |
+
use_turn_scores: false
|
| 954 |
+
enable_think: true
|
| 955 |
+
reward_normalization:
|
| 956 |
+
grouping: state
|
| 957 |
+
method: identity
|
| 958 |
+
collapse_detection:
|
| 959 |
+
compute_freq: 5
|
| 960 |
+
micro_batch_size: 128
|
| 961 |
+
first_turn_enabled: true
|
| 962 |
+
multi_turn_enabled: true
|
| 963 |
+
num_samples: 64
|
| 964 |
+
es_manager:
|
| 965 |
+
format_penalty: -0.1
|
| 966 |
+
train:
|
| 967 |
+
env_groups: 8
|
| 968 |
+
group_size: 16
|
| 969 |
+
env_configs:
|
| 970 |
+
tags:
|
| 971 |
+
- SimpleSokoban
|
| 972 |
+
n_groups:
|
| 973 |
+
- 8
|
| 974 |
+
val:
|
| 975 |
+
env_groups: 512
|
| 976 |
+
group_size: 1
|
| 977 |
+
env_configs:
|
| 978 |
+
tags:
|
| 979 |
+
- SimpleSokoban
|
| 980 |
+
n_groups:
|
| 981 |
+
- 512
|
| 982 |
+
ctx_manager:
|
| 983 |
+
generation:
|
| 984 |
+
gen_config:
|
| 985 |
+
response_length: ${actor_rollout_ref.rollout.response_length}
|
| 986 |
+
temperature: ${actor_rollout_ref.rollout.temperature}
|
| 987 |
+
top_p: ${actor_rollout_ref.rollout.top_p}
|
| 988 |
+
top_k: ${actor_rollout_ref.rollout.top_k}
|
| 989 |
+
kwargs: null
|
outputs/2026-05-11/14-33-26/.hydra/config.yaml
ADDED
|
@@ -0,0 +1,989 @@
|
|
|
|
|
|
|
|
|
|
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0.9
|
| 12 |
+
- 0.999
|
| 13 |
+
clip_grad: 1.0
|
| 14 |
+
min_lr_ratio: 0.0
|
| 15 |
+
num_cycles: 0.5
|
| 16 |
+
warmup_style: constant
|
| 17 |
+
fsdp_config:
|
| 18 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 19 |
+
wrap_policy:
|
| 20 |
+
min_num_params: 0
|
| 21 |
+
param_offload: false
|
| 22 |
+
optimizer_offload: false
|
| 23 |
+
offload_policy: false
|
| 24 |
+
reshard_after_forward: true
|
| 25 |
+
fsdp_size: -1
|
| 26 |
+
forward_prefetch: false
|
| 27 |
+
model_dtype: fp32
|
| 28 |
+
use_orig_params: false
|
| 29 |
+
ulysses_sequence_parallel_size: 1
|
| 30 |
+
entropy_from_logits_with_chunking: false
|
| 31 |
+
use_torch_compile: true
|
| 32 |
+
entropy_checkpointing: false
|
| 33 |
+
forward_only: false
|
| 34 |
+
strategy: fsdp
|
| 35 |
+
_target_: verl.workers.config.FSDPActorConfig
|
| 36 |
+
strategy: fsdp
|
| 37 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 38 |
+
ppo_micro_batch_size: null
|
| 39 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 40 |
+
use_dynamic_bsz: false
|
| 41 |
+
ppo_max_token_len_per_gpu: 16384
|
| 42 |
+
clip_ratio: 0.2
|
| 43 |
+
clip_ratio_low: 0.2
|
| 44 |
+
clip_ratio_high: 0.28
|
| 45 |
+
freeze_vision_tower: false
|
| 46 |
+
policy_loss:
|
| 47 |
+
_target_: verl.workers.config.PolicyLossConfig
|
| 48 |
+
loss_mode: vanilla
|
| 49 |
+
clip_cov_ratio: 0.0002
|
| 50 |
+
clip_cov_lb: 1.0
|
| 51 |
+
clip_cov_ub: 5.0
|
| 52 |
+
kl_cov_ratio: 0.0002
|
| 53 |
+
ppo_kl_coef: 0.1
|
| 54 |
+
clip_ratio_c: 3.0
|
| 55 |
+
loss_agg_mode: token-mean
|
| 56 |
+
entropy_coeff: 0.001
|
| 57 |
+
tis_imp_ratio_cap: -1
|
| 58 |
+
use_kl_loss: false
|
| 59 |
+
use_torch_compile: true
|
| 60 |
+
kl_loss_coef: 0.0
|
| 61 |
+
kl_loss_type: kl
|
| 62 |
+
ppo_epochs: 1
|
| 63 |
+
shuffle: false
|
| 64 |
+
checkpoint:
|
| 65 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 66 |
+
save_contents:
|
| 67 |
+
- model
|
| 68 |
+
- optimizer
|
| 69 |
+
- extra
|
| 70 |
+
load_contents: ${.save_contents}
|
| 71 |
+
async_save: false
|
| 72 |
+
use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
|
| 73 |
+
profiler:
|
| 74 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 75 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 76 |
+
enable: false
|
| 77 |
+
all_ranks: false
|
| 78 |
+
ranks: []
|
| 79 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 80 |
+
tool_config:
|
| 81 |
+
nsys:
|
| 82 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 83 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 84 |
+
npu:
|
| 85 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 86 |
+
contents: []
|
| 87 |
+
level: level1
|
| 88 |
+
analysis: true
|
| 89 |
+
discrete: false
|
| 90 |
+
torch:
|
| 91 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 92 |
+
step_start: 0
|
| 93 |
+
step_end: null
|
| 94 |
+
torch_memory:
|
| 95 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 96 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 97 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 98 |
+
grad_clip: 1.0
|
| 99 |
+
ulysses_sequence_parallel_size: 1
|
| 100 |
+
entropy_from_logits_with_chunking: false
|
| 101 |
+
entropy_checkpointing: false
|
| 102 |
+
use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
|
| 103 |
+
use_ref: true
|
| 104 |
+
grpo_advantage_length_weight: ${grpo_advantage_length_weight}
|
| 105 |
+
filter_loss_scaling: none
|
| 106 |
+
ref:
|
| 107 |
+
strategy: ${actor_rollout_ref.actor.strategy}
|
| 108 |
+
use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
|
| 109 |
+
log_prob_micro_batch_size: null
|
| 110 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 111 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 112 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 113 |
+
profiler:
|
| 114 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 115 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 116 |
+
enable: false
|
| 117 |
+
all_ranks: false
|
| 118 |
+
ranks: []
|
| 119 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 120 |
+
tool_config:
|
| 121 |
+
nsys:
|
| 122 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 123 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 124 |
+
npu:
|
| 125 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 126 |
+
contents: []
|
| 127 |
+
level: level1
|
| 128 |
+
analysis: true
|
| 129 |
+
discrete: false
|
| 130 |
+
torch:
|
| 131 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 132 |
+
step_start: 0
|
| 133 |
+
step_end: null
|
| 134 |
+
torch_memory:
|
| 135 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 136 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 137 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 138 |
+
fsdp_config:
|
| 139 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 140 |
+
wrap_policy:
|
| 141 |
+
min_num_params: 0
|
| 142 |
+
param_offload: false
|
| 143 |
+
optimizer_offload: false
|
| 144 |
+
offload_policy: false
|
| 145 |
+
reshard_after_forward: true
|
| 146 |
+
fsdp_size: -1
|
| 147 |
+
forward_prefetch: false
|
| 148 |
+
model_dtype: fp32
|
| 149 |
+
use_orig_params: false
|
| 150 |
+
ulysses_sequence_parallel_size: 1
|
| 151 |
+
entropy_from_logits_with_chunking: false
|
| 152 |
+
use_torch_compile: true
|
| 153 |
+
entropy_checkpointing: false
|
| 154 |
+
forward_only: false
|
| 155 |
+
strategy: fsdp
|
| 156 |
+
model: null
|
| 157 |
+
ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
|
| 158 |
+
entropy_from_logits_with_chunking: false
|
| 159 |
+
entropy_checkpointing: false
|
| 160 |
+
rollout:
|
| 161 |
+
_target_: verl.workers.config.RolloutConfig
|
| 162 |
+
name: vllm
|
| 163 |
+
mode: sync
|
| 164 |
+
temperature: 1
|
| 165 |
+
top_k: -1
|
| 166 |
+
top_p: 1
|
| 167 |
+
prompt_length: 1
|
| 168 |
+
response_length: 400
|
| 169 |
+
dtype: bfloat16
|
| 170 |
+
gpu_memory_utilization: 0.8
|
| 171 |
+
ignore_eos: false
|
| 172 |
+
enforce_eager: true
|
| 173 |
+
cudagraph_capture_sizes: null
|
| 174 |
+
free_cache_engine: true
|
| 175 |
+
tensor_model_parallel_size: 1
|
| 176 |
+
data_parallel_size: 1
|
| 177 |
+
expert_parallel_size: 1
|
| 178 |
+
max_num_batched_tokens: 8192
|
| 179 |
+
max_model_len: 3600
|
| 180 |
+
max_num_seqs: 1024
|
| 181 |
+
enable_chunked_prefill: true
|
| 182 |
+
enable_prefix_caching: true
|
| 183 |
+
load_format: auto
|
| 184 |
+
log_prob_micro_batch_size: null
|
| 185 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 186 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 187 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 188 |
+
disable_log_stats: true
|
| 189 |
+
do_sample: true
|
| 190 |
+
'n': 1
|
| 191 |
+
over_sample_rate: 0
|
| 192 |
+
multi_stage_wake_up: false
|
| 193 |
+
engine_kwargs:
|
| 194 |
+
vllm: {}
|
| 195 |
+
sglang: {}
|
| 196 |
+
val_kwargs:
|
| 197 |
+
_target_: verl.workers.config.SamplingConfig
|
| 198 |
+
top_k: -1
|
| 199 |
+
top_p: 1.0
|
| 200 |
+
temperature: 0.5
|
| 201 |
+
'n': 1
|
| 202 |
+
do_sample: true
|
| 203 |
+
multi_turn:
|
| 204 |
+
_target_: verl.workers.config.MultiTurnConfig
|
| 205 |
+
enable: false
|
| 206 |
+
max_assistant_turns: null
|
| 207 |
+
tool_config_path: null
|
| 208 |
+
max_user_turns: null
|
| 209 |
+
max_parallel_calls: 1
|
| 210 |
+
max_tool_response_length: 256
|
| 211 |
+
tool_response_truncate_side: middle
|
| 212 |
+
interaction_config_path: null
|
| 213 |
+
use_inference_chat_template: false
|
| 214 |
+
tokenization_sanity_check_mode: strict
|
| 215 |
+
format: hermes
|
| 216 |
+
num_repeat_rollouts: null
|
| 217 |
+
calculate_log_probs: false
|
| 218 |
+
agent:
|
| 219 |
+
_target_: verl.workers.config.AgentLoopConfig
|
| 220 |
+
num_workers: 8
|
| 221 |
+
agent_loop_config_path: null
|
| 222 |
+
custom_async_server:
|
| 223 |
+
_target_: verl.workers.config.CustomAsyncServerConfig
|
| 224 |
+
path: null
|
| 225 |
+
name: null
|
| 226 |
+
update_weights_bucket_megabytes: 512
|
| 227 |
+
trace:
|
| 228 |
+
_target_: verl.workers.config.TraceConfig
|
| 229 |
+
backend: null
|
| 230 |
+
token2text: false
|
| 231 |
+
skip_rollout: false
|
| 232 |
+
skip_dump_dir: /tmp/rollout_dump
|
| 233 |
+
skip_tokenizer_init: true
|
| 234 |
+
profiler:
|
| 235 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 236 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 237 |
+
enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
|
| 238 |
+
all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
|
| 239 |
+
ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
|
| 240 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 241 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 242 |
+
layered_summon: false
|
| 243 |
+
rollout_filter_value: 1.0
|
| 244 |
+
rollout_filter_strategy: top_p
|
| 245 |
+
rollout_filter_type: largest
|
| 246 |
+
rollout_filter_include_zero: true
|
| 247 |
+
rollout_filter_top_p_prob_mode: linear
|
| 248 |
+
rollout_filter_selection_eps: 0.01
|
| 249 |
+
rollout_filter_empty_stop_steps: 5
|
| 250 |
+
rollout_filter_metric: reward_variance
|
| 251 |
+
gradient_analysis_num_buckets: 6
|
| 252 |
+
gradient_analysis_bucket_mode: quantile
|
| 253 |
+
model:
|
| 254 |
+
_target_: verl.workers.config.HFModelConfig
|
| 255 |
+
path: ${model_path}
|
| 256 |
+
hf_config_path: null
|
| 257 |
+
tokenizer_path: null
|
| 258 |
+
use_shm: false
|
| 259 |
+
trust_remote_code: false
|
| 260 |
+
custom_chat_template: null
|
| 261 |
+
external_lib: null
|
| 262 |
+
override_config: {}
|
| 263 |
+
enable_gradient_checkpointing: true
|
| 264 |
+
enable_activation_offload: false
|
| 265 |
+
use_remove_padding: false
|
| 266 |
+
lora_rank: ${lora.rank}
|
| 267 |
+
lora_alpha: ${lora.alpha}
|
| 268 |
+
target_modules: ${lora.target_modules}
|
| 269 |
+
exclude_modules: null
|
| 270 |
+
use_liger: false
|
| 271 |
+
use_fused_kernels: false
|
| 272 |
+
fused_kernel_options:
|
| 273 |
+
impl_backend: torch
|
| 274 |
+
hybrid_engine: true
|
| 275 |
+
nccl_timeout: 600
|
| 276 |
+
data:
|
| 277 |
+
tokenizer: null
|
| 278 |
+
use_shm: false
|
| 279 |
+
train_files: ~/data/rlhf/gsm8k/train.parquet
|
| 280 |
+
val_files: ~/data/rlhf/gsm8k/test.parquet
|
| 281 |
+
prompt_key: prompt
|
| 282 |
+
reward_fn_key: data_source
|
| 283 |
+
max_prompt_length: null
|
| 284 |
+
max_response_length: null
|
| 285 |
+
train_batch_size: null
|
| 286 |
+
val_batch_size: null
|
| 287 |
+
return_raw_input_ids: false
|
| 288 |
+
return_raw_chat: false
|
| 289 |
+
return_full_prompt: false
|
| 290 |
+
shuffle: true
|
| 291 |
+
dataloader_num_workers: 8
|
| 292 |
+
validation_shuffle: false
|
| 293 |
+
filter_overlong_prompts: false
|
| 294 |
+
filter_overlong_prompts_workers: 1
|
| 295 |
+
truncation: error
|
| 296 |
+
image_key: images
|
| 297 |
+
video_key: videos
|
| 298 |
+
trust_remote_code: false
|
| 299 |
+
custom_cls:
|
| 300 |
+
path: null
|
| 301 |
+
name: null
|
| 302 |
+
return_multi_modal_inputs: true
|
| 303 |
+
sampler:
|
| 304 |
+
class_path: null
|
| 305 |
+
class_name: null
|
| 306 |
+
datagen:
|
| 307 |
+
path: null
|
| 308 |
+
name: null
|
| 309 |
+
apply_chat_template_kwargs: {}
|
| 310 |
+
critic:
|
| 311 |
+
optim:
|
| 312 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 313 |
+
lr: 1.0e-05
|
| 314 |
+
lr_warmup_steps_ratio: 0.0
|
| 315 |
+
total_training_steps: -1
|
| 316 |
+
weight_decay: 0.01
|
| 317 |
+
lr_warmup_steps: -1
|
| 318 |
+
betas:
|
| 319 |
+
- 0.9
|
| 320 |
+
- 0.999
|
| 321 |
+
clip_grad: 1.0
|
| 322 |
+
min_lr_ratio: 0.0
|
| 323 |
+
num_cycles: 0.5
|
| 324 |
+
warmup_style: constant
|
| 325 |
+
model:
|
| 326 |
+
fsdp_config:
|
| 327 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 328 |
+
wrap_policy:
|
| 329 |
+
min_num_params: 0
|
| 330 |
+
param_offload: false
|
| 331 |
+
optimizer_offload: false
|
| 332 |
+
offload_policy: false
|
| 333 |
+
reshard_after_forward: true
|
| 334 |
+
fsdp_size: -1
|
| 335 |
+
forward_prefetch: false
|
| 336 |
+
model_dtype: fp32
|
| 337 |
+
use_orig_params: false
|
| 338 |
+
ulysses_sequence_parallel_size: 1
|
| 339 |
+
entropy_from_logits_with_chunking: false
|
| 340 |
+
use_torch_compile: true
|
| 341 |
+
entropy_checkpointing: false
|
| 342 |
+
forward_only: false
|
| 343 |
+
strategy: fsdp
|
| 344 |
+
path: ${model_path}
|
| 345 |
+
tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
|
| 346 |
+
override_config: {}
|
| 347 |
+
external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
|
| 348 |
+
trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
|
| 349 |
+
_target_: verl.workers.config.FSDPCriticModelCfg
|
| 350 |
+
use_shm: false
|
| 351 |
+
enable_gradient_checkpointing: true
|
| 352 |
+
enable_activation_offload: false
|
| 353 |
+
use_remove_padding: false
|
| 354 |
+
lora_rank: ${lora.rank}
|
| 355 |
+
lora_alpha: ${lora.alpha}
|
| 356 |
+
target_modules: ${lora.target_modules}
|
| 357 |
+
_target_: verl.workers.config.FSDPCriticConfig
|
| 358 |
+
rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
|
| 359 |
+
strategy: fsdp
|
| 360 |
+
enable: null
|
| 361 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 362 |
+
ppo_micro_batch_size: null
|
| 363 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 364 |
+
use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 365 |
+
ppo_max_token_len_per_gpu: 32768
|
| 366 |
+
forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
|
| 367 |
+
ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
|
| 368 |
+
shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
|
| 369 |
+
cliprange_value: 0.5
|
| 370 |
+
loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
|
| 371 |
+
checkpoint:
|
| 372 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 373 |
+
save_contents:
|
| 374 |
+
- model
|
| 375 |
+
- optimizer
|
| 376 |
+
- extra
|
| 377 |
+
load_contents: ${.save_contents}
|
| 378 |
+
async_save: false
|
| 379 |
+
profiler:
|
| 380 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 381 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 382 |
+
enable: false
|
| 383 |
+
all_ranks: false
|
| 384 |
+
ranks: []
|
| 385 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 386 |
+
tool_config:
|
| 387 |
+
nsys:
|
| 388 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 389 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 390 |
+
npu:
|
| 391 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 392 |
+
contents: []
|
| 393 |
+
level: level1
|
| 394 |
+
analysis: true
|
| 395 |
+
discrete: false
|
| 396 |
+
torch:
|
| 397 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 398 |
+
step_start: 0
|
| 399 |
+
step_end: null
|
| 400 |
+
torch_memory:
|
| 401 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 402 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 403 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 404 |
+
forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
|
| 405 |
+
forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
|
| 406 |
+
ulysses_sequence_parallel_size: 1
|
| 407 |
+
grad_clip: 1.0
|
| 408 |
+
reward_model:
|
| 409 |
+
enable: false
|
| 410 |
+
enable_resource_pool: false
|
| 411 |
+
n_gpus_per_node: 0
|
| 412 |
+
nnodes: 0
|
| 413 |
+
strategy: fsdp
|
| 414 |
+
model:
|
| 415 |
+
input_tokenizer: ${actor_rollout_ref.model.path}
|
| 416 |
+
path: ~/models/FsfairX-LLaMA3-RM-v0.1
|
| 417 |
+
external_lib: ${actor_rollout_ref.model.external_lib}
|
| 418 |
+
trust_remote_code: false
|
| 419 |
+
use_shm: false
|
| 420 |
+
use_remove_padding: false
|
| 421 |
+
use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
|
| 422 |
+
fsdp_config:
|
| 423 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 424 |
+
wrap_policy:
|
| 425 |
+
min_num_params: 0
|
| 426 |
+
param_offload: false
|
| 427 |
+
reshard_after_forward: true
|
| 428 |
+
fsdp_size: -1
|
| 429 |
+
forward_prefetch: false
|
| 430 |
+
micro_batch_size: null
|
| 431 |
+
micro_batch_size_per_gpu: null
|
| 432 |
+
max_length: null
|
| 433 |
+
use_dynamic_bsz: ${critic.use_dynamic_bsz}
|
| 434 |
+
forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
|
| 435 |
+
reward_manager: naive
|
| 436 |
+
launch_reward_fn_async: false
|
| 437 |
+
sandbox_fusion:
|
| 438 |
+
url: null
|
| 439 |
+
max_concurrent: 64
|
| 440 |
+
memory_limit_mb: 1024
|
| 441 |
+
profiler:
|
| 442 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 443 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 444 |
+
enable: false
|
| 445 |
+
all_ranks: false
|
| 446 |
+
ranks: []
|
| 447 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 448 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 449 |
+
ulysses_sequence_parallel_size: 1
|
| 450 |
+
custom_reward_function:
|
| 451 |
+
path: null
|
| 452 |
+
name: compute_score
|
| 453 |
+
algorithm:
|
| 454 |
+
_target_: verl.trainer.config.AlgoConfig
|
| 455 |
+
gamma: 1.0
|
| 456 |
+
lam: 1.0
|
| 457 |
+
adv_estimator: gae
|
| 458 |
+
norm_adv_by_std_in_grpo: true
|
| 459 |
+
use_kl_in_reward: false
|
| 460 |
+
kl_penalty: kl
|
| 461 |
+
kl_ctrl:
|
| 462 |
+
_target_: verl.trainer.config.KLControlConfig
|
| 463 |
+
type: fixed
|
| 464 |
+
kl_coef: 0.0
|
| 465 |
+
horizon: 10000
|
| 466 |
+
target_kl: 0.1
|
| 467 |
+
use_pf_ppo: false
|
| 468 |
+
pf_ppo:
|
| 469 |
+
reweight_method: pow
|
| 470 |
+
weight_pow: 2.0
|
| 471 |
+
high_level_gamma: 0.95
|
| 472 |
+
bi_level_gae: false
|
| 473 |
+
zero_task_advantage: false
|
| 474 |
+
soft_advantage_reweight: false
|
| 475 |
+
trainer:
|
| 476 |
+
balance_batch: true
|
| 477 |
+
total_epochs: 30
|
| 478 |
+
total_training_steps: 1000
|
| 479 |
+
project_name: ragen_rlvtr_3b
|
| 480 |
+
experiment_name: sokoban1_3b_rft_second
|
| 481 |
+
logger:
|
| 482 |
+
- console
|
| 483 |
+
- wandb
|
| 484 |
+
log_val_generations: 0
|
| 485 |
+
rollout_data_dir: null
|
| 486 |
+
validation_data_dir: null
|
| 487 |
+
nnodes: 1
|
| 488 |
+
n_gpus_per_node: 8
|
| 489 |
+
save_freq: -1
|
| 490 |
+
esi_redundant_time: 0
|
| 491 |
+
resume_mode: auto
|
| 492 |
+
resume_from_path: null
|
| 493 |
+
val_before_train: true
|
| 494 |
+
val_only: false
|
| 495 |
+
test_freq: 10
|
| 496 |
+
critic_warmup: 0
|
| 497 |
+
default_hdfs_dir: null
|
| 498 |
+
del_local_ckpt_after_load: false
|
| 499 |
+
default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
|
| 500 |
+
max_actor_ckpt_to_keep: 1
|
| 501 |
+
max_critic_ckpt_to_keep: 1
|
| 502 |
+
ray_wait_register_center_timeout: 300
|
| 503 |
+
device: cuda
|
| 504 |
+
use_legacy_worker_impl: auto
|
| 505 |
+
local_log_dir: results/
|
| 506 |
+
validation_steps: 1
|
| 507 |
+
generations_to_log_to_wandb:
|
| 508 |
+
val: 20
|
| 509 |
+
log_group_rv_table: false
|
| 510 |
+
gradient_analysis_mode: false
|
| 511 |
+
gradient_analysis_every: 50
|
| 512 |
+
gradient_analysis_env_groups: null
|
| 513 |
+
gradient_analysis_group_size: null
|
| 514 |
+
gradient_analysis_log_prefilter: false
|
| 515 |
+
gradient_analysis_only: false
|
| 516 |
+
exit_after_gradient_analysis: false
|
| 517 |
+
global_profiler:
|
| 518 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 519 |
+
tool: null
|
| 520 |
+
steps: null
|
| 521 |
+
profile_continuous_steps: false
|
| 522 |
+
save_path: outputs/profile
|
| 523 |
+
global_tool_config:
|
| 524 |
+
nsys:
|
| 525 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 526 |
+
discrete: false
|
| 527 |
+
controller_nsight_options:
|
| 528 |
+
trace: cuda,nvtx,cublas,ucx
|
| 529 |
+
cuda-memory-usage: 'true'
|
| 530 |
+
cuda-graph-trace: graph
|
| 531 |
+
worker_nsight_options:
|
| 532 |
+
trace: cuda,nvtx,cublas,ucx
|
| 533 |
+
cuda-memory-usage: 'true'
|
| 534 |
+
cuda-graph-trace: graph
|
| 535 |
+
capture-range: cudaProfilerApi
|
| 536 |
+
capture-range-end: null
|
| 537 |
+
kill: none
|
| 538 |
+
torch_memory:
|
| 539 |
+
trace_alloc_max_entries: 100000
|
| 540 |
+
stack_depth: 32
|
| 541 |
+
context: all
|
| 542 |
+
stacks: all
|
| 543 |
+
kw_args: {}
|
| 544 |
+
ray_kwargs:
|
| 545 |
+
ray_init:
|
| 546 |
+
num_cpus: null
|
| 547 |
+
timeline_json_file: null
|
| 548 |
+
custom_envs:
|
| 549 |
+
SimpleSokoban:
|
| 550 |
+
env_type: sokoban
|
| 551 |
+
max_actions_per_traj: 10
|
| 552 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 553 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 554 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 555 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 556 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 557 |
+
max_tokens: 100
|
| 558 |
+
parallel_friendly: false
|
| 559 |
+
max_workers: 32
|
| 560 |
+
env_config:
|
| 561 |
+
dim_x: 6
|
| 562 |
+
dim_y: 6
|
| 563 |
+
num_boxes: 1
|
| 564 |
+
max_steps: 100
|
| 565 |
+
LargerSokoban:
|
| 566 |
+
env_type: sokoban
|
| 567 |
+
max_actions_per_traj: 10
|
| 568 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 569 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 570 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 571 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 572 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 573 |
+
max_tokens: 100
|
| 574 |
+
parallel_friendly: false
|
| 575 |
+
max_workers: 32
|
| 576 |
+
env_config:
|
| 577 |
+
dim_x: 8
|
| 578 |
+
dim_y: 8
|
| 579 |
+
num_boxes: 2
|
| 580 |
+
max_steps: 100
|
| 581 |
+
search_depth: 10
|
| 582 |
+
SokobanDifferentGridVocab:
|
| 583 |
+
env_type: sokoban
|
| 584 |
+
max_actions_per_traj: 10
|
| 585 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 586 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 587 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 588 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 589 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 590 |
+
max_tokens: 100
|
| 591 |
+
parallel_friendly: false
|
| 592 |
+
max_workers: 32
|
| 593 |
+
env_config:
|
| 594 |
+
search_depth: 30
|
| 595 |
+
dim_x: 6
|
| 596 |
+
dim_y: 6
|
| 597 |
+
num_boxes: 1
|
| 598 |
+
max_steps: 100
|
| 599 |
+
grid_lookup:
|
| 600 |
+
0: W
|
| 601 |
+
1: .
|
| 602 |
+
2: G
|
| 603 |
+
3: C
|
| 604 |
+
4: B
|
| 605 |
+
5: A
|
| 606 |
+
6: '@'
|
| 607 |
+
grid_vocab:
|
| 608 |
+
W: wall
|
| 609 |
+
.: empty
|
| 610 |
+
G: target
|
| 611 |
+
C: box on target
|
| 612 |
+
B: box
|
| 613 |
+
A: player
|
| 614 |
+
'@': player on target
|
| 615 |
+
CoordSokoban:
|
| 616 |
+
env_type: sokoban
|
| 617 |
+
max_actions_per_traj: 10
|
| 618 |
+
env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
|
| 619 |
+
\ need to push all boxes to targets.\nYou are provided with a symbol grid and\
|
| 620 |
+
\ the zero-indexed coordinates of the player, each box, and each target. \n\
|
| 621 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
|
| 622 |
+
\ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
|
| 623 |
+
\ the same direction. \nYou cannot push a box through a wall, and you cannot\
|
| 624 |
+
\ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
|
| 625 |
+
\ || Right || Up</answer>.\n"
|
| 626 |
+
max_tokens: 120
|
| 627 |
+
parallel_friendly: false
|
| 628 |
+
max_workers: 32
|
| 629 |
+
env_config:
|
| 630 |
+
dim_x: 6
|
| 631 |
+
dim_y: 6
|
| 632 |
+
num_boxes: 1
|
| 633 |
+
max_steps: 100
|
| 634 |
+
observation_format: grid_coord
|
| 635 |
+
VisualSimpleSokoban:
|
| 636 |
+
env_type: sokoban
|
| 637 |
+
max_actions_per_traj: 10
|
| 638 |
+
env_instruction: You are solving the Sokoban puzzle. You are the player and you
|
| 639 |
+
need to push all boxes to targets. When you are right next to a box, you can
|
| 640 |
+
push it by moving in the same direction. You cannot push a box through a wall,
|
| 641 |
+
and you cannot pull a box. The answer should be a sequence of actions, like
|
| 642 |
+
<answer>Right || Right || Up</answer>
|
| 643 |
+
max_tokens: 100
|
| 644 |
+
parallel_friendly: false
|
| 645 |
+
max_workers: 32
|
| 646 |
+
env_config:
|
| 647 |
+
dim_x: 6
|
| 648 |
+
dim_y: 6
|
| 649 |
+
num_boxes: 1
|
| 650 |
+
max_steps: 100
|
| 651 |
+
render_mode: rgb_array
|
| 652 |
+
Alfworld:
|
| 653 |
+
env_type: alfworld
|
| 654 |
+
max_actions_per_traj: 50
|
| 655 |
+
parallel_friendly: false
|
| 656 |
+
max_workers: 1
|
| 657 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 658 |
+
|
| 659 |
+
Complete household tasks by navigating and interacting with objects.
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 663 |
+
process MUST be enclosed within <think> </think> tags.
|
| 664 |
+
|
| 665 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 666 |
+
for current step and present it within <answer>...</answer> tags.
|
| 667 |
+
|
| 668 |
+
'
|
| 669 |
+
max_tokens: 512
|
| 670 |
+
env_config:
|
| 671 |
+
eval_dataset: eval_in_distribution
|
| 672 |
+
AlfworldOOD:
|
| 673 |
+
env_type: alfworld
|
| 674 |
+
max_actions_per_traj: 50
|
| 675 |
+
parallel_friendly: false
|
| 676 |
+
max_workers: 1
|
| 677 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 678 |
+
|
| 679 |
+
Complete household tasks by navigating and interacting with objects.
|
| 680 |
+
|
| 681 |
+
|
| 682 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 683 |
+
process MUST be enclosed within <think> </think> tags.
|
| 684 |
+
|
| 685 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 686 |
+
for current step and present it within <answer>...</answer> tags.
|
| 687 |
+
|
| 688 |
+
'
|
| 689 |
+
max_tokens: 512
|
| 690 |
+
env_config:
|
| 691 |
+
eval_dataset: eval_out_of_distribution
|
| 692 |
+
Countdown:
|
| 693 |
+
env_type: countdown
|
| 694 |
+
max_actions_per_traj: 1
|
| 695 |
+
env_instruction: 'You are solving the Countdown puzzle. You should use the num
|
| 696 |
+
list to create an equation that equals the target. Example answer format: <think>
|
| 697 |
+
To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
|
| 698 |
+
= 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
|
| 699 |
+
max_tokens: 100
|
| 700 |
+
parallel_friendly: false
|
| 701 |
+
max_workers: 32
|
| 702 |
+
env_config: null
|
| 703 |
+
Bandit:
|
| 704 |
+
env_type: bandit
|
| 705 |
+
max_actions_per_traj: 1
|
| 706 |
+
env_instruction: ''
|
| 707 |
+
max_tokens: 100
|
| 708 |
+
parallel_friendly: false
|
| 709 |
+
max_workers: 32
|
| 710 |
+
env_config:
|
| 711 |
+
split: train
|
| 712 |
+
BanditTest:
|
| 713 |
+
env_type: bandit
|
| 714 |
+
max_actions_per_traj: 1
|
| 715 |
+
env_instruction: ''
|
| 716 |
+
max_tokens: 100
|
| 717 |
+
parallel_friendly: false
|
| 718 |
+
max_workers: 32
|
| 719 |
+
env_config:
|
| 720 |
+
split: test
|
| 721 |
+
DeepCoder:
|
| 722 |
+
env_type: deepcoder
|
| 723 |
+
max_actions_per_traj: 1
|
| 724 |
+
env_instruction: 'You are solving a coding task. Provide a complete Python function
|
| 725 |
+
solution only. Format: <answer>...</answer>'
|
| 726 |
+
max_tokens: 8000
|
| 727 |
+
parallel_friendly: true
|
| 728 |
+
max_workers: 32
|
| 729 |
+
env_config:
|
| 730 |
+
max_steps: 1
|
| 731 |
+
FrozenLake:
|
| 732 |
+
env_type: frozen_lake
|
| 733 |
+
max_actions_per_traj: 10
|
| 734 |
+
env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
|
| 735 |
+
go to the target. You may move to the unintended direction due to the slippery
|
| 736 |
+
ice. Example answer format: <think>To forbid the hole and go to the target,
|
| 737 |
+
I should go left then go up.</think><answer>Left || Up</answer>'
|
| 738 |
+
max_tokens: 100
|
| 739 |
+
parallel_friendly: false
|
| 740 |
+
max_workers: 32
|
| 741 |
+
env_config:
|
| 742 |
+
success_rate: 0.8
|
| 743 |
+
CoordFrozenLake:
|
| 744 |
+
env_type: frozen_lake
|
| 745 |
+
max_actions_per_traj: 10
|
| 746 |
+
env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
|
| 747 |
+
both a symbol grid and zero-indexed coordinates for the start, goal, player,
|
| 748 |
+
and any holes.
|
| 749 |
+
|
| 750 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner
|
| 751 |
+
(5, 5).
|
| 752 |
+
|
| 753 |
+
Beware that the ice is slippery, so the agent might slide and end up in an unintended
|
| 754 |
+
tile.
|
| 755 |
+
|
| 756 |
+
Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
|
| 757 |
+
|
| 758 |
+
'
|
| 759 |
+
max_tokens: 120
|
| 760 |
+
parallel_friendly: false
|
| 761 |
+
max_workers: 32
|
| 762 |
+
env_config:
|
| 763 |
+
observation_format: grid_coord
|
| 764 |
+
success_rate: 0.8
|
| 765 |
+
MetamathQA:
|
| 766 |
+
env_type: metamathqa
|
| 767 |
+
max_actions_per_traj: 1
|
| 768 |
+
env_instruction: 'You are solving Math problems. '
|
| 769 |
+
max_tokens: 100
|
| 770 |
+
env_config: null
|
| 771 |
+
WebShopFull:
|
| 772 |
+
env_type: webshop
|
| 773 |
+
max_actions_per_traj: 15
|
| 774 |
+
env_instruction: You are an expert autonomous agent operating in the WebShop e‑commerce
|
| 775 |
+
environment.
|
| 776 |
+
max_tokens: 200
|
| 777 |
+
env_config:
|
| 778 |
+
dataset: full
|
| 779 |
+
WebShop:
|
| 780 |
+
env_type: webshop
|
| 781 |
+
max_actions_per_traj: 9
|
| 782 |
+
env_instruction: 'You are browsing an online shop. Based on the instruction, buy
|
| 783 |
+
a product that close to the production description. You need to search, read
|
| 784 |
+
the search results, pick a product, choose the size and color and buy. You should
|
| 785 |
+
only choose action from the available actions list provided later. Example
|
| 786 |
+
process: I need a gingko light and 20x20 pillow cover that is hand painted.
|
| 787 |
+
First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
|
| 788 |
+
with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
|
| 789 |
+
max_tokens: 200
|
| 790 |
+
env_config:
|
| 791 |
+
dataset: small
|
| 792 |
+
Lean:
|
| 793 |
+
env_type: lean
|
| 794 |
+
max_actions_per_traj: 30
|
| 795 |
+
env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
|
| 796 |
+
propose a sequence of tactics that completes the proof. Think step by step about
|
| 797 |
+
which tactics to apply next. Provide tactics separated by '||', for example
|
| 798 |
+
<answer>intro || simp || rfl</answer>.
|
| 799 |
+
max_tokens: 512
|
| 800 |
+
parallel_friendly: true
|
| 801 |
+
max_workers: 32
|
| 802 |
+
env_config: null
|
| 803 |
+
SimpleSudoku:
|
| 804 |
+
env_type: sudoku
|
| 805 |
+
max_actions_per_traj: 20
|
| 806 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 807 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 808 |
+
|
| 809 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 810 |
+
shown as dots (.).
|
| 811 |
+
|
| 812 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 813 |
+
or <answer>2,3,5</answer>
|
| 814 |
+
|
| 815 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 816 |
+
if any occur.
|
| 817 |
+
|
| 818 |
+
'
|
| 819 |
+
max_tokens: 150
|
| 820 |
+
parallel_friendly: false
|
| 821 |
+
max_workers: 32
|
| 822 |
+
env_config:
|
| 823 |
+
grid_size: 9
|
| 824 |
+
difficulty: easy
|
| 825 |
+
render_format: with_feedback
|
| 826 |
+
show_conflicts: true
|
| 827 |
+
show_valid_numbers: true
|
| 828 |
+
max_steps: 81
|
| 829 |
+
MediumSudoku:
|
| 830 |
+
env_type: sudoku
|
| 831 |
+
max_actions_per_traj: 30
|
| 832 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 833 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 834 |
+
|
| 835 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 836 |
+
shown as dots (.).
|
| 837 |
+
|
| 838 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 839 |
+
or <answer>2,3,5</answer>
|
| 840 |
+
|
| 841 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 842 |
+
if any occur.
|
| 843 |
+
|
| 844 |
+
'
|
| 845 |
+
max_tokens: 150
|
| 846 |
+
parallel_friendly: false
|
| 847 |
+
max_workers: 32
|
| 848 |
+
env_config:
|
| 849 |
+
grid_size: 9
|
| 850 |
+
difficulty: medium
|
| 851 |
+
render_format: with_feedback
|
| 852 |
+
show_conflicts: true
|
| 853 |
+
show_valid_numbers: true
|
| 854 |
+
max_steps: 81
|
| 855 |
+
SearchQA:
|
| 856 |
+
env_type: search
|
| 857 |
+
max_actions_per_traj: 10
|
| 858 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 859 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 860 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 861 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 862 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 863 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 864 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 865 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 866 |
+
\ Platt]</answer>\n"
|
| 867 |
+
max_tokens: 300
|
| 868 |
+
parallel_friendly: true
|
| 869 |
+
max_workers: 32
|
| 870 |
+
env_config:
|
| 871 |
+
max_steps: 10
|
| 872 |
+
max_search_results: 5
|
| 873 |
+
SearchQAMock:
|
| 874 |
+
env_type: search
|
| 875 |
+
max_actions_per_traj: 10
|
| 876 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 877 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 878 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 879 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 880 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 881 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 882 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 883 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 884 |
+
\ Platt]</answer>\n"
|
| 885 |
+
max_tokens: 300
|
| 886 |
+
parallel_friendly: true
|
| 887 |
+
max_workers: 32
|
| 888 |
+
env_config:
|
| 889 |
+
max_steps: 10
|
| 890 |
+
max_search_results: 5
|
| 891 |
+
mock_mode: true
|
| 892 |
+
game_2048:
|
| 893 |
+
env_type: game_2048
|
| 894 |
+
max_actions_per_traj: 700
|
| 895 |
+
env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
|
| 896 |
+
by sliding Up, Right, Down, or Left.
|
| 897 |
+
|
| 898 |
+
If a move is invalid (no tiles move), a small penalty is applied. Respond with
|
| 899 |
+
a single action.
|
| 900 |
+
|
| 901 |
+
Example: <answer>Up</answer>
|
| 902 |
+
|
| 903 |
+
'
|
| 904 |
+
max_tokens: 8192
|
| 905 |
+
env_config: null
|
| 906 |
+
rubikscube:
|
| 907 |
+
env_type: rubikscube
|
| 908 |
+
max_actions_per_traj: 20
|
| 909 |
+
env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
|
| 910 |
+
is to restore the cube so that each of the faces consists of a single, unique
|
| 911 |
+
color.
|
| 912 |
+
|
| 913 |
+
Available actions use standard Singmaster notation for face rotations: U, U'',
|
| 914 |
+
D, D'', L, L'', R, R'', F, F'', B, B''.
|
| 915 |
+
|
| 916 |
+
- Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
|
| 917 |
+
|
| 918 |
+
- Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
|
| 919 |
+
prime ('') means 90° counter-clockwise (e.g., "R''").
|
| 920 |
+
|
| 921 |
+
Respond with a sequence of actions separated by "||".
|
| 922 |
+
|
| 923 |
+
Example: <answer>U</answer>
|
| 924 |
+
|
| 925 |
+
'
|
| 926 |
+
max_tokens: 96
|
| 927 |
+
env_config:
|
| 928 |
+
scramble_depth: 1
|
| 929 |
+
max_steps: 20
|
| 930 |
+
render_mode: text
|
| 931 |
+
system:
|
| 932 |
+
CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
|
| 933 |
+
seed:
|
| 934 |
+
train: 10000
|
| 935 |
+
val: 123
|
| 936 |
+
micro_batch_size_per_gpu: 1
|
| 937 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 938 |
+
ppo_mini_batch_size: 32
|
| 939 |
+
model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box1_rft
|
| 940 |
+
enable_response_mask: true
|
| 941 |
+
grpo_advantage_length_weight: false
|
| 942 |
+
lora:
|
| 943 |
+
rank: 0
|
| 944 |
+
alpha: 64
|
| 945 |
+
target_modules: all-linear
|
| 946 |
+
agent_proxy:
|
| 947 |
+
context_window_mode: full
|
| 948 |
+
max_context_window: -1
|
| 949 |
+
batch_adjust_mode: copy
|
| 950 |
+
max_turn: 5
|
| 951 |
+
action_sep: '||'
|
| 952 |
+
max_actions_per_turn: 2
|
| 953 |
+
use_turn_scores: false
|
| 954 |
+
enable_think: true
|
| 955 |
+
reward_normalization:
|
| 956 |
+
grouping: state
|
| 957 |
+
method: identity
|
| 958 |
+
collapse_detection:
|
| 959 |
+
compute_freq: 5
|
| 960 |
+
micro_batch_size: 128
|
| 961 |
+
first_turn_enabled: true
|
| 962 |
+
multi_turn_enabled: true
|
| 963 |
+
num_samples: 64
|
| 964 |
+
es_manager:
|
| 965 |
+
format_penalty: -0.1
|
| 966 |
+
train:
|
| 967 |
+
env_groups: 8
|
| 968 |
+
group_size: 16
|
| 969 |
+
env_configs:
|
| 970 |
+
tags:
|
| 971 |
+
- SimpleSokoban
|
| 972 |
+
n_groups:
|
| 973 |
+
- 8
|
| 974 |
+
val:
|
| 975 |
+
env_groups: 512
|
| 976 |
+
group_size: 1
|
| 977 |
+
env_configs:
|
| 978 |
+
tags:
|
| 979 |
+
- SimpleSokoban
|
| 980 |
+
n_groups:
|
| 981 |
+
- 512
|
| 982 |
+
ctx_manager:
|
| 983 |
+
generation:
|
| 984 |
+
gen_config:
|
| 985 |
+
response_length: ${actor_rollout_ref.rollout.response_length}
|
| 986 |
+
temperature: ${actor_rollout_ref.rollout.temperature}
|
| 987 |
+
top_p: ${actor_rollout_ref.rollout.top_p}
|
| 988 |
+
top_k: ${actor_rollout_ref.rollout.top_k}
|
| 989 |
+
kwargs: null
|
outputs/2026-05-11/14-33-26/train.log
ADDED
|
File without changes
|
outputs/2026-05-11/17-12-08/.hydra/overrides.yaml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 2 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 3 |
+
- trainer.total_training_steps=1000
|
| 4 |
+
- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box1_rft
|
| 5 |
+
- trainer.save_freq=1000
|
| 6 |
+
- trainer.default_local_dir=/mnt/general/wanghy/RAGEN_v2/saves/qwen3b_it_sokoban1_rft_rl
|
outputs/2026-05-11/19-32-33/train.log
ADDED
|
File without changes
|
outputs/2026-05-12/09-55-39/.hydra/config.yaml
ADDED
|
@@ -0,0 +1,989 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
actor_rollout_ref:
|
| 2 |
+
actor:
|
| 3 |
+
optim:
|
| 4 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 5 |
+
lr: 1.0e-06
|
| 6 |
+
lr_warmup_steps_ratio: 0.0
|
| 7 |
+
total_training_steps: -1
|
| 8 |
+
weight_decay: 0.01
|
| 9 |
+
lr_warmup_steps: -1
|
| 10 |
+
betas:
|
| 11 |
+
- 0.9
|
| 12 |
+
- 0.999
|
| 13 |
+
clip_grad: 1.0
|
| 14 |
+
min_lr_ratio: 0.0
|
| 15 |
+
num_cycles: 0.5
|
| 16 |
+
warmup_style: constant
|
| 17 |
+
fsdp_config:
|
| 18 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 19 |
+
wrap_policy:
|
| 20 |
+
min_num_params: 0
|
| 21 |
+
param_offload: false
|
| 22 |
+
optimizer_offload: false
|
| 23 |
+
offload_policy: false
|
| 24 |
+
reshard_after_forward: true
|
| 25 |
+
fsdp_size: -1
|
| 26 |
+
forward_prefetch: false
|
| 27 |
+
model_dtype: fp32
|
| 28 |
+
use_orig_params: false
|
| 29 |
+
ulysses_sequence_parallel_size: 1
|
| 30 |
+
entropy_from_logits_with_chunking: false
|
| 31 |
+
use_torch_compile: true
|
| 32 |
+
entropy_checkpointing: false
|
| 33 |
+
forward_only: false
|
| 34 |
+
strategy: fsdp
|
| 35 |
+
_target_: verl.workers.config.FSDPActorConfig
|
| 36 |
+
strategy: fsdp
|
| 37 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 38 |
+
ppo_micro_batch_size: null
|
| 39 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 40 |
+
use_dynamic_bsz: false
|
| 41 |
+
ppo_max_token_len_per_gpu: 16384
|
| 42 |
+
clip_ratio: 0.2
|
| 43 |
+
clip_ratio_low: 0.2
|
| 44 |
+
clip_ratio_high: 0.28
|
| 45 |
+
freeze_vision_tower: false
|
| 46 |
+
policy_loss:
|
| 47 |
+
_target_: verl.workers.config.PolicyLossConfig
|
| 48 |
+
loss_mode: vanilla
|
| 49 |
+
clip_cov_ratio: 0.0002
|
| 50 |
+
clip_cov_lb: 1.0
|
| 51 |
+
clip_cov_ub: 5.0
|
| 52 |
+
kl_cov_ratio: 0.0002
|
| 53 |
+
ppo_kl_coef: 0.1
|
| 54 |
+
clip_ratio_c: 3.0
|
| 55 |
+
loss_agg_mode: token-mean
|
| 56 |
+
entropy_coeff: 0.001
|
| 57 |
+
tis_imp_ratio_cap: -1
|
| 58 |
+
use_kl_loss: false
|
| 59 |
+
use_torch_compile: true
|
| 60 |
+
kl_loss_coef: 0.0
|
| 61 |
+
kl_loss_type: kl
|
| 62 |
+
ppo_epochs: 1
|
| 63 |
+
shuffle: false
|
| 64 |
+
checkpoint:
|
| 65 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 66 |
+
save_contents:
|
| 67 |
+
- model
|
| 68 |
+
- optimizer
|
| 69 |
+
- extra
|
| 70 |
+
load_contents: ${.save_contents}
|
| 71 |
+
async_save: false
|
| 72 |
+
use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
|
| 73 |
+
profiler:
|
| 74 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 75 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 76 |
+
enable: false
|
| 77 |
+
all_ranks: false
|
| 78 |
+
ranks: []
|
| 79 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 80 |
+
tool_config:
|
| 81 |
+
nsys:
|
| 82 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 83 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 84 |
+
npu:
|
| 85 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 86 |
+
contents: []
|
| 87 |
+
level: level1
|
| 88 |
+
analysis: true
|
| 89 |
+
discrete: false
|
| 90 |
+
torch:
|
| 91 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 92 |
+
step_start: 0
|
| 93 |
+
step_end: null
|
| 94 |
+
torch_memory:
|
| 95 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 96 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 97 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 98 |
+
grad_clip: 1.0
|
| 99 |
+
ulysses_sequence_parallel_size: 1
|
| 100 |
+
entropy_from_logits_with_chunking: false
|
| 101 |
+
entropy_checkpointing: false
|
| 102 |
+
use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
|
| 103 |
+
use_ref: true
|
| 104 |
+
grpo_advantage_length_weight: ${grpo_advantage_length_weight}
|
| 105 |
+
filter_loss_scaling: none
|
| 106 |
+
ref:
|
| 107 |
+
strategy: ${actor_rollout_ref.actor.strategy}
|
| 108 |
+
use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
|
| 109 |
+
log_prob_micro_batch_size: null
|
| 110 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 111 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 112 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 113 |
+
profiler:
|
| 114 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 115 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 116 |
+
enable: false
|
| 117 |
+
all_ranks: false
|
| 118 |
+
ranks: []
|
| 119 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 120 |
+
tool_config:
|
| 121 |
+
nsys:
|
| 122 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 123 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 124 |
+
npu:
|
| 125 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 126 |
+
contents: []
|
| 127 |
+
level: level1
|
| 128 |
+
analysis: true
|
| 129 |
+
discrete: false
|
| 130 |
+
torch:
|
| 131 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 132 |
+
step_start: 0
|
| 133 |
+
step_end: null
|
| 134 |
+
torch_memory:
|
| 135 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 136 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 137 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 138 |
+
fsdp_config:
|
| 139 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 140 |
+
wrap_policy:
|
| 141 |
+
min_num_params: 0
|
| 142 |
+
param_offload: false
|
| 143 |
+
optimizer_offload: false
|
| 144 |
+
offload_policy: false
|
| 145 |
+
reshard_after_forward: true
|
| 146 |
+
fsdp_size: -1
|
| 147 |
+
forward_prefetch: false
|
| 148 |
+
model_dtype: fp32
|
| 149 |
+
use_orig_params: false
|
| 150 |
+
ulysses_sequence_parallel_size: 1
|
| 151 |
+
entropy_from_logits_with_chunking: false
|
| 152 |
+
use_torch_compile: true
|
| 153 |
+
entropy_checkpointing: false
|
| 154 |
+
forward_only: false
|
| 155 |
+
strategy: fsdp
|
| 156 |
+
model: null
|
| 157 |
+
ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
|
| 158 |
+
entropy_from_logits_with_chunking: false
|
| 159 |
+
entropy_checkpointing: false
|
| 160 |
+
rollout:
|
| 161 |
+
_target_: verl.workers.config.RolloutConfig
|
| 162 |
+
name: vllm
|
| 163 |
+
mode: sync
|
| 164 |
+
temperature: 1
|
| 165 |
+
top_k: -1
|
| 166 |
+
top_p: 1
|
| 167 |
+
prompt_length: 1
|
| 168 |
+
response_length: 400
|
| 169 |
+
dtype: bfloat16
|
| 170 |
+
gpu_memory_utilization: 0.8
|
| 171 |
+
ignore_eos: false
|
| 172 |
+
enforce_eager: true
|
| 173 |
+
cudagraph_capture_sizes: null
|
| 174 |
+
free_cache_engine: true
|
| 175 |
+
tensor_model_parallel_size: 1
|
| 176 |
+
data_parallel_size: 1
|
| 177 |
+
expert_parallel_size: 1
|
| 178 |
+
max_num_batched_tokens: 16384
|
| 179 |
+
max_model_len: 16384
|
| 180 |
+
max_num_seqs: 1024
|
| 181 |
+
enable_chunked_prefill: true
|
| 182 |
+
enable_prefix_caching: true
|
| 183 |
+
load_format: auto
|
| 184 |
+
log_prob_micro_batch_size: null
|
| 185 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 186 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 187 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 188 |
+
disable_log_stats: true
|
| 189 |
+
do_sample: true
|
| 190 |
+
'n': 1
|
| 191 |
+
over_sample_rate: 0
|
| 192 |
+
multi_stage_wake_up: false
|
| 193 |
+
engine_kwargs:
|
| 194 |
+
vllm: {}
|
| 195 |
+
sglang: {}
|
| 196 |
+
val_kwargs:
|
| 197 |
+
_target_: verl.workers.config.SamplingConfig
|
| 198 |
+
top_k: -1
|
| 199 |
+
top_p: 1.0
|
| 200 |
+
temperature: 0.5
|
| 201 |
+
'n': 1
|
| 202 |
+
do_sample: true
|
| 203 |
+
multi_turn:
|
| 204 |
+
_target_: verl.workers.config.MultiTurnConfig
|
| 205 |
+
enable: false
|
| 206 |
+
max_assistant_turns: null
|
| 207 |
+
tool_config_path: null
|
| 208 |
+
max_user_turns: null
|
| 209 |
+
max_parallel_calls: 1
|
| 210 |
+
max_tool_response_length: 256
|
| 211 |
+
tool_response_truncate_side: middle
|
| 212 |
+
interaction_config_path: null
|
| 213 |
+
use_inference_chat_template: false
|
| 214 |
+
tokenization_sanity_check_mode: strict
|
| 215 |
+
format: hermes
|
| 216 |
+
num_repeat_rollouts: null
|
| 217 |
+
calculate_log_probs: false
|
| 218 |
+
agent:
|
| 219 |
+
_target_: verl.workers.config.AgentLoopConfig
|
| 220 |
+
num_workers: 8
|
| 221 |
+
agent_loop_config_path: null
|
| 222 |
+
custom_async_server:
|
| 223 |
+
_target_: verl.workers.config.CustomAsyncServerConfig
|
| 224 |
+
path: null
|
| 225 |
+
name: null
|
| 226 |
+
update_weights_bucket_megabytes: 512
|
| 227 |
+
trace:
|
| 228 |
+
_target_: verl.workers.config.TraceConfig
|
| 229 |
+
backend: null
|
| 230 |
+
token2text: false
|
| 231 |
+
skip_rollout: false
|
| 232 |
+
skip_dump_dir: /tmp/rollout_dump
|
| 233 |
+
skip_tokenizer_init: true
|
| 234 |
+
profiler:
|
| 235 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 236 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 237 |
+
enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
|
| 238 |
+
all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
|
| 239 |
+
ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
|
| 240 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 241 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 242 |
+
layered_summon: false
|
| 243 |
+
rollout_filter_value: 0.9
|
| 244 |
+
rollout_filter_strategy: top_p
|
| 245 |
+
rollout_filter_type: largest
|
| 246 |
+
rollout_filter_include_zero: true
|
| 247 |
+
rollout_filter_top_p_prob_mode: linear
|
| 248 |
+
rollout_filter_selection_eps: 0.01
|
| 249 |
+
rollout_filter_empty_stop_steps: 5
|
| 250 |
+
rollout_filter_metric: reward_variance
|
| 251 |
+
gradient_analysis_num_buckets: 6
|
| 252 |
+
gradient_analysis_bucket_mode: quantile
|
| 253 |
+
model:
|
| 254 |
+
_target_: verl.workers.config.HFModelConfig
|
| 255 |
+
path: ${model_path}
|
| 256 |
+
hf_config_path: null
|
| 257 |
+
tokenizer_path: null
|
| 258 |
+
use_shm: false
|
| 259 |
+
trust_remote_code: false
|
| 260 |
+
custom_chat_template: null
|
| 261 |
+
external_lib: null
|
| 262 |
+
override_config: {}
|
| 263 |
+
enable_gradient_checkpointing: true
|
| 264 |
+
enable_activation_offload: false
|
| 265 |
+
use_remove_padding: false
|
| 266 |
+
lora_rank: ${lora.rank}
|
| 267 |
+
lora_alpha: ${lora.alpha}
|
| 268 |
+
target_modules: ${lora.target_modules}
|
| 269 |
+
exclude_modules: null
|
| 270 |
+
use_liger: false
|
| 271 |
+
use_fused_kernels: false
|
| 272 |
+
fused_kernel_options:
|
| 273 |
+
impl_backend: torch
|
| 274 |
+
hybrid_engine: true
|
| 275 |
+
nccl_timeout: 600
|
| 276 |
+
data:
|
| 277 |
+
tokenizer: null
|
| 278 |
+
use_shm: false
|
| 279 |
+
train_files: ~/data/rlhf/gsm8k/train.parquet
|
| 280 |
+
val_files: ~/data/rlhf/gsm8k/test.parquet
|
| 281 |
+
prompt_key: prompt
|
| 282 |
+
reward_fn_key: data_source
|
| 283 |
+
max_prompt_length: null
|
| 284 |
+
max_response_length: null
|
| 285 |
+
train_batch_size: null
|
| 286 |
+
val_batch_size: null
|
| 287 |
+
return_raw_input_ids: false
|
| 288 |
+
return_raw_chat: false
|
| 289 |
+
return_full_prompt: false
|
| 290 |
+
shuffle: true
|
| 291 |
+
dataloader_num_workers: 8
|
| 292 |
+
validation_shuffle: false
|
| 293 |
+
filter_overlong_prompts: false
|
| 294 |
+
filter_overlong_prompts_workers: 1
|
| 295 |
+
truncation: error
|
| 296 |
+
image_key: images
|
| 297 |
+
video_key: videos
|
| 298 |
+
trust_remote_code: false
|
| 299 |
+
custom_cls:
|
| 300 |
+
path: null
|
| 301 |
+
name: null
|
| 302 |
+
return_multi_modal_inputs: true
|
| 303 |
+
sampler:
|
| 304 |
+
class_path: null
|
| 305 |
+
class_name: null
|
| 306 |
+
datagen:
|
| 307 |
+
path: null
|
| 308 |
+
name: null
|
| 309 |
+
apply_chat_template_kwargs: {}
|
| 310 |
+
critic:
|
| 311 |
+
optim:
|
| 312 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 313 |
+
lr: 1.0e-05
|
| 314 |
+
lr_warmup_steps_ratio: 0.0
|
| 315 |
+
total_training_steps: -1
|
| 316 |
+
weight_decay: 0.01
|
| 317 |
+
lr_warmup_steps: -1
|
| 318 |
+
betas:
|
| 319 |
+
- 0.9
|
| 320 |
+
- 0.999
|
| 321 |
+
clip_grad: 1.0
|
| 322 |
+
min_lr_ratio: 0.0
|
| 323 |
+
num_cycles: 0.5
|
| 324 |
+
warmup_style: constant
|
| 325 |
+
model:
|
| 326 |
+
fsdp_config:
|
| 327 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 328 |
+
wrap_policy:
|
| 329 |
+
min_num_params: 0
|
| 330 |
+
param_offload: false
|
| 331 |
+
optimizer_offload: false
|
| 332 |
+
offload_policy: false
|
| 333 |
+
reshard_after_forward: true
|
| 334 |
+
fsdp_size: -1
|
| 335 |
+
forward_prefetch: false
|
| 336 |
+
model_dtype: fp32
|
| 337 |
+
use_orig_params: false
|
| 338 |
+
ulysses_sequence_parallel_size: 1
|
| 339 |
+
entropy_from_logits_with_chunking: false
|
| 340 |
+
use_torch_compile: true
|
| 341 |
+
entropy_checkpointing: false
|
| 342 |
+
forward_only: false
|
| 343 |
+
strategy: fsdp
|
| 344 |
+
path: ${model_path}
|
| 345 |
+
tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
|
| 346 |
+
override_config: {}
|
| 347 |
+
external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
|
| 348 |
+
trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
|
| 349 |
+
_target_: verl.workers.config.FSDPCriticModelCfg
|
| 350 |
+
use_shm: false
|
| 351 |
+
enable_gradient_checkpointing: true
|
| 352 |
+
enable_activation_offload: false
|
| 353 |
+
use_remove_padding: false
|
| 354 |
+
lora_rank: ${lora.rank}
|
| 355 |
+
lora_alpha: ${lora.alpha}
|
| 356 |
+
target_modules: ${lora.target_modules}
|
| 357 |
+
_target_: verl.workers.config.FSDPCriticConfig
|
| 358 |
+
rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
|
| 359 |
+
strategy: fsdp
|
| 360 |
+
enable: null
|
| 361 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 362 |
+
ppo_micro_batch_size: null
|
| 363 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 364 |
+
use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 365 |
+
ppo_max_token_len_per_gpu: 32768
|
| 366 |
+
forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
|
| 367 |
+
ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
|
| 368 |
+
shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
|
| 369 |
+
cliprange_value: 0.5
|
| 370 |
+
loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
|
| 371 |
+
checkpoint:
|
| 372 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 373 |
+
save_contents:
|
| 374 |
+
- model
|
| 375 |
+
- optimizer
|
| 376 |
+
- extra
|
| 377 |
+
load_contents: ${.save_contents}
|
| 378 |
+
async_save: false
|
| 379 |
+
profiler:
|
| 380 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 381 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 382 |
+
enable: false
|
| 383 |
+
all_ranks: false
|
| 384 |
+
ranks: []
|
| 385 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 386 |
+
tool_config:
|
| 387 |
+
nsys:
|
| 388 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 389 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 390 |
+
npu:
|
| 391 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 392 |
+
contents: []
|
| 393 |
+
level: level1
|
| 394 |
+
analysis: true
|
| 395 |
+
discrete: false
|
| 396 |
+
torch:
|
| 397 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 398 |
+
step_start: 0
|
| 399 |
+
step_end: null
|
| 400 |
+
torch_memory:
|
| 401 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 402 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 403 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 404 |
+
forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
|
| 405 |
+
forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
|
| 406 |
+
ulysses_sequence_parallel_size: 1
|
| 407 |
+
grad_clip: 1.0
|
| 408 |
+
reward_model:
|
| 409 |
+
enable: false
|
| 410 |
+
enable_resource_pool: false
|
| 411 |
+
n_gpus_per_node: 0
|
| 412 |
+
nnodes: 0
|
| 413 |
+
strategy: fsdp
|
| 414 |
+
model:
|
| 415 |
+
input_tokenizer: ${actor_rollout_ref.model.path}
|
| 416 |
+
path: ~/models/FsfairX-LLaMA3-RM-v0.1
|
| 417 |
+
external_lib: ${actor_rollout_ref.model.external_lib}
|
| 418 |
+
trust_remote_code: false
|
| 419 |
+
use_shm: false
|
| 420 |
+
use_remove_padding: false
|
| 421 |
+
use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
|
| 422 |
+
fsdp_config:
|
| 423 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 424 |
+
wrap_policy:
|
| 425 |
+
min_num_params: 0
|
| 426 |
+
param_offload: false
|
| 427 |
+
reshard_after_forward: true
|
| 428 |
+
fsdp_size: -1
|
| 429 |
+
forward_prefetch: false
|
| 430 |
+
micro_batch_size: null
|
| 431 |
+
micro_batch_size_per_gpu: null
|
| 432 |
+
max_length: null
|
| 433 |
+
use_dynamic_bsz: ${critic.use_dynamic_bsz}
|
| 434 |
+
forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
|
| 435 |
+
reward_manager: naive
|
| 436 |
+
launch_reward_fn_async: false
|
| 437 |
+
sandbox_fusion:
|
| 438 |
+
url: null
|
| 439 |
+
max_concurrent: 64
|
| 440 |
+
memory_limit_mb: 1024
|
| 441 |
+
profiler:
|
| 442 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 443 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 444 |
+
enable: false
|
| 445 |
+
all_ranks: false
|
| 446 |
+
ranks: []
|
| 447 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 448 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 449 |
+
ulysses_sequence_parallel_size: 1
|
| 450 |
+
custom_reward_function:
|
| 451 |
+
path: null
|
| 452 |
+
name: compute_score
|
| 453 |
+
algorithm:
|
| 454 |
+
_target_: verl.trainer.config.AlgoConfig
|
| 455 |
+
gamma: 1.0
|
| 456 |
+
lam: 1.0
|
| 457 |
+
adv_estimator: gae
|
| 458 |
+
norm_adv_by_std_in_grpo: true
|
| 459 |
+
use_kl_in_reward: false
|
| 460 |
+
kl_penalty: kl
|
| 461 |
+
kl_ctrl:
|
| 462 |
+
_target_: verl.trainer.config.KLControlConfig
|
| 463 |
+
type: fixed
|
| 464 |
+
kl_coef: 0.0
|
| 465 |
+
horizon: 10000
|
| 466 |
+
target_kl: 0.1
|
| 467 |
+
use_pf_ppo: false
|
| 468 |
+
pf_ppo:
|
| 469 |
+
reweight_method: pow
|
| 470 |
+
weight_pow: 2.0
|
| 471 |
+
high_level_gamma: 0.95
|
| 472 |
+
bi_level_gae: false
|
| 473 |
+
zero_task_advantage: false
|
| 474 |
+
soft_advantage_reweight: false
|
| 475 |
+
trainer:
|
| 476 |
+
balance_batch: true
|
| 477 |
+
total_epochs: 30
|
| 478 |
+
total_training_steps: 1000
|
| 479 |
+
project_name: ragen
|
| 480 |
+
experiment_name: sokoban-main
|
| 481 |
+
logger:
|
| 482 |
+
- console
|
| 483 |
+
- wandb
|
| 484 |
+
log_val_generations: 0
|
| 485 |
+
rollout_data_dir: null
|
| 486 |
+
validation_data_dir: null
|
| 487 |
+
nnodes: 1
|
| 488 |
+
n_gpus_per_node: 8
|
| 489 |
+
save_freq: -1
|
| 490 |
+
esi_redundant_time: 0
|
| 491 |
+
resume_mode: auto
|
| 492 |
+
resume_from_path: null
|
| 493 |
+
val_before_train: true
|
| 494 |
+
val_only: false
|
| 495 |
+
test_freq: 10
|
| 496 |
+
critic_warmup: 0
|
| 497 |
+
default_hdfs_dir: null
|
| 498 |
+
del_local_ckpt_after_load: false
|
| 499 |
+
default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
|
| 500 |
+
max_actor_ckpt_to_keep: 1
|
| 501 |
+
max_critic_ckpt_to_keep: 1
|
| 502 |
+
ray_wait_register_center_timeout: 300
|
| 503 |
+
device: cuda
|
| 504 |
+
use_legacy_worker_impl: auto
|
| 505 |
+
local_log_dir: results/
|
| 506 |
+
validation_steps: 1
|
| 507 |
+
generations_to_log_to_wandb:
|
| 508 |
+
val: 20
|
| 509 |
+
log_group_rv_table: false
|
| 510 |
+
gradient_analysis_mode: false
|
| 511 |
+
gradient_analysis_every: 50
|
| 512 |
+
gradient_analysis_env_groups: null
|
| 513 |
+
gradient_analysis_group_size: null
|
| 514 |
+
gradient_analysis_log_prefilter: false
|
| 515 |
+
gradient_analysis_only: false
|
| 516 |
+
exit_after_gradient_analysis: false
|
| 517 |
+
global_profiler:
|
| 518 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 519 |
+
tool: null
|
| 520 |
+
steps: null
|
| 521 |
+
profile_continuous_steps: false
|
| 522 |
+
save_path: outputs/profile
|
| 523 |
+
global_tool_config:
|
| 524 |
+
nsys:
|
| 525 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 526 |
+
discrete: false
|
| 527 |
+
controller_nsight_options:
|
| 528 |
+
trace: cuda,nvtx,cublas,ucx
|
| 529 |
+
cuda-memory-usage: 'true'
|
| 530 |
+
cuda-graph-trace: graph
|
| 531 |
+
worker_nsight_options:
|
| 532 |
+
trace: cuda,nvtx,cublas,ucx
|
| 533 |
+
cuda-memory-usage: 'true'
|
| 534 |
+
cuda-graph-trace: graph
|
| 535 |
+
capture-range: cudaProfilerApi
|
| 536 |
+
capture-range-end: null
|
| 537 |
+
kill: none
|
| 538 |
+
torch_memory:
|
| 539 |
+
trace_alloc_max_entries: 100000
|
| 540 |
+
stack_depth: 32
|
| 541 |
+
context: all
|
| 542 |
+
stacks: all
|
| 543 |
+
kw_args: {}
|
| 544 |
+
ray_kwargs:
|
| 545 |
+
ray_init:
|
| 546 |
+
num_cpus: null
|
| 547 |
+
timeline_json_file: null
|
| 548 |
+
custom_envs:
|
| 549 |
+
SimpleSokoban:
|
| 550 |
+
env_type: sokoban
|
| 551 |
+
max_actions_per_traj: 10
|
| 552 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 553 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 554 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 555 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 556 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 557 |
+
max_tokens: 100
|
| 558 |
+
parallel_friendly: false
|
| 559 |
+
max_workers: 32
|
| 560 |
+
env_config:
|
| 561 |
+
dim_x: 6
|
| 562 |
+
dim_y: 6
|
| 563 |
+
num_boxes: 1
|
| 564 |
+
max_steps: 100
|
| 565 |
+
LargerSokoban:
|
| 566 |
+
env_type: sokoban
|
| 567 |
+
max_actions_per_traj: 10
|
| 568 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 569 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 570 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 571 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 572 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 573 |
+
max_tokens: 100
|
| 574 |
+
parallel_friendly: false
|
| 575 |
+
max_workers: 32
|
| 576 |
+
env_config:
|
| 577 |
+
dim_x: 8
|
| 578 |
+
dim_y: 8
|
| 579 |
+
num_boxes: 2
|
| 580 |
+
max_steps: 100
|
| 581 |
+
search_depth: 10
|
| 582 |
+
SokobanDifferentGridVocab:
|
| 583 |
+
env_type: sokoban
|
| 584 |
+
max_actions_per_traj: 10
|
| 585 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 586 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 587 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 588 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 589 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 590 |
+
max_tokens: 100
|
| 591 |
+
parallel_friendly: false
|
| 592 |
+
max_workers: 32
|
| 593 |
+
env_config:
|
| 594 |
+
search_depth: 30
|
| 595 |
+
dim_x: 6
|
| 596 |
+
dim_y: 6
|
| 597 |
+
num_boxes: 1
|
| 598 |
+
max_steps: 100
|
| 599 |
+
grid_lookup:
|
| 600 |
+
0: W
|
| 601 |
+
1: .
|
| 602 |
+
2: G
|
| 603 |
+
3: C
|
| 604 |
+
4: B
|
| 605 |
+
5: A
|
| 606 |
+
6: '@'
|
| 607 |
+
grid_vocab:
|
| 608 |
+
W: wall
|
| 609 |
+
.: empty
|
| 610 |
+
G: target
|
| 611 |
+
C: box on target
|
| 612 |
+
B: box
|
| 613 |
+
A: player
|
| 614 |
+
'@': player on target
|
| 615 |
+
CoordSokoban:
|
| 616 |
+
env_type: sokoban
|
| 617 |
+
max_actions_per_traj: 10
|
| 618 |
+
env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
|
| 619 |
+
\ need to push all boxes to targets.\nYou are provided with a symbol grid and\
|
| 620 |
+
\ the zero-indexed coordinates of the player, each box, and each target. \n\
|
| 621 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
|
| 622 |
+
\ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
|
| 623 |
+
\ the same direction. \nYou cannot push a box through a wall, and you cannot\
|
| 624 |
+
\ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
|
| 625 |
+
\ || Right || Up</answer>.\n"
|
| 626 |
+
max_tokens: 120
|
| 627 |
+
parallel_friendly: false
|
| 628 |
+
max_workers: 32
|
| 629 |
+
env_config:
|
| 630 |
+
dim_x: 6
|
| 631 |
+
dim_y: 6
|
| 632 |
+
num_boxes: 1
|
| 633 |
+
max_steps: 100
|
| 634 |
+
observation_format: grid_coord
|
| 635 |
+
VisualSimpleSokoban:
|
| 636 |
+
env_type: sokoban
|
| 637 |
+
max_actions_per_traj: 10
|
| 638 |
+
env_instruction: You are solving the Sokoban puzzle. You are the player and you
|
| 639 |
+
need to push all boxes to targets. When you are right next to a box, you can
|
| 640 |
+
push it by moving in the same direction. You cannot push a box through a wall,
|
| 641 |
+
and you cannot pull a box. The answer should be a sequence of actions, like
|
| 642 |
+
<answer>Right || Right || Up</answer>
|
| 643 |
+
max_tokens: 100
|
| 644 |
+
parallel_friendly: false
|
| 645 |
+
max_workers: 32
|
| 646 |
+
env_config:
|
| 647 |
+
dim_x: 6
|
| 648 |
+
dim_y: 6
|
| 649 |
+
num_boxes: 1
|
| 650 |
+
max_steps: 100
|
| 651 |
+
render_mode: rgb_array
|
| 652 |
+
Alfworld:
|
| 653 |
+
env_type: alfworld
|
| 654 |
+
max_actions_per_traj: 50
|
| 655 |
+
parallel_friendly: false
|
| 656 |
+
max_workers: 1
|
| 657 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 658 |
+
|
| 659 |
+
Complete household tasks by navigating and interacting with objects.
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 663 |
+
process MUST be enclosed within <think> </think> tags.
|
| 664 |
+
|
| 665 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 666 |
+
for current step and present it within <answer>...</answer> tags.
|
| 667 |
+
|
| 668 |
+
'
|
| 669 |
+
max_tokens: 512
|
| 670 |
+
env_config:
|
| 671 |
+
eval_dataset: eval_in_distribution
|
| 672 |
+
AlfworldOOD:
|
| 673 |
+
env_type: alfworld
|
| 674 |
+
max_actions_per_traj: 50
|
| 675 |
+
parallel_friendly: false
|
| 676 |
+
max_workers: 1
|
| 677 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 678 |
+
|
| 679 |
+
Complete household tasks by navigating and interacting with objects.
|
| 680 |
+
|
| 681 |
+
|
| 682 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 683 |
+
process MUST be enclosed within <think> </think> tags.
|
| 684 |
+
|
| 685 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 686 |
+
for current step and present it within <answer>...</answer> tags.
|
| 687 |
+
|
| 688 |
+
'
|
| 689 |
+
max_tokens: 512
|
| 690 |
+
env_config:
|
| 691 |
+
eval_dataset: eval_out_of_distribution
|
| 692 |
+
Countdown:
|
| 693 |
+
env_type: countdown
|
| 694 |
+
max_actions_per_traj: 1
|
| 695 |
+
env_instruction: 'You are solving the Countdown puzzle. You should use the num
|
| 696 |
+
list to create an equation that equals the target. Example answer format: <think>
|
| 697 |
+
To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
|
| 698 |
+
= 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
|
| 699 |
+
max_tokens: 100
|
| 700 |
+
parallel_friendly: false
|
| 701 |
+
max_workers: 32
|
| 702 |
+
env_config: null
|
| 703 |
+
Bandit:
|
| 704 |
+
env_type: bandit
|
| 705 |
+
max_actions_per_traj: 1
|
| 706 |
+
env_instruction: ''
|
| 707 |
+
max_tokens: 100
|
| 708 |
+
parallel_friendly: false
|
| 709 |
+
max_workers: 32
|
| 710 |
+
env_config:
|
| 711 |
+
split: train
|
| 712 |
+
BanditTest:
|
| 713 |
+
env_type: bandit
|
| 714 |
+
max_actions_per_traj: 1
|
| 715 |
+
env_instruction: ''
|
| 716 |
+
max_tokens: 100
|
| 717 |
+
parallel_friendly: false
|
| 718 |
+
max_workers: 32
|
| 719 |
+
env_config:
|
| 720 |
+
split: test
|
| 721 |
+
DeepCoder:
|
| 722 |
+
env_type: deepcoder
|
| 723 |
+
max_actions_per_traj: 1
|
| 724 |
+
env_instruction: 'You are solving a coding task. Provide a complete Python function
|
| 725 |
+
solution only. Format: <answer>...</answer>'
|
| 726 |
+
max_tokens: 8000
|
| 727 |
+
parallel_friendly: true
|
| 728 |
+
max_workers: 32
|
| 729 |
+
env_config:
|
| 730 |
+
max_steps: 1
|
| 731 |
+
FrozenLake:
|
| 732 |
+
env_type: frozen_lake
|
| 733 |
+
max_actions_per_traj: 10
|
| 734 |
+
env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
|
| 735 |
+
go to the target. You may move to the unintended direction due to the slippery
|
| 736 |
+
ice. Example answer format: <think>To forbid the hole and go to the target,
|
| 737 |
+
I should go left then go up.</think><answer>Left || Up</answer>'
|
| 738 |
+
max_tokens: 100
|
| 739 |
+
parallel_friendly: false
|
| 740 |
+
max_workers: 32
|
| 741 |
+
env_config:
|
| 742 |
+
success_rate: 0.8
|
| 743 |
+
CoordFrozenLake:
|
| 744 |
+
env_type: frozen_lake
|
| 745 |
+
max_actions_per_traj: 10
|
| 746 |
+
env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
|
| 747 |
+
both a symbol grid and zero-indexed coordinates for the start, goal, player,
|
| 748 |
+
and any holes.
|
| 749 |
+
|
| 750 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner
|
| 751 |
+
(5, 5).
|
| 752 |
+
|
| 753 |
+
Beware that the ice is slippery, so the agent might slide and end up in an unintended
|
| 754 |
+
tile.
|
| 755 |
+
|
| 756 |
+
Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
|
| 757 |
+
|
| 758 |
+
'
|
| 759 |
+
max_tokens: 120
|
| 760 |
+
parallel_friendly: false
|
| 761 |
+
max_workers: 32
|
| 762 |
+
env_config:
|
| 763 |
+
observation_format: grid_coord
|
| 764 |
+
success_rate: 0.8
|
| 765 |
+
MetamathQA:
|
| 766 |
+
env_type: metamathqa
|
| 767 |
+
max_actions_per_traj: 1
|
| 768 |
+
env_instruction: 'You are solving Math problems. '
|
| 769 |
+
max_tokens: 100
|
| 770 |
+
env_config: null
|
| 771 |
+
WebShopFull:
|
| 772 |
+
env_type: webshop
|
| 773 |
+
max_actions_per_traj: 15
|
| 774 |
+
env_instruction: You are an expert autonomous agent operating in the WebShop e‑commerce
|
| 775 |
+
environment.
|
| 776 |
+
max_tokens: 200
|
| 777 |
+
env_config:
|
| 778 |
+
dataset: full
|
| 779 |
+
WebShop:
|
| 780 |
+
env_type: webshop
|
| 781 |
+
max_actions_per_traj: 9
|
| 782 |
+
env_instruction: 'You are browsing an online shop. Based on the instruction, buy
|
| 783 |
+
a product that close to the production description. You need to search, read
|
| 784 |
+
the search results, pick a product, choose the size and color and buy. You should
|
| 785 |
+
only choose action from the available actions list provided later. Example
|
| 786 |
+
process: I need a gingko light and 20x20 pillow cover that is hand painted.
|
| 787 |
+
First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
|
| 788 |
+
with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
|
| 789 |
+
max_tokens: 200
|
| 790 |
+
env_config:
|
| 791 |
+
dataset: small
|
| 792 |
+
Lean:
|
| 793 |
+
env_type: lean
|
| 794 |
+
max_actions_per_traj: 30
|
| 795 |
+
env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
|
| 796 |
+
propose a sequence of tactics that completes the proof. Think step by step about
|
| 797 |
+
which tactics to apply next. Provide tactics separated by '||', for example
|
| 798 |
+
<answer>intro || simp || rfl</answer>.
|
| 799 |
+
max_tokens: 512
|
| 800 |
+
parallel_friendly: true
|
| 801 |
+
max_workers: 32
|
| 802 |
+
env_config: null
|
| 803 |
+
SimpleSudoku:
|
| 804 |
+
env_type: sudoku
|
| 805 |
+
max_actions_per_traj: 20
|
| 806 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 807 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 808 |
+
|
| 809 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 810 |
+
shown as dots (.).
|
| 811 |
+
|
| 812 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 813 |
+
or <answer>2,3,5</answer>
|
| 814 |
+
|
| 815 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 816 |
+
if any occur.
|
| 817 |
+
|
| 818 |
+
'
|
| 819 |
+
max_tokens: 150
|
| 820 |
+
parallel_friendly: false
|
| 821 |
+
max_workers: 32
|
| 822 |
+
env_config:
|
| 823 |
+
grid_size: 9
|
| 824 |
+
difficulty: easy
|
| 825 |
+
render_format: with_feedback
|
| 826 |
+
show_conflicts: true
|
| 827 |
+
show_valid_numbers: true
|
| 828 |
+
max_steps: 81
|
| 829 |
+
MediumSudoku:
|
| 830 |
+
env_type: sudoku
|
| 831 |
+
max_actions_per_traj: 30
|
| 832 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 833 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 834 |
+
|
| 835 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 836 |
+
shown as dots (.).
|
| 837 |
+
|
| 838 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 839 |
+
or <answer>2,3,5</answer>
|
| 840 |
+
|
| 841 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 842 |
+
if any occur.
|
| 843 |
+
|
| 844 |
+
'
|
| 845 |
+
max_tokens: 150
|
| 846 |
+
parallel_friendly: false
|
| 847 |
+
max_workers: 32
|
| 848 |
+
env_config:
|
| 849 |
+
grid_size: 9
|
| 850 |
+
difficulty: medium
|
| 851 |
+
render_format: with_feedback
|
| 852 |
+
show_conflicts: true
|
| 853 |
+
show_valid_numbers: true
|
| 854 |
+
max_steps: 81
|
| 855 |
+
SearchQA:
|
| 856 |
+
env_type: search
|
| 857 |
+
max_actions_per_traj: 10
|
| 858 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 859 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 860 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 861 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 862 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 863 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 864 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 865 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 866 |
+
\ Platt]</answer>\n"
|
| 867 |
+
max_tokens: 300
|
| 868 |
+
parallel_friendly: true
|
| 869 |
+
max_workers: 32
|
| 870 |
+
env_config:
|
| 871 |
+
max_steps: 10
|
| 872 |
+
max_search_results: 5
|
| 873 |
+
SearchQAMock:
|
| 874 |
+
env_type: search
|
| 875 |
+
max_actions_per_traj: 10
|
| 876 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 877 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 878 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 879 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 880 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 881 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 882 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 883 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 884 |
+
\ Platt]</answer>\n"
|
| 885 |
+
max_tokens: 300
|
| 886 |
+
parallel_friendly: true
|
| 887 |
+
max_workers: 32
|
| 888 |
+
env_config:
|
| 889 |
+
max_steps: 10
|
| 890 |
+
max_search_results: 5
|
| 891 |
+
mock_mode: true
|
| 892 |
+
game_2048:
|
| 893 |
+
env_type: game_2048
|
| 894 |
+
max_actions_per_traj: 700
|
| 895 |
+
env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
|
| 896 |
+
by sliding Up, Right, Down, or Left.
|
| 897 |
+
|
| 898 |
+
If a move is invalid (no tiles move), a small penalty is applied. Respond with
|
| 899 |
+
a single action.
|
| 900 |
+
|
| 901 |
+
Example: <answer>Up</answer>
|
| 902 |
+
|
| 903 |
+
'
|
| 904 |
+
max_tokens: 8192
|
| 905 |
+
env_config: null
|
| 906 |
+
rubikscube:
|
| 907 |
+
env_type: rubikscube
|
| 908 |
+
max_actions_per_traj: 20
|
| 909 |
+
env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
|
| 910 |
+
is to restore the cube so that each of the faces consists of a single, unique
|
| 911 |
+
color.
|
| 912 |
+
|
| 913 |
+
Available actions use standard Singmaster notation for face rotations: U, U'',
|
| 914 |
+
D, D'', L, L'', R, R'', F, F'', B, B''.
|
| 915 |
+
|
| 916 |
+
- Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
|
| 917 |
+
|
| 918 |
+
- Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
|
| 919 |
+
prime ('') means 90° counter-clockwise (e.g., "R''").
|
| 920 |
+
|
| 921 |
+
Respond with a sequence of actions separated by "||".
|
| 922 |
+
|
| 923 |
+
Example: <answer>U</answer>
|
| 924 |
+
|
| 925 |
+
'
|
| 926 |
+
max_tokens: 96
|
| 927 |
+
env_config:
|
| 928 |
+
scramble_depth: 1
|
| 929 |
+
max_steps: 20
|
| 930 |
+
render_mode: text
|
| 931 |
+
system:
|
| 932 |
+
CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
|
| 933 |
+
seed:
|
| 934 |
+
train: 10000
|
| 935 |
+
val: 123
|
| 936 |
+
micro_batch_size_per_gpu: 1
|
| 937 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 938 |
+
ppo_mini_batch_size: 32
|
| 939 |
+
model_path: /mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
| 940 |
+
enable_response_mask: true
|
| 941 |
+
grpo_advantage_length_weight: false
|
| 942 |
+
lora:
|
| 943 |
+
rank: 0
|
| 944 |
+
alpha: 64
|
| 945 |
+
target_modules: all-linear
|
| 946 |
+
agent_proxy:
|
| 947 |
+
context_window_mode: full
|
| 948 |
+
max_context_window: -1
|
| 949 |
+
batch_adjust_mode: copy
|
| 950 |
+
max_turn: 15
|
| 951 |
+
action_sep: '||'
|
| 952 |
+
max_actions_per_turn: 1
|
| 953 |
+
use_turn_scores: false
|
| 954 |
+
enable_think: true
|
| 955 |
+
reward_normalization:
|
| 956 |
+
grouping: state
|
| 957 |
+
method: identity
|
| 958 |
+
collapse_detection:
|
| 959 |
+
compute_freq: 5
|
| 960 |
+
micro_batch_size: 128
|
| 961 |
+
first_turn_enabled: true
|
| 962 |
+
multi_turn_enabled: true
|
| 963 |
+
num_samples: 64
|
| 964 |
+
es_manager:
|
| 965 |
+
format_penalty: -0.1
|
| 966 |
+
train:
|
| 967 |
+
env_groups: 8
|
| 968 |
+
group_size: 16
|
| 969 |
+
env_configs:
|
| 970 |
+
tags:
|
| 971 |
+
- SimpleSokoban
|
| 972 |
+
n_groups:
|
| 973 |
+
- 8
|
| 974 |
+
val:
|
| 975 |
+
env_groups: 512
|
| 976 |
+
group_size: 1
|
| 977 |
+
env_configs:
|
| 978 |
+
tags:
|
| 979 |
+
- SimpleSokoban
|
| 980 |
+
n_groups:
|
| 981 |
+
- 512
|
| 982 |
+
ctx_manager:
|
| 983 |
+
generation:
|
| 984 |
+
gen_config:
|
| 985 |
+
response_length: ${actor_rollout_ref.rollout.response_length}
|
| 986 |
+
temperature: ${actor_rollout_ref.rollout.temperature}
|
| 987 |
+
top_p: ${actor_rollout_ref.rollout.top_p}
|
| 988 |
+
top_k: ${actor_rollout_ref.rollout.top_k}
|
| 989 |
+
kwargs: null
|
outputs/2026-05-12/09-55-39/.hydra/hydra.yaml
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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4 |
+
sweep:
|
| 5 |
+
dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 6 |
+
subdir: ${hydra.job.num}
|
| 7 |
+
launcher:
|
| 8 |
+
_target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
|
| 9 |
+
sweeper:
|
| 10 |
+
_target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
|
| 11 |
+
max_batch_size: null
|
| 12 |
+
params: null
|
| 13 |
+
help:
|
| 14 |
+
app_name: ${hydra.job.name}
|
| 15 |
+
header: '${hydra.help.app_name} is powered by Hydra.
|
| 16 |
+
|
| 17 |
+
'
|
| 18 |
+
footer: 'Powered by Hydra (https://hydra.cc)
|
| 19 |
+
|
| 20 |
+
Use --hydra-help to view Hydra specific help
|
| 21 |
+
|
| 22 |
+
'
|
| 23 |
+
template: '${hydra.help.header}
|
| 24 |
+
|
| 25 |
+
== Configuration groups ==
|
| 26 |
+
|
| 27 |
+
Compose your configuration from those groups (group=option)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
$APP_CONFIG_GROUPS
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
== Config ==
|
| 34 |
+
|
| 35 |
+
Override anything in the config (foo.bar=value)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
$CONFIG
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
${hydra.help.footer}
|
| 42 |
+
|
| 43 |
+
'
|
| 44 |
+
hydra_help:
|
| 45 |
+
template: 'Hydra (${hydra.runtime.version})
|
| 46 |
+
|
| 47 |
+
See https://hydra.cc for more info.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
== Flags ==
|
| 51 |
+
|
| 52 |
+
$FLAGS_HELP
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
== Configuration groups ==
|
| 56 |
+
|
| 57 |
+
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
|
| 58 |
+
to command line)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
$HYDRA_CONFIG_GROUPS
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
Use ''--cfg hydra'' to Show the Hydra config.
|
| 65 |
+
|
| 66 |
+
'
|
| 67 |
+
hydra_help: ???
|
| 68 |
+
hydra_logging:
|
| 69 |
+
version: 1
|
| 70 |
+
formatters:
|
| 71 |
+
simple:
|
| 72 |
+
format: '[%(asctime)s][HYDRA] %(message)s'
|
| 73 |
+
handlers:
|
| 74 |
+
console:
|
| 75 |
+
class: logging.StreamHandler
|
| 76 |
+
formatter: simple
|
| 77 |
+
stream: ext://sys.stdout
|
| 78 |
+
root:
|
| 79 |
+
level: INFO
|
| 80 |
+
handlers:
|
| 81 |
+
- console
|
| 82 |
+
loggers:
|
| 83 |
+
logging_example:
|
| 84 |
+
level: DEBUG
|
| 85 |
+
disable_existing_loggers: false
|
| 86 |
+
job_logging:
|
| 87 |
+
version: 1
|
| 88 |
+
formatters:
|
| 89 |
+
simple:
|
| 90 |
+
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
|
| 91 |
+
handlers:
|
| 92 |
+
console:
|
| 93 |
+
class: logging.StreamHandler
|
| 94 |
+
formatter: simple
|
| 95 |
+
stream: ext://sys.stdout
|
| 96 |
+
file:
|
| 97 |
+
class: logging.FileHandler
|
| 98 |
+
formatter: simple
|
| 99 |
+
filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
|
| 100 |
+
root:
|
| 101 |
+
level: INFO
|
| 102 |
+
handlers:
|
| 103 |
+
- console
|
| 104 |
+
- file
|
| 105 |
+
disable_existing_loggers: false
|
| 106 |
+
env: {}
|
| 107 |
+
mode: RUN
|
| 108 |
+
searchpath:
|
| 109 |
+
- pkg://verl.trainer.config
|
| 110 |
+
callbacks: {}
|
| 111 |
+
output_subdir: .hydra
|
| 112 |
+
overrides:
|
| 113 |
+
hydra:
|
| 114 |
+
- hydra.mode=RUN
|
| 115 |
+
task:
|
| 116 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 117 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 118 |
+
- trainer.total_training_steps=1000
|
| 119 |
+
- model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
| 120 |
+
job:
|
| 121 |
+
name: train
|
| 122 |
+
chdir: null
|
| 123 |
+
override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct,trainer.total_training_steps=1000
|
| 124 |
+
id: ???
|
| 125 |
+
num: ???
|
| 126 |
+
config_name: _2_sokoban
|
| 127 |
+
env_set: {}
|
| 128 |
+
env_copy: []
|
| 129 |
+
config:
|
| 130 |
+
override_dirname:
|
| 131 |
+
kv_sep: '='
|
| 132 |
+
item_sep: ','
|
| 133 |
+
exclude_keys: []
|
| 134 |
+
runtime:
|
| 135 |
+
version: 1.3.2
|
| 136 |
+
version_base: '1.3'
|
| 137 |
+
cwd: /mnt/general/wanghy/RAGEN_v2
|
| 138 |
+
config_sources:
|
| 139 |
+
- path: hydra.conf
|
| 140 |
+
schema: pkg
|
| 141 |
+
provider: hydra
|
| 142 |
+
- path: /mnt/general/wanghy/RAGEN_v2/config
|
| 143 |
+
schema: file
|
| 144 |
+
provider: main
|
| 145 |
+
- path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
|
| 146 |
+
schema: file
|
| 147 |
+
provider: command-line
|
| 148 |
+
- path: verl.trainer.config
|
| 149 |
+
schema: pkg
|
| 150 |
+
provider: hydra.searchpath in main
|
| 151 |
+
- path: ''
|
| 152 |
+
schema: structured
|
| 153 |
+
provider: schema
|
| 154 |
+
output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-05-12/09-55-39
|
| 155 |
+
choices:
|
| 156 |
+
reward_model: dp_reward_model
|
| 157 |
+
critic: dp_critic
|
| 158 |
+
critic/../engine@critic.model.fsdp_config: fsdp
|
| 159 |
+
critic/../optim@critic.optim: fsdp
|
| 160 |
+
model@actor_rollout_ref.model: hf_model
|
| 161 |
+
rollout@actor_rollout_ref.rollout: rollout
|
| 162 |
+
ref@actor_rollout_ref.ref: dp_ref
|
| 163 |
+
ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
|
| 164 |
+
data: legacy_data
|
| 165 |
+
actor@actor_rollout_ref.actor: dp_actor
|
| 166 |
+
actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
|
| 167 |
+
actor/../optim@actor_rollout_ref.actor.optim: fsdp
|
| 168 |
+
hydra/env: default
|
| 169 |
+
hydra/callbacks: null
|
| 170 |
+
hydra/job_logging: default
|
| 171 |
+
hydra/hydra_logging: default
|
| 172 |
+
hydra/hydra_help: default
|
| 173 |
+
hydra/help: default
|
| 174 |
+
hydra/sweeper: basic
|
| 175 |
+
hydra/launcher: basic
|
| 176 |
+
hydra/output: default
|
| 177 |
+
verbose: false
|
outputs/2026-05-12/09-55-39/.hydra/overrides.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 2 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 3 |
+
- trainer.total_training_steps=1000
|
| 4 |
+
- model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
outputs/2026-05-12/15-16-37/.hydra/config.yaml
ADDED
|
@@ -0,0 +1,989 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
actor_rollout_ref:
|
| 2 |
+
actor:
|
| 3 |
+
optim:
|
| 4 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 5 |
+
lr: 1.0e-06
|
| 6 |
+
lr_warmup_steps_ratio: 0.0
|
| 7 |
+
total_training_steps: -1
|
| 8 |
+
weight_decay: 0.01
|
| 9 |
+
lr_warmup_steps: -1
|
| 10 |
+
betas:
|
| 11 |
+
- 0.9
|
| 12 |
+
- 0.999
|
| 13 |
+
clip_grad: 1.0
|
| 14 |
+
min_lr_ratio: 0.0
|
| 15 |
+
num_cycles: 0.5
|
| 16 |
+
warmup_style: constant
|
| 17 |
+
fsdp_config:
|
| 18 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 19 |
+
wrap_policy:
|
| 20 |
+
min_num_params: 0
|
| 21 |
+
param_offload: false
|
| 22 |
+
optimizer_offload: false
|
| 23 |
+
offload_policy: false
|
| 24 |
+
reshard_after_forward: true
|
| 25 |
+
fsdp_size: -1
|
| 26 |
+
forward_prefetch: false
|
| 27 |
+
model_dtype: fp32
|
| 28 |
+
use_orig_params: false
|
| 29 |
+
ulysses_sequence_parallel_size: 1
|
| 30 |
+
entropy_from_logits_with_chunking: false
|
| 31 |
+
use_torch_compile: true
|
| 32 |
+
entropy_checkpointing: false
|
| 33 |
+
forward_only: false
|
| 34 |
+
strategy: fsdp
|
| 35 |
+
_target_: verl.workers.config.FSDPActorConfig
|
| 36 |
+
strategy: fsdp
|
| 37 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 38 |
+
ppo_micro_batch_size: null
|
| 39 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 40 |
+
use_dynamic_bsz: false
|
| 41 |
+
ppo_max_token_len_per_gpu: 16384
|
| 42 |
+
clip_ratio: 0.2
|
| 43 |
+
clip_ratio_low: 0.2
|
| 44 |
+
clip_ratio_high: 0.28
|
| 45 |
+
freeze_vision_tower: false
|
| 46 |
+
policy_loss:
|
| 47 |
+
_target_: verl.workers.config.PolicyLossConfig
|
| 48 |
+
loss_mode: vanilla
|
| 49 |
+
clip_cov_ratio: 0.0002
|
| 50 |
+
clip_cov_lb: 1.0
|
| 51 |
+
clip_cov_ub: 5.0
|
| 52 |
+
kl_cov_ratio: 0.0002
|
| 53 |
+
ppo_kl_coef: 0.1
|
| 54 |
+
clip_ratio_c: 3.0
|
| 55 |
+
loss_agg_mode: token-mean
|
| 56 |
+
entropy_coeff: 0.001
|
| 57 |
+
tis_imp_ratio_cap: -1
|
| 58 |
+
use_kl_loss: false
|
| 59 |
+
use_torch_compile: true
|
| 60 |
+
kl_loss_coef: 0.0
|
| 61 |
+
kl_loss_type: kl
|
| 62 |
+
ppo_epochs: 1
|
| 63 |
+
shuffle: false
|
| 64 |
+
checkpoint:
|
| 65 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 66 |
+
save_contents:
|
| 67 |
+
- model
|
| 68 |
+
- optimizer
|
| 69 |
+
- extra
|
| 70 |
+
load_contents: ${.save_contents}
|
| 71 |
+
async_save: false
|
| 72 |
+
use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
|
| 73 |
+
profiler:
|
| 74 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 75 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 76 |
+
enable: false
|
| 77 |
+
all_ranks: false
|
| 78 |
+
ranks: []
|
| 79 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 80 |
+
tool_config:
|
| 81 |
+
nsys:
|
| 82 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 83 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 84 |
+
npu:
|
| 85 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 86 |
+
contents: []
|
| 87 |
+
level: level1
|
| 88 |
+
analysis: true
|
| 89 |
+
discrete: false
|
| 90 |
+
torch:
|
| 91 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 92 |
+
step_start: 0
|
| 93 |
+
step_end: null
|
| 94 |
+
torch_memory:
|
| 95 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 96 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 97 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 98 |
+
grad_clip: 1.0
|
| 99 |
+
ulysses_sequence_parallel_size: 1
|
| 100 |
+
entropy_from_logits_with_chunking: false
|
| 101 |
+
entropy_checkpointing: false
|
| 102 |
+
use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
|
| 103 |
+
use_ref: true
|
| 104 |
+
grpo_advantage_length_weight: ${grpo_advantage_length_weight}
|
| 105 |
+
filter_loss_scaling: none
|
| 106 |
+
ref:
|
| 107 |
+
strategy: ${actor_rollout_ref.actor.strategy}
|
| 108 |
+
use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
|
| 109 |
+
log_prob_micro_batch_size: null
|
| 110 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 111 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 112 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 113 |
+
profiler:
|
| 114 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 115 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 116 |
+
enable: false
|
| 117 |
+
all_ranks: false
|
| 118 |
+
ranks: []
|
| 119 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 120 |
+
tool_config:
|
| 121 |
+
nsys:
|
| 122 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 123 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 124 |
+
npu:
|
| 125 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 126 |
+
contents: []
|
| 127 |
+
level: level1
|
| 128 |
+
analysis: true
|
| 129 |
+
discrete: false
|
| 130 |
+
torch:
|
| 131 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 132 |
+
step_start: 0
|
| 133 |
+
step_end: null
|
| 134 |
+
torch_memory:
|
| 135 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 136 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 137 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 138 |
+
fsdp_config:
|
| 139 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 140 |
+
wrap_policy:
|
| 141 |
+
min_num_params: 0
|
| 142 |
+
param_offload: false
|
| 143 |
+
optimizer_offload: false
|
| 144 |
+
offload_policy: false
|
| 145 |
+
reshard_after_forward: true
|
| 146 |
+
fsdp_size: -1
|
| 147 |
+
forward_prefetch: false
|
| 148 |
+
model_dtype: fp32
|
| 149 |
+
use_orig_params: false
|
| 150 |
+
ulysses_sequence_parallel_size: 1
|
| 151 |
+
entropy_from_logits_with_chunking: false
|
| 152 |
+
use_torch_compile: true
|
| 153 |
+
entropy_checkpointing: false
|
| 154 |
+
forward_only: false
|
| 155 |
+
strategy: fsdp
|
| 156 |
+
model: null
|
| 157 |
+
ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
|
| 158 |
+
entropy_from_logits_with_chunking: false
|
| 159 |
+
entropy_checkpointing: false
|
| 160 |
+
rollout:
|
| 161 |
+
_target_: verl.workers.config.RolloutConfig
|
| 162 |
+
name: vllm
|
| 163 |
+
mode: sync
|
| 164 |
+
temperature: 1
|
| 165 |
+
top_k: -1
|
| 166 |
+
top_p: 1
|
| 167 |
+
prompt_length: 1
|
| 168 |
+
response_length: 400
|
| 169 |
+
dtype: bfloat16
|
| 170 |
+
gpu_memory_utilization: 0.7
|
| 171 |
+
ignore_eos: false
|
| 172 |
+
enforce_eager: true
|
| 173 |
+
cudagraph_capture_sizes: null
|
| 174 |
+
free_cache_engine: true
|
| 175 |
+
tensor_model_parallel_size: 1
|
| 176 |
+
data_parallel_size: 1
|
| 177 |
+
expert_parallel_size: 1
|
| 178 |
+
max_num_batched_tokens: 16384
|
| 179 |
+
max_model_len: 16384
|
| 180 |
+
max_num_seqs: 1024
|
| 181 |
+
enable_chunked_prefill: true
|
| 182 |
+
enable_prefix_caching: true
|
| 183 |
+
load_format: auto
|
| 184 |
+
log_prob_micro_batch_size: null
|
| 185 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 186 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 187 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 188 |
+
disable_log_stats: true
|
| 189 |
+
do_sample: true
|
| 190 |
+
'n': 1
|
| 191 |
+
over_sample_rate: 0
|
| 192 |
+
multi_stage_wake_up: false
|
| 193 |
+
engine_kwargs:
|
| 194 |
+
vllm: {}
|
| 195 |
+
sglang: {}
|
| 196 |
+
val_kwargs:
|
| 197 |
+
_target_: verl.workers.config.SamplingConfig
|
| 198 |
+
top_k: -1
|
| 199 |
+
top_p: 1.0
|
| 200 |
+
temperature: 0.5
|
| 201 |
+
'n': 1
|
| 202 |
+
do_sample: true
|
| 203 |
+
multi_turn:
|
| 204 |
+
_target_: verl.workers.config.MultiTurnConfig
|
| 205 |
+
enable: false
|
| 206 |
+
max_assistant_turns: null
|
| 207 |
+
tool_config_path: null
|
| 208 |
+
max_user_turns: null
|
| 209 |
+
max_parallel_calls: 1
|
| 210 |
+
max_tool_response_length: 256
|
| 211 |
+
tool_response_truncate_side: middle
|
| 212 |
+
interaction_config_path: null
|
| 213 |
+
use_inference_chat_template: false
|
| 214 |
+
tokenization_sanity_check_mode: strict
|
| 215 |
+
format: hermes
|
| 216 |
+
num_repeat_rollouts: null
|
| 217 |
+
calculate_log_probs: false
|
| 218 |
+
agent:
|
| 219 |
+
_target_: verl.workers.config.AgentLoopConfig
|
| 220 |
+
num_workers: 8
|
| 221 |
+
agent_loop_config_path: null
|
| 222 |
+
custom_async_server:
|
| 223 |
+
_target_: verl.workers.config.CustomAsyncServerConfig
|
| 224 |
+
path: null
|
| 225 |
+
name: null
|
| 226 |
+
update_weights_bucket_megabytes: 512
|
| 227 |
+
trace:
|
| 228 |
+
_target_: verl.workers.config.TraceConfig
|
| 229 |
+
backend: null
|
| 230 |
+
token2text: false
|
| 231 |
+
skip_rollout: false
|
| 232 |
+
skip_dump_dir: /tmp/rollout_dump
|
| 233 |
+
skip_tokenizer_init: true
|
| 234 |
+
profiler:
|
| 235 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 236 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 237 |
+
enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
|
| 238 |
+
all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
|
| 239 |
+
ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
|
| 240 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 241 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 242 |
+
layered_summon: false
|
| 243 |
+
rollout_filter_value: 0.9
|
| 244 |
+
rollout_filter_strategy: top_p
|
| 245 |
+
rollout_filter_type: largest
|
| 246 |
+
rollout_filter_include_zero: true
|
| 247 |
+
rollout_filter_top_p_prob_mode: linear
|
| 248 |
+
rollout_filter_selection_eps: 0.01
|
| 249 |
+
rollout_filter_empty_stop_steps: 5
|
| 250 |
+
rollout_filter_metric: reward_variance
|
| 251 |
+
gradient_analysis_num_buckets: 6
|
| 252 |
+
gradient_analysis_bucket_mode: quantile
|
| 253 |
+
model:
|
| 254 |
+
_target_: verl.workers.config.HFModelConfig
|
| 255 |
+
path: ${model_path}
|
| 256 |
+
hf_config_path: null
|
| 257 |
+
tokenizer_path: null
|
| 258 |
+
use_shm: false
|
| 259 |
+
trust_remote_code: false
|
| 260 |
+
custom_chat_template: null
|
| 261 |
+
external_lib: null
|
| 262 |
+
override_config: {}
|
| 263 |
+
enable_gradient_checkpointing: true
|
| 264 |
+
enable_activation_offload: false
|
| 265 |
+
use_remove_padding: false
|
| 266 |
+
lora_rank: ${lora.rank}
|
| 267 |
+
lora_alpha: ${lora.alpha}
|
| 268 |
+
target_modules: ${lora.target_modules}
|
| 269 |
+
exclude_modules: null
|
| 270 |
+
use_liger: false
|
| 271 |
+
use_fused_kernels: false
|
| 272 |
+
fused_kernel_options:
|
| 273 |
+
impl_backend: torch
|
| 274 |
+
hybrid_engine: true
|
| 275 |
+
nccl_timeout: 600
|
| 276 |
+
data:
|
| 277 |
+
tokenizer: null
|
| 278 |
+
use_shm: false
|
| 279 |
+
train_files: ~/data/rlhf/gsm8k/train.parquet
|
| 280 |
+
val_files: ~/data/rlhf/gsm8k/test.parquet
|
| 281 |
+
prompt_key: prompt
|
| 282 |
+
reward_fn_key: data_source
|
| 283 |
+
max_prompt_length: null
|
| 284 |
+
max_response_length: null
|
| 285 |
+
train_batch_size: null
|
| 286 |
+
val_batch_size: null
|
| 287 |
+
return_raw_input_ids: false
|
| 288 |
+
return_raw_chat: false
|
| 289 |
+
return_full_prompt: false
|
| 290 |
+
shuffle: true
|
| 291 |
+
dataloader_num_workers: 8
|
| 292 |
+
validation_shuffle: false
|
| 293 |
+
filter_overlong_prompts: false
|
| 294 |
+
filter_overlong_prompts_workers: 1
|
| 295 |
+
truncation: error
|
| 296 |
+
image_key: images
|
| 297 |
+
video_key: videos
|
| 298 |
+
trust_remote_code: false
|
| 299 |
+
custom_cls:
|
| 300 |
+
path: null
|
| 301 |
+
name: null
|
| 302 |
+
return_multi_modal_inputs: true
|
| 303 |
+
sampler:
|
| 304 |
+
class_path: null
|
| 305 |
+
class_name: null
|
| 306 |
+
datagen:
|
| 307 |
+
path: null
|
| 308 |
+
name: null
|
| 309 |
+
apply_chat_template_kwargs: {}
|
| 310 |
+
critic:
|
| 311 |
+
optim:
|
| 312 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 313 |
+
lr: 1.0e-05
|
| 314 |
+
lr_warmup_steps_ratio: 0.0
|
| 315 |
+
total_training_steps: -1
|
| 316 |
+
weight_decay: 0.01
|
| 317 |
+
lr_warmup_steps: -1
|
| 318 |
+
betas:
|
| 319 |
+
- 0.9
|
| 320 |
+
- 0.999
|
| 321 |
+
clip_grad: 1.0
|
| 322 |
+
min_lr_ratio: 0.0
|
| 323 |
+
num_cycles: 0.5
|
| 324 |
+
warmup_style: constant
|
| 325 |
+
model:
|
| 326 |
+
fsdp_config:
|
| 327 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 328 |
+
wrap_policy:
|
| 329 |
+
min_num_params: 0
|
| 330 |
+
param_offload: false
|
| 331 |
+
optimizer_offload: false
|
| 332 |
+
offload_policy: false
|
| 333 |
+
reshard_after_forward: true
|
| 334 |
+
fsdp_size: -1
|
| 335 |
+
forward_prefetch: false
|
| 336 |
+
model_dtype: fp32
|
| 337 |
+
use_orig_params: false
|
| 338 |
+
ulysses_sequence_parallel_size: 1
|
| 339 |
+
entropy_from_logits_with_chunking: false
|
| 340 |
+
use_torch_compile: true
|
| 341 |
+
entropy_checkpointing: false
|
| 342 |
+
forward_only: false
|
| 343 |
+
strategy: fsdp
|
| 344 |
+
path: ${model_path}
|
| 345 |
+
tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
|
| 346 |
+
override_config: {}
|
| 347 |
+
external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
|
| 348 |
+
trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
|
| 349 |
+
_target_: verl.workers.config.FSDPCriticModelCfg
|
| 350 |
+
use_shm: false
|
| 351 |
+
enable_gradient_checkpointing: true
|
| 352 |
+
enable_activation_offload: false
|
| 353 |
+
use_remove_padding: false
|
| 354 |
+
lora_rank: ${lora.rank}
|
| 355 |
+
lora_alpha: ${lora.alpha}
|
| 356 |
+
target_modules: ${lora.target_modules}
|
| 357 |
+
_target_: verl.workers.config.FSDPCriticConfig
|
| 358 |
+
rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
|
| 359 |
+
strategy: fsdp
|
| 360 |
+
enable: null
|
| 361 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 362 |
+
ppo_micro_batch_size: null
|
| 363 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 364 |
+
use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 365 |
+
ppo_max_token_len_per_gpu: 32768
|
| 366 |
+
forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
|
| 367 |
+
ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
|
| 368 |
+
shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
|
| 369 |
+
cliprange_value: 0.5
|
| 370 |
+
loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
|
| 371 |
+
checkpoint:
|
| 372 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 373 |
+
save_contents:
|
| 374 |
+
- model
|
| 375 |
+
- optimizer
|
| 376 |
+
- extra
|
| 377 |
+
load_contents: ${.save_contents}
|
| 378 |
+
async_save: false
|
| 379 |
+
profiler:
|
| 380 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 381 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 382 |
+
enable: false
|
| 383 |
+
all_ranks: false
|
| 384 |
+
ranks: []
|
| 385 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 386 |
+
tool_config:
|
| 387 |
+
nsys:
|
| 388 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 389 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 390 |
+
npu:
|
| 391 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 392 |
+
contents: []
|
| 393 |
+
level: level1
|
| 394 |
+
analysis: true
|
| 395 |
+
discrete: false
|
| 396 |
+
torch:
|
| 397 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 398 |
+
step_start: 0
|
| 399 |
+
step_end: null
|
| 400 |
+
torch_memory:
|
| 401 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 402 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 403 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 404 |
+
forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
|
| 405 |
+
forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
|
| 406 |
+
ulysses_sequence_parallel_size: 1
|
| 407 |
+
grad_clip: 1.0
|
| 408 |
+
reward_model:
|
| 409 |
+
enable: false
|
| 410 |
+
enable_resource_pool: false
|
| 411 |
+
n_gpus_per_node: 0
|
| 412 |
+
nnodes: 0
|
| 413 |
+
strategy: fsdp
|
| 414 |
+
model:
|
| 415 |
+
input_tokenizer: ${actor_rollout_ref.model.path}
|
| 416 |
+
path: ~/models/FsfairX-LLaMA3-RM-v0.1
|
| 417 |
+
external_lib: ${actor_rollout_ref.model.external_lib}
|
| 418 |
+
trust_remote_code: false
|
| 419 |
+
use_shm: false
|
| 420 |
+
use_remove_padding: false
|
| 421 |
+
use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
|
| 422 |
+
fsdp_config:
|
| 423 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 424 |
+
wrap_policy:
|
| 425 |
+
min_num_params: 0
|
| 426 |
+
param_offload: false
|
| 427 |
+
reshard_after_forward: true
|
| 428 |
+
fsdp_size: -1
|
| 429 |
+
forward_prefetch: false
|
| 430 |
+
micro_batch_size: null
|
| 431 |
+
micro_batch_size_per_gpu: null
|
| 432 |
+
max_length: null
|
| 433 |
+
use_dynamic_bsz: ${critic.use_dynamic_bsz}
|
| 434 |
+
forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
|
| 435 |
+
reward_manager: naive
|
| 436 |
+
launch_reward_fn_async: false
|
| 437 |
+
sandbox_fusion:
|
| 438 |
+
url: null
|
| 439 |
+
max_concurrent: 64
|
| 440 |
+
memory_limit_mb: 1024
|
| 441 |
+
profiler:
|
| 442 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 443 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 444 |
+
enable: false
|
| 445 |
+
all_ranks: false
|
| 446 |
+
ranks: []
|
| 447 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 448 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 449 |
+
ulysses_sequence_parallel_size: 1
|
| 450 |
+
custom_reward_function:
|
| 451 |
+
path: null
|
| 452 |
+
name: compute_score
|
| 453 |
+
algorithm:
|
| 454 |
+
_target_: verl.trainer.config.AlgoConfig
|
| 455 |
+
gamma: 1.0
|
| 456 |
+
lam: 1.0
|
| 457 |
+
adv_estimator: gae
|
| 458 |
+
norm_adv_by_std_in_grpo: true
|
| 459 |
+
use_kl_in_reward: false
|
| 460 |
+
kl_penalty: kl
|
| 461 |
+
kl_ctrl:
|
| 462 |
+
_target_: verl.trainer.config.KLControlConfig
|
| 463 |
+
type: fixed
|
| 464 |
+
kl_coef: 0.0
|
| 465 |
+
horizon: 10000
|
| 466 |
+
target_kl: 0.1
|
| 467 |
+
use_pf_ppo: false
|
| 468 |
+
pf_ppo:
|
| 469 |
+
reweight_method: pow
|
| 470 |
+
weight_pow: 2.0
|
| 471 |
+
high_level_gamma: 0.95
|
| 472 |
+
bi_level_gae: false
|
| 473 |
+
zero_task_advantage: false
|
| 474 |
+
soft_advantage_reweight: false
|
| 475 |
+
trainer:
|
| 476 |
+
balance_batch: true
|
| 477 |
+
total_epochs: 30
|
| 478 |
+
total_training_steps: 1000
|
| 479 |
+
project_name: ragen
|
| 480 |
+
experiment_name: sokoban-main
|
| 481 |
+
logger:
|
| 482 |
+
- console
|
| 483 |
+
- wandb
|
| 484 |
+
log_val_generations: 0
|
| 485 |
+
rollout_data_dir: null
|
| 486 |
+
validation_data_dir: null
|
| 487 |
+
nnodes: 1
|
| 488 |
+
n_gpus_per_node: 8
|
| 489 |
+
save_freq: -1
|
| 490 |
+
esi_redundant_time: 0
|
| 491 |
+
resume_mode: auto
|
| 492 |
+
resume_from_path: null
|
| 493 |
+
val_before_train: true
|
| 494 |
+
val_only: false
|
| 495 |
+
test_freq: 10
|
| 496 |
+
critic_warmup: 0
|
| 497 |
+
default_hdfs_dir: null
|
| 498 |
+
del_local_ckpt_after_load: false
|
| 499 |
+
default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
|
| 500 |
+
max_actor_ckpt_to_keep: 1
|
| 501 |
+
max_critic_ckpt_to_keep: 1
|
| 502 |
+
ray_wait_register_center_timeout: 300
|
| 503 |
+
device: cuda
|
| 504 |
+
use_legacy_worker_impl: auto
|
| 505 |
+
local_log_dir: results/
|
| 506 |
+
validation_steps: 1
|
| 507 |
+
generations_to_log_to_wandb:
|
| 508 |
+
val: 20
|
| 509 |
+
log_group_rv_table: false
|
| 510 |
+
gradient_analysis_mode: false
|
| 511 |
+
gradient_analysis_every: 50
|
| 512 |
+
gradient_analysis_env_groups: null
|
| 513 |
+
gradient_analysis_group_size: null
|
| 514 |
+
gradient_analysis_log_prefilter: false
|
| 515 |
+
gradient_analysis_only: false
|
| 516 |
+
exit_after_gradient_analysis: false
|
| 517 |
+
global_profiler:
|
| 518 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 519 |
+
tool: null
|
| 520 |
+
steps: null
|
| 521 |
+
profile_continuous_steps: false
|
| 522 |
+
save_path: outputs/profile
|
| 523 |
+
global_tool_config:
|
| 524 |
+
nsys:
|
| 525 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 526 |
+
discrete: false
|
| 527 |
+
controller_nsight_options:
|
| 528 |
+
trace: cuda,nvtx,cublas,ucx
|
| 529 |
+
cuda-memory-usage: 'true'
|
| 530 |
+
cuda-graph-trace: graph
|
| 531 |
+
worker_nsight_options:
|
| 532 |
+
trace: cuda,nvtx,cublas,ucx
|
| 533 |
+
cuda-memory-usage: 'true'
|
| 534 |
+
cuda-graph-trace: graph
|
| 535 |
+
capture-range: cudaProfilerApi
|
| 536 |
+
capture-range-end: null
|
| 537 |
+
kill: none
|
| 538 |
+
torch_memory:
|
| 539 |
+
trace_alloc_max_entries: 100000
|
| 540 |
+
stack_depth: 32
|
| 541 |
+
context: all
|
| 542 |
+
stacks: all
|
| 543 |
+
kw_args: {}
|
| 544 |
+
ray_kwargs:
|
| 545 |
+
ray_init:
|
| 546 |
+
num_cpus: null
|
| 547 |
+
timeline_json_file: null
|
| 548 |
+
custom_envs:
|
| 549 |
+
SimpleSokoban:
|
| 550 |
+
env_type: sokoban
|
| 551 |
+
max_actions_per_traj: 10
|
| 552 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 553 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 554 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 555 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 556 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 557 |
+
max_tokens: 100
|
| 558 |
+
parallel_friendly: false
|
| 559 |
+
max_workers: 32
|
| 560 |
+
env_config:
|
| 561 |
+
dim_x: 6
|
| 562 |
+
dim_y: 6
|
| 563 |
+
num_boxes: 1
|
| 564 |
+
max_steps: 100
|
| 565 |
+
LargerSokoban:
|
| 566 |
+
env_type: sokoban
|
| 567 |
+
max_actions_per_traj: 10
|
| 568 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 569 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 570 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 571 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 572 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 573 |
+
max_tokens: 100
|
| 574 |
+
parallel_friendly: false
|
| 575 |
+
max_workers: 32
|
| 576 |
+
env_config:
|
| 577 |
+
dim_x: 8
|
| 578 |
+
dim_y: 8
|
| 579 |
+
num_boxes: 2
|
| 580 |
+
max_steps: 100
|
| 581 |
+
search_depth: 10
|
| 582 |
+
SokobanDifferentGridVocab:
|
| 583 |
+
env_type: sokoban
|
| 584 |
+
max_actions_per_traj: 10
|
| 585 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 586 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 587 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 588 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 589 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 590 |
+
max_tokens: 100
|
| 591 |
+
parallel_friendly: false
|
| 592 |
+
max_workers: 32
|
| 593 |
+
env_config:
|
| 594 |
+
search_depth: 30
|
| 595 |
+
dim_x: 6
|
| 596 |
+
dim_y: 6
|
| 597 |
+
num_boxes: 1
|
| 598 |
+
max_steps: 100
|
| 599 |
+
grid_lookup:
|
| 600 |
+
0: W
|
| 601 |
+
1: .
|
| 602 |
+
2: G
|
| 603 |
+
3: C
|
| 604 |
+
4: B
|
| 605 |
+
5: A
|
| 606 |
+
6: '@'
|
| 607 |
+
grid_vocab:
|
| 608 |
+
W: wall
|
| 609 |
+
.: empty
|
| 610 |
+
G: target
|
| 611 |
+
C: box on target
|
| 612 |
+
B: box
|
| 613 |
+
A: player
|
| 614 |
+
'@': player on target
|
| 615 |
+
CoordSokoban:
|
| 616 |
+
env_type: sokoban
|
| 617 |
+
max_actions_per_traj: 10
|
| 618 |
+
env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
|
| 619 |
+
\ need to push all boxes to targets.\nYou are provided with a symbol grid and\
|
| 620 |
+
\ the zero-indexed coordinates of the player, each box, and each target. \n\
|
| 621 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
|
| 622 |
+
\ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
|
| 623 |
+
\ the same direction. \nYou cannot push a box through a wall, and you cannot\
|
| 624 |
+
\ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
|
| 625 |
+
\ || Right || Up</answer>.\n"
|
| 626 |
+
max_tokens: 120
|
| 627 |
+
parallel_friendly: false
|
| 628 |
+
max_workers: 32
|
| 629 |
+
env_config:
|
| 630 |
+
dim_x: 6
|
| 631 |
+
dim_y: 6
|
| 632 |
+
num_boxes: 1
|
| 633 |
+
max_steps: 100
|
| 634 |
+
observation_format: grid_coord
|
| 635 |
+
VisualSimpleSokoban:
|
| 636 |
+
env_type: sokoban
|
| 637 |
+
max_actions_per_traj: 10
|
| 638 |
+
env_instruction: You are solving the Sokoban puzzle. You are the player and you
|
| 639 |
+
need to push all boxes to targets. When you are right next to a box, you can
|
| 640 |
+
push it by moving in the same direction. You cannot push a box through a wall,
|
| 641 |
+
and you cannot pull a box. The answer should be a sequence of actions, like
|
| 642 |
+
<answer>Right || Right || Up</answer>
|
| 643 |
+
max_tokens: 100
|
| 644 |
+
parallel_friendly: false
|
| 645 |
+
max_workers: 32
|
| 646 |
+
env_config:
|
| 647 |
+
dim_x: 6
|
| 648 |
+
dim_y: 6
|
| 649 |
+
num_boxes: 1
|
| 650 |
+
max_steps: 100
|
| 651 |
+
render_mode: rgb_array
|
| 652 |
+
Alfworld:
|
| 653 |
+
env_type: alfworld
|
| 654 |
+
max_actions_per_traj: 50
|
| 655 |
+
parallel_friendly: false
|
| 656 |
+
max_workers: 1
|
| 657 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 658 |
+
|
| 659 |
+
Complete household tasks by navigating and interacting with objects.
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 663 |
+
process MUST be enclosed within <think> </think> tags.
|
| 664 |
+
|
| 665 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 666 |
+
for current step and present it within <answer>...</answer> tags.
|
| 667 |
+
|
| 668 |
+
'
|
| 669 |
+
max_tokens: 512
|
| 670 |
+
env_config:
|
| 671 |
+
eval_dataset: eval_in_distribution
|
| 672 |
+
AlfworldOOD:
|
| 673 |
+
env_type: alfworld
|
| 674 |
+
max_actions_per_traj: 50
|
| 675 |
+
parallel_friendly: false
|
| 676 |
+
max_workers: 1
|
| 677 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 678 |
+
|
| 679 |
+
Complete household tasks by navigating and interacting with objects.
|
| 680 |
+
|
| 681 |
+
|
| 682 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 683 |
+
process MUST be enclosed within <think> </think> tags.
|
| 684 |
+
|
| 685 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 686 |
+
for current step and present it within <answer>...</answer> tags.
|
| 687 |
+
|
| 688 |
+
'
|
| 689 |
+
max_tokens: 512
|
| 690 |
+
env_config:
|
| 691 |
+
eval_dataset: eval_out_of_distribution
|
| 692 |
+
Countdown:
|
| 693 |
+
env_type: countdown
|
| 694 |
+
max_actions_per_traj: 1
|
| 695 |
+
env_instruction: 'You are solving the Countdown puzzle. You should use the num
|
| 696 |
+
list to create an equation that equals the target. Example answer format: <think>
|
| 697 |
+
To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
|
| 698 |
+
= 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
|
| 699 |
+
max_tokens: 100
|
| 700 |
+
parallel_friendly: false
|
| 701 |
+
max_workers: 32
|
| 702 |
+
env_config: null
|
| 703 |
+
Bandit:
|
| 704 |
+
env_type: bandit
|
| 705 |
+
max_actions_per_traj: 1
|
| 706 |
+
env_instruction: ''
|
| 707 |
+
max_tokens: 100
|
| 708 |
+
parallel_friendly: false
|
| 709 |
+
max_workers: 32
|
| 710 |
+
env_config:
|
| 711 |
+
split: train
|
| 712 |
+
BanditTest:
|
| 713 |
+
env_type: bandit
|
| 714 |
+
max_actions_per_traj: 1
|
| 715 |
+
env_instruction: ''
|
| 716 |
+
max_tokens: 100
|
| 717 |
+
parallel_friendly: false
|
| 718 |
+
max_workers: 32
|
| 719 |
+
env_config:
|
| 720 |
+
split: test
|
| 721 |
+
DeepCoder:
|
| 722 |
+
env_type: deepcoder
|
| 723 |
+
max_actions_per_traj: 1
|
| 724 |
+
env_instruction: 'You are solving a coding task. Provide a complete Python function
|
| 725 |
+
solution only. Format: <answer>...</answer>'
|
| 726 |
+
max_tokens: 8000
|
| 727 |
+
parallel_friendly: true
|
| 728 |
+
max_workers: 32
|
| 729 |
+
env_config:
|
| 730 |
+
max_steps: 1
|
| 731 |
+
FrozenLake:
|
| 732 |
+
env_type: frozen_lake
|
| 733 |
+
max_actions_per_traj: 10
|
| 734 |
+
env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
|
| 735 |
+
go to the target. You may move to the unintended direction due to the slippery
|
| 736 |
+
ice. Example answer format: <think>To forbid the hole and go to the target,
|
| 737 |
+
I should go left then go up.</think><answer>Left || Up</answer>'
|
| 738 |
+
max_tokens: 100
|
| 739 |
+
parallel_friendly: false
|
| 740 |
+
max_workers: 32
|
| 741 |
+
env_config:
|
| 742 |
+
success_rate: 0.8
|
| 743 |
+
CoordFrozenLake:
|
| 744 |
+
env_type: frozen_lake
|
| 745 |
+
max_actions_per_traj: 10
|
| 746 |
+
env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
|
| 747 |
+
both a symbol grid and zero-indexed coordinates for the start, goal, player,
|
| 748 |
+
and any holes.
|
| 749 |
+
|
| 750 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner
|
| 751 |
+
(5, 5).
|
| 752 |
+
|
| 753 |
+
Beware that the ice is slippery, so the agent might slide and end up in an unintended
|
| 754 |
+
tile.
|
| 755 |
+
|
| 756 |
+
Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
|
| 757 |
+
|
| 758 |
+
'
|
| 759 |
+
max_tokens: 120
|
| 760 |
+
parallel_friendly: false
|
| 761 |
+
max_workers: 32
|
| 762 |
+
env_config:
|
| 763 |
+
observation_format: grid_coord
|
| 764 |
+
success_rate: 0.8
|
| 765 |
+
MetamathQA:
|
| 766 |
+
env_type: metamathqa
|
| 767 |
+
max_actions_per_traj: 1
|
| 768 |
+
env_instruction: 'You are solving Math problems. '
|
| 769 |
+
max_tokens: 100
|
| 770 |
+
env_config: null
|
| 771 |
+
WebShopFull:
|
| 772 |
+
env_type: webshop
|
| 773 |
+
max_actions_per_traj: 15
|
| 774 |
+
env_instruction: You are an expert autonomous agent operating in the WebShop e‑commerce
|
| 775 |
+
environment.
|
| 776 |
+
max_tokens: 200
|
| 777 |
+
env_config:
|
| 778 |
+
dataset: full
|
| 779 |
+
WebShop:
|
| 780 |
+
env_type: webshop
|
| 781 |
+
max_actions_per_traj: 9
|
| 782 |
+
env_instruction: 'You are browsing an online shop. Based on the instruction, buy
|
| 783 |
+
a product that close to the production description. You need to search, read
|
| 784 |
+
the search results, pick a product, choose the size and color and buy. You should
|
| 785 |
+
only choose action from the available actions list provided later. Example
|
| 786 |
+
process: I need a gingko light and 20x20 pillow cover that is hand painted.
|
| 787 |
+
First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
|
| 788 |
+
with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
|
| 789 |
+
max_tokens: 200
|
| 790 |
+
env_config:
|
| 791 |
+
dataset: small
|
| 792 |
+
Lean:
|
| 793 |
+
env_type: lean
|
| 794 |
+
max_actions_per_traj: 30
|
| 795 |
+
env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
|
| 796 |
+
propose a sequence of tactics that completes the proof. Think step by step about
|
| 797 |
+
which tactics to apply next. Provide tactics separated by '||', for example
|
| 798 |
+
<answer>intro || simp || rfl</answer>.
|
| 799 |
+
max_tokens: 512
|
| 800 |
+
parallel_friendly: true
|
| 801 |
+
max_workers: 32
|
| 802 |
+
env_config: null
|
| 803 |
+
SimpleSudoku:
|
| 804 |
+
env_type: sudoku
|
| 805 |
+
max_actions_per_traj: 20
|
| 806 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 807 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 808 |
+
|
| 809 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 810 |
+
shown as dots (.).
|
| 811 |
+
|
| 812 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 813 |
+
or <answer>2,3,5</answer>
|
| 814 |
+
|
| 815 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 816 |
+
if any occur.
|
| 817 |
+
|
| 818 |
+
'
|
| 819 |
+
max_tokens: 150
|
| 820 |
+
parallel_friendly: false
|
| 821 |
+
max_workers: 32
|
| 822 |
+
env_config:
|
| 823 |
+
grid_size: 9
|
| 824 |
+
difficulty: easy
|
| 825 |
+
render_format: with_feedback
|
| 826 |
+
show_conflicts: true
|
| 827 |
+
show_valid_numbers: true
|
| 828 |
+
max_steps: 81
|
| 829 |
+
MediumSudoku:
|
| 830 |
+
env_type: sudoku
|
| 831 |
+
max_actions_per_traj: 30
|
| 832 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 833 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 834 |
+
|
| 835 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 836 |
+
shown as dots (.).
|
| 837 |
+
|
| 838 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 839 |
+
or <answer>2,3,5</answer>
|
| 840 |
+
|
| 841 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 842 |
+
if any occur.
|
| 843 |
+
|
| 844 |
+
'
|
| 845 |
+
max_tokens: 150
|
| 846 |
+
parallel_friendly: false
|
| 847 |
+
max_workers: 32
|
| 848 |
+
env_config:
|
| 849 |
+
grid_size: 9
|
| 850 |
+
difficulty: medium
|
| 851 |
+
render_format: with_feedback
|
| 852 |
+
show_conflicts: true
|
| 853 |
+
show_valid_numbers: true
|
| 854 |
+
max_steps: 81
|
| 855 |
+
SearchQA:
|
| 856 |
+
env_type: search
|
| 857 |
+
max_actions_per_traj: 10
|
| 858 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 859 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 860 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 861 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 862 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 863 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 864 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 865 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 866 |
+
\ Platt]</answer>\n"
|
| 867 |
+
max_tokens: 300
|
| 868 |
+
parallel_friendly: true
|
| 869 |
+
max_workers: 32
|
| 870 |
+
env_config:
|
| 871 |
+
max_steps: 10
|
| 872 |
+
max_search_results: 5
|
| 873 |
+
SearchQAMock:
|
| 874 |
+
env_type: search
|
| 875 |
+
max_actions_per_traj: 10
|
| 876 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 877 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 878 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 879 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 880 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 881 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 882 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 883 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 884 |
+
\ Platt]</answer>\n"
|
| 885 |
+
max_tokens: 300
|
| 886 |
+
parallel_friendly: true
|
| 887 |
+
max_workers: 32
|
| 888 |
+
env_config:
|
| 889 |
+
max_steps: 10
|
| 890 |
+
max_search_results: 5
|
| 891 |
+
mock_mode: true
|
| 892 |
+
game_2048:
|
| 893 |
+
env_type: game_2048
|
| 894 |
+
max_actions_per_traj: 700
|
| 895 |
+
env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
|
| 896 |
+
by sliding Up, Right, Down, or Left.
|
| 897 |
+
|
| 898 |
+
If a move is invalid (no tiles move), a small penalty is applied. Respond with
|
| 899 |
+
a single action.
|
| 900 |
+
|
| 901 |
+
Example: <answer>Up</answer>
|
| 902 |
+
|
| 903 |
+
'
|
| 904 |
+
max_tokens: 8192
|
| 905 |
+
env_config: null
|
| 906 |
+
rubikscube:
|
| 907 |
+
env_type: rubikscube
|
| 908 |
+
max_actions_per_traj: 20
|
| 909 |
+
env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
|
| 910 |
+
is to restore the cube so that each of the faces consists of a single, unique
|
| 911 |
+
color.
|
| 912 |
+
|
| 913 |
+
Available actions use standard Singmaster notation for face rotations: U, U'',
|
| 914 |
+
D, D'', L, L'', R, R'', F, F'', B, B''.
|
| 915 |
+
|
| 916 |
+
- Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
|
| 917 |
+
|
| 918 |
+
- Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
|
| 919 |
+
prime ('') means 90° counter-clockwise (e.g., "R''").
|
| 920 |
+
|
| 921 |
+
Respond with a sequence of actions separated by "||".
|
| 922 |
+
|
| 923 |
+
Example: <answer>U</answer>
|
| 924 |
+
|
| 925 |
+
'
|
| 926 |
+
max_tokens: 96
|
| 927 |
+
env_config:
|
| 928 |
+
scramble_depth: 1
|
| 929 |
+
max_steps: 20
|
| 930 |
+
render_mode: text
|
| 931 |
+
system:
|
| 932 |
+
CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
|
| 933 |
+
seed:
|
| 934 |
+
train: 10000
|
| 935 |
+
val: 123
|
| 936 |
+
micro_batch_size_per_gpu: 1
|
| 937 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 938 |
+
ppo_mini_batch_size: 32
|
| 939 |
+
model_path: /mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
| 940 |
+
enable_response_mask: true
|
| 941 |
+
grpo_advantage_length_weight: false
|
| 942 |
+
lora:
|
| 943 |
+
rank: 0
|
| 944 |
+
alpha: 64
|
| 945 |
+
target_modules: all-linear
|
| 946 |
+
agent_proxy:
|
| 947 |
+
context_window_mode: full
|
| 948 |
+
max_context_window: -1
|
| 949 |
+
batch_adjust_mode: copy
|
| 950 |
+
max_turn: 15
|
| 951 |
+
action_sep: '||'
|
| 952 |
+
max_actions_per_turn: 1
|
| 953 |
+
use_turn_scores: false
|
| 954 |
+
enable_think: true
|
| 955 |
+
reward_normalization:
|
| 956 |
+
grouping: state
|
| 957 |
+
method: identity
|
| 958 |
+
collapse_detection:
|
| 959 |
+
compute_freq: 5
|
| 960 |
+
micro_batch_size: 128
|
| 961 |
+
first_turn_enabled: true
|
| 962 |
+
multi_turn_enabled: true
|
| 963 |
+
num_samples: 64
|
| 964 |
+
es_manager:
|
| 965 |
+
format_penalty: -0.1
|
| 966 |
+
train:
|
| 967 |
+
env_groups: 8
|
| 968 |
+
group_size: 16
|
| 969 |
+
env_configs:
|
| 970 |
+
tags:
|
| 971 |
+
- SimpleSokoban
|
| 972 |
+
n_groups:
|
| 973 |
+
- 8
|
| 974 |
+
val:
|
| 975 |
+
env_groups: 512
|
| 976 |
+
group_size: 1
|
| 977 |
+
env_configs:
|
| 978 |
+
tags:
|
| 979 |
+
- SimpleSokoban
|
| 980 |
+
n_groups:
|
| 981 |
+
- 512
|
| 982 |
+
ctx_manager:
|
| 983 |
+
generation:
|
| 984 |
+
gen_config:
|
| 985 |
+
response_length: ${actor_rollout_ref.rollout.response_length}
|
| 986 |
+
temperature: ${actor_rollout_ref.rollout.temperature}
|
| 987 |
+
top_p: ${actor_rollout_ref.rollout.top_p}
|
| 988 |
+
top_k: ${actor_rollout_ref.rollout.top_k}
|
| 989 |
+
kwargs: null
|
outputs/2026-05-13/10-39-50/.hydra/config.yaml
ADDED
|
@@ -0,0 +1,989 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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ad: 1.0
|
| 14 |
+
min_lr_ratio: 0.0
|
| 15 |
+
num_cycles: 0.5
|
| 16 |
+
warmup_style: constant
|
| 17 |
+
fsdp_config:
|
| 18 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 19 |
+
wrap_policy:
|
| 20 |
+
min_num_params: 0
|
| 21 |
+
param_offload: false
|
| 22 |
+
optimizer_offload: false
|
| 23 |
+
offload_policy: false
|
| 24 |
+
reshard_after_forward: true
|
| 25 |
+
fsdp_size: -1
|
| 26 |
+
forward_prefetch: false
|
| 27 |
+
model_dtype: fp32
|
| 28 |
+
use_orig_params: false
|
| 29 |
+
ulysses_sequence_parallel_size: 1
|
| 30 |
+
entropy_from_logits_with_chunking: false
|
| 31 |
+
use_torch_compile: true
|
| 32 |
+
entropy_checkpointing: false
|
| 33 |
+
forward_only: false
|
| 34 |
+
strategy: fsdp
|
| 35 |
+
_target_: verl.workers.config.FSDPActorConfig
|
| 36 |
+
strategy: fsdp
|
| 37 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 38 |
+
ppo_micro_batch_size: null
|
| 39 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 40 |
+
use_dynamic_bsz: false
|
| 41 |
+
ppo_max_token_len_per_gpu: 16384
|
| 42 |
+
clip_ratio: 0.2
|
| 43 |
+
clip_ratio_low: 0.2
|
| 44 |
+
clip_ratio_high: 0.28
|
| 45 |
+
freeze_vision_tower: false
|
| 46 |
+
policy_loss:
|
| 47 |
+
_target_: verl.workers.config.PolicyLossConfig
|
| 48 |
+
loss_mode: vanilla
|
| 49 |
+
clip_cov_ratio: 0.0002
|
| 50 |
+
clip_cov_lb: 1.0
|
| 51 |
+
clip_cov_ub: 5.0
|
| 52 |
+
kl_cov_ratio: 0.0002
|
| 53 |
+
ppo_kl_coef: 0.1
|
| 54 |
+
clip_ratio_c: 3.0
|
| 55 |
+
loss_agg_mode: token-mean
|
| 56 |
+
entropy_coeff: 0.001
|
| 57 |
+
tis_imp_ratio_cap: -1
|
| 58 |
+
use_kl_loss: false
|
| 59 |
+
use_torch_compile: true
|
| 60 |
+
kl_loss_coef: 0.0
|
| 61 |
+
kl_loss_type: kl
|
| 62 |
+
ppo_epochs: 1
|
| 63 |
+
shuffle: false
|
| 64 |
+
checkpoint:
|
| 65 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 66 |
+
save_contents:
|
| 67 |
+
- model
|
| 68 |
+
- optimizer
|
| 69 |
+
- extra
|
| 70 |
+
load_contents: ${.save_contents}
|
| 71 |
+
async_save: false
|
| 72 |
+
use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
|
| 73 |
+
profiler:
|
| 74 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 75 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 76 |
+
enable: false
|
| 77 |
+
all_ranks: false
|
| 78 |
+
ranks: []
|
| 79 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 80 |
+
tool_config:
|
| 81 |
+
nsys:
|
| 82 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 83 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 84 |
+
npu:
|
| 85 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 86 |
+
contents: []
|
| 87 |
+
level: level1
|
| 88 |
+
analysis: true
|
| 89 |
+
discrete: false
|
| 90 |
+
torch:
|
| 91 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 92 |
+
step_start: 0
|
| 93 |
+
step_end: null
|
| 94 |
+
torch_memory:
|
| 95 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 96 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 97 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 98 |
+
grad_clip: 1.0
|
| 99 |
+
ulysses_sequence_parallel_size: 1
|
| 100 |
+
entropy_from_logits_with_chunking: false
|
| 101 |
+
entropy_checkpointing: false
|
| 102 |
+
use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
|
| 103 |
+
use_ref: true
|
| 104 |
+
grpo_advantage_length_weight: ${grpo_advantage_length_weight}
|
| 105 |
+
filter_loss_scaling: none
|
| 106 |
+
ref:
|
| 107 |
+
strategy: ${actor_rollout_ref.actor.strategy}
|
| 108 |
+
use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
|
| 109 |
+
log_prob_micro_batch_size: null
|
| 110 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 111 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 112 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 113 |
+
profiler:
|
| 114 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 115 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 116 |
+
enable: false
|
| 117 |
+
all_ranks: false
|
| 118 |
+
ranks: []
|
| 119 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 120 |
+
tool_config:
|
| 121 |
+
nsys:
|
| 122 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 123 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 124 |
+
npu:
|
| 125 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 126 |
+
contents: []
|
| 127 |
+
level: level1
|
| 128 |
+
analysis: true
|
| 129 |
+
discrete: false
|
| 130 |
+
torch:
|
| 131 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 132 |
+
step_start: 0
|
| 133 |
+
step_end: null
|
| 134 |
+
torch_memory:
|
| 135 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 136 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 137 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 138 |
+
fsdp_config:
|
| 139 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 140 |
+
wrap_policy:
|
| 141 |
+
min_num_params: 0
|
| 142 |
+
param_offload: false
|
| 143 |
+
optimizer_offload: false
|
| 144 |
+
offload_policy: false
|
| 145 |
+
reshard_after_forward: true
|
| 146 |
+
fsdp_size: -1
|
| 147 |
+
forward_prefetch: false
|
| 148 |
+
model_dtype: fp32
|
| 149 |
+
use_orig_params: false
|
| 150 |
+
ulysses_sequence_parallel_size: 1
|
| 151 |
+
entropy_from_logits_with_chunking: false
|
| 152 |
+
use_torch_compile: true
|
| 153 |
+
entropy_checkpointing: false
|
| 154 |
+
forward_only: false
|
| 155 |
+
strategy: fsdp
|
| 156 |
+
model: null
|
| 157 |
+
ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
|
| 158 |
+
entropy_from_logits_with_chunking: false
|
| 159 |
+
entropy_checkpointing: false
|
| 160 |
+
rollout:
|
| 161 |
+
_target_: verl.workers.config.RolloutConfig
|
| 162 |
+
name: vllm
|
| 163 |
+
mode: sync
|
| 164 |
+
temperature: 1
|
| 165 |
+
top_k: -1
|
| 166 |
+
top_p: 1
|
| 167 |
+
prompt_length: 1
|
| 168 |
+
response_length: 400
|
| 169 |
+
dtype: bfloat16
|
| 170 |
+
gpu_memory_utilization: 0.7
|
| 171 |
+
ignore_eos: false
|
| 172 |
+
enforce_eager: true
|
| 173 |
+
cudagraph_capture_sizes: null
|
| 174 |
+
free_cache_engine: true
|
| 175 |
+
tensor_model_parallel_size: 1
|
| 176 |
+
data_parallel_size: 1
|
| 177 |
+
expert_parallel_size: 1
|
| 178 |
+
max_num_batched_tokens: 16384
|
| 179 |
+
max_model_len: 16384
|
| 180 |
+
max_num_seqs: 1024
|
| 181 |
+
enable_chunked_prefill: true
|
| 182 |
+
enable_prefix_caching: true
|
| 183 |
+
load_format: auto
|
| 184 |
+
log_prob_micro_batch_size: null
|
| 185 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 186 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 187 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 188 |
+
disable_log_stats: true
|
| 189 |
+
do_sample: true
|
| 190 |
+
'n': 1
|
| 191 |
+
over_sample_rate: 0
|
| 192 |
+
multi_stage_wake_up: false
|
| 193 |
+
engine_kwargs:
|
| 194 |
+
vllm: {}
|
| 195 |
+
sglang: {}
|
| 196 |
+
val_kwargs:
|
| 197 |
+
_target_: verl.workers.config.SamplingConfig
|
| 198 |
+
top_k: -1
|
| 199 |
+
top_p: 1.0
|
| 200 |
+
temperature: 0.5
|
| 201 |
+
'n': 1
|
| 202 |
+
do_sample: true
|
| 203 |
+
multi_turn:
|
| 204 |
+
_target_: verl.workers.config.MultiTurnConfig
|
| 205 |
+
enable: false
|
| 206 |
+
max_assistant_turns: null
|
| 207 |
+
tool_config_path: null
|
| 208 |
+
max_user_turns: null
|
| 209 |
+
max_parallel_calls: 1
|
| 210 |
+
max_tool_response_length: 256
|
| 211 |
+
tool_response_truncate_side: middle
|
| 212 |
+
interaction_config_path: null
|
| 213 |
+
use_inference_chat_template: false
|
| 214 |
+
tokenization_sanity_check_mode: strict
|
| 215 |
+
format: hermes
|
| 216 |
+
num_repeat_rollouts: null
|
| 217 |
+
calculate_log_probs: false
|
| 218 |
+
agent:
|
| 219 |
+
_target_: verl.workers.config.AgentLoopConfig
|
| 220 |
+
num_workers: 8
|
| 221 |
+
agent_loop_config_path: null
|
| 222 |
+
custom_async_server:
|
| 223 |
+
_target_: verl.workers.config.CustomAsyncServerConfig
|
| 224 |
+
path: null
|
| 225 |
+
name: null
|
| 226 |
+
update_weights_bucket_megabytes: 512
|
| 227 |
+
trace:
|
| 228 |
+
_target_: verl.workers.config.TraceConfig
|
| 229 |
+
backend: null
|
| 230 |
+
token2text: false
|
| 231 |
+
skip_rollout: false
|
| 232 |
+
skip_dump_dir: /tmp/rollout_dump
|
| 233 |
+
skip_tokenizer_init: true
|
| 234 |
+
profiler:
|
| 235 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 236 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 237 |
+
enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
|
| 238 |
+
all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
|
| 239 |
+
ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
|
| 240 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 241 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 242 |
+
layered_summon: false
|
| 243 |
+
rollout_filter_value: 0.9
|
| 244 |
+
rollout_filter_strategy: top_p
|
| 245 |
+
rollout_filter_type: largest
|
| 246 |
+
rollout_filter_include_zero: true
|
| 247 |
+
rollout_filter_top_p_prob_mode: linear
|
| 248 |
+
rollout_filter_selection_eps: 0.01
|
| 249 |
+
rollout_filter_empty_stop_steps: 5
|
| 250 |
+
rollout_filter_metric: reward_variance
|
| 251 |
+
gradient_analysis_num_buckets: 6
|
| 252 |
+
gradient_analysis_bucket_mode: quantile
|
| 253 |
+
model:
|
| 254 |
+
_target_: verl.workers.config.HFModelConfig
|
| 255 |
+
path: ${model_path}
|
| 256 |
+
hf_config_path: null
|
| 257 |
+
tokenizer_path: null
|
| 258 |
+
use_shm: false
|
| 259 |
+
trust_remote_code: false
|
| 260 |
+
custom_chat_template: null
|
| 261 |
+
external_lib: null
|
| 262 |
+
override_config: {}
|
| 263 |
+
enable_gradient_checkpointing: true
|
| 264 |
+
enable_activation_offload: false
|
| 265 |
+
use_remove_padding: false
|
| 266 |
+
lora_rank: ${lora.rank}
|
| 267 |
+
lora_alpha: ${lora.alpha}
|
| 268 |
+
target_modules: ${lora.target_modules}
|
| 269 |
+
exclude_modules: null
|
| 270 |
+
use_liger: false
|
| 271 |
+
use_fused_kernels: false
|
| 272 |
+
fused_kernel_options:
|
| 273 |
+
impl_backend: torch
|
| 274 |
+
hybrid_engine: true
|
| 275 |
+
nccl_timeout: 600
|
| 276 |
+
data:
|
| 277 |
+
tokenizer: null
|
| 278 |
+
use_shm: false
|
| 279 |
+
train_files: ~/data/rlhf/gsm8k/train.parquet
|
| 280 |
+
val_files: ~/data/rlhf/gsm8k/test.parquet
|
| 281 |
+
prompt_key: prompt
|
| 282 |
+
reward_fn_key: data_source
|
| 283 |
+
max_prompt_length: null
|
| 284 |
+
max_response_length: null
|
| 285 |
+
train_batch_size: null
|
| 286 |
+
val_batch_size: null
|
| 287 |
+
return_raw_input_ids: false
|
| 288 |
+
return_raw_chat: false
|
| 289 |
+
return_full_prompt: false
|
| 290 |
+
shuffle: true
|
| 291 |
+
dataloader_num_workers: 8
|
| 292 |
+
validation_shuffle: false
|
| 293 |
+
filter_overlong_prompts: false
|
| 294 |
+
filter_overlong_prompts_workers: 1
|
| 295 |
+
truncation: error
|
| 296 |
+
image_key: images
|
| 297 |
+
video_key: videos
|
| 298 |
+
trust_remote_code: false
|
| 299 |
+
custom_cls:
|
| 300 |
+
path: null
|
| 301 |
+
name: null
|
| 302 |
+
return_multi_modal_inputs: true
|
| 303 |
+
sampler:
|
| 304 |
+
class_path: null
|
| 305 |
+
class_name: null
|
| 306 |
+
datagen:
|
| 307 |
+
path: null
|
| 308 |
+
name: null
|
| 309 |
+
apply_chat_template_kwargs: {}
|
| 310 |
+
critic:
|
| 311 |
+
optim:
|
| 312 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 313 |
+
lr: 1.0e-05
|
| 314 |
+
lr_warmup_steps_ratio: 0.0
|
| 315 |
+
total_training_steps: -1
|
| 316 |
+
weight_decay: 0.01
|
| 317 |
+
lr_warmup_steps: -1
|
| 318 |
+
betas:
|
| 319 |
+
- 0.9
|
| 320 |
+
- 0.999
|
| 321 |
+
clip_grad: 1.0
|
| 322 |
+
min_lr_ratio: 0.0
|
| 323 |
+
num_cycles: 0.5
|
| 324 |
+
warmup_style: constant
|
| 325 |
+
model:
|
| 326 |
+
fsdp_config:
|
| 327 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 328 |
+
wrap_policy:
|
| 329 |
+
min_num_params: 0
|
| 330 |
+
param_offload: false
|
| 331 |
+
optimizer_offload: false
|
| 332 |
+
offload_policy: false
|
| 333 |
+
reshard_after_forward: true
|
| 334 |
+
fsdp_size: -1
|
| 335 |
+
forward_prefetch: false
|
| 336 |
+
model_dtype: fp32
|
| 337 |
+
use_orig_params: false
|
| 338 |
+
ulysses_sequence_parallel_size: 1
|
| 339 |
+
entropy_from_logits_with_chunking: false
|
| 340 |
+
use_torch_compile: true
|
| 341 |
+
entropy_checkpointing: false
|
| 342 |
+
forward_only: false
|
| 343 |
+
strategy: fsdp
|
| 344 |
+
path: ${model_path}
|
| 345 |
+
tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
|
| 346 |
+
override_config: {}
|
| 347 |
+
external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
|
| 348 |
+
trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
|
| 349 |
+
_target_: verl.workers.config.FSDPCriticModelCfg
|
| 350 |
+
use_shm: false
|
| 351 |
+
enable_gradient_checkpointing: true
|
| 352 |
+
enable_activation_offload: false
|
| 353 |
+
use_remove_padding: false
|
| 354 |
+
lora_rank: ${lora.rank}
|
| 355 |
+
lora_alpha: ${lora.alpha}
|
| 356 |
+
target_modules: ${lora.target_modules}
|
| 357 |
+
_target_: verl.workers.config.FSDPCriticConfig
|
| 358 |
+
rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
|
| 359 |
+
strategy: fsdp
|
| 360 |
+
enable: null
|
| 361 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 362 |
+
ppo_micro_batch_size: null
|
| 363 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 364 |
+
use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 365 |
+
ppo_max_token_len_per_gpu: 32768
|
| 366 |
+
forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
|
| 367 |
+
ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
|
| 368 |
+
shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
|
| 369 |
+
cliprange_value: 0.5
|
| 370 |
+
loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
|
| 371 |
+
checkpoint:
|
| 372 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 373 |
+
save_contents:
|
| 374 |
+
- model
|
| 375 |
+
- optimizer
|
| 376 |
+
- extra
|
| 377 |
+
load_contents: ${.save_contents}
|
| 378 |
+
async_save: false
|
| 379 |
+
profiler:
|
| 380 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 381 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 382 |
+
enable: false
|
| 383 |
+
all_ranks: false
|
| 384 |
+
ranks: []
|
| 385 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 386 |
+
tool_config:
|
| 387 |
+
nsys:
|
| 388 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 389 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 390 |
+
npu:
|
| 391 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 392 |
+
contents: []
|
| 393 |
+
level: level1
|
| 394 |
+
analysis: true
|
| 395 |
+
discrete: false
|
| 396 |
+
torch:
|
| 397 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 398 |
+
step_start: 0
|
| 399 |
+
step_end: null
|
| 400 |
+
torch_memory:
|
| 401 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 402 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 403 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 404 |
+
forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
|
| 405 |
+
forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
|
| 406 |
+
ulysses_sequence_parallel_size: 1
|
| 407 |
+
grad_clip: 1.0
|
| 408 |
+
reward_model:
|
| 409 |
+
enable: false
|
| 410 |
+
enable_resource_pool: false
|
| 411 |
+
n_gpus_per_node: 0
|
| 412 |
+
nnodes: 0
|
| 413 |
+
strategy: fsdp
|
| 414 |
+
model:
|
| 415 |
+
input_tokenizer: ${actor_rollout_ref.model.path}
|
| 416 |
+
path: ~/models/FsfairX-LLaMA3-RM-v0.1
|
| 417 |
+
external_lib: ${actor_rollout_ref.model.external_lib}
|
| 418 |
+
trust_remote_code: false
|
| 419 |
+
use_shm: false
|
| 420 |
+
use_remove_padding: false
|
| 421 |
+
use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
|
| 422 |
+
fsdp_config:
|
| 423 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 424 |
+
wrap_policy:
|
| 425 |
+
min_num_params: 0
|
| 426 |
+
param_offload: false
|
| 427 |
+
reshard_after_forward: true
|
| 428 |
+
fsdp_size: -1
|
| 429 |
+
forward_prefetch: false
|
| 430 |
+
micro_batch_size: null
|
| 431 |
+
micro_batch_size_per_gpu: null
|
| 432 |
+
max_length: null
|
| 433 |
+
use_dynamic_bsz: ${critic.use_dynamic_bsz}
|
| 434 |
+
forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
|
| 435 |
+
reward_manager: naive
|
| 436 |
+
launch_reward_fn_async: false
|
| 437 |
+
sandbox_fusion:
|
| 438 |
+
url: null
|
| 439 |
+
max_concurrent: 64
|
| 440 |
+
memory_limit_mb: 1024
|
| 441 |
+
profiler:
|
| 442 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 443 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 444 |
+
enable: false
|
| 445 |
+
all_ranks: false
|
| 446 |
+
ranks: []
|
| 447 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 448 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 449 |
+
ulysses_sequence_parallel_size: 1
|
| 450 |
+
custom_reward_function:
|
| 451 |
+
path: null
|
| 452 |
+
name: compute_score
|
| 453 |
+
algorithm:
|
| 454 |
+
_target_: verl.trainer.config.AlgoConfig
|
| 455 |
+
gamma: 1.0
|
| 456 |
+
lam: 1.0
|
| 457 |
+
adv_estimator: gae
|
| 458 |
+
norm_adv_by_std_in_grpo: true
|
| 459 |
+
use_kl_in_reward: false
|
| 460 |
+
kl_penalty: kl
|
| 461 |
+
kl_ctrl:
|
| 462 |
+
_target_: verl.trainer.config.KLControlConfig
|
| 463 |
+
type: fixed
|
| 464 |
+
kl_coef: 0.0
|
| 465 |
+
horizon: 10000
|
| 466 |
+
target_kl: 0.1
|
| 467 |
+
use_pf_ppo: false
|
| 468 |
+
pf_ppo:
|
| 469 |
+
reweight_method: pow
|
| 470 |
+
weight_pow: 2.0
|
| 471 |
+
high_level_gamma: 0.95
|
| 472 |
+
bi_level_gae: false
|
| 473 |
+
zero_task_advantage: false
|
| 474 |
+
soft_advantage_reweight: false
|
| 475 |
+
trainer:
|
| 476 |
+
balance_batch: true
|
| 477 |
+
total_epochs: 30
|
| 478 |
+
total_training_steps: 1000
|
| 479 |
+
project_name: ragen
|
| 480 |
+
experiment_name: sokoban-main
|
| 481 |
+
logger:
|
| 482 |
+
- console
|
| 483 |
+
- wandb
|
| 484 |
+
log_val_generations: 0
|
| 485 |
+
rollout_data_dir: null
|
| 486 |
+
validation_data_dir: null
|
| 487 |
+
nnodes: 1
|
| 488 |
+
n_gpus_per_node: 8
|
| 489 |
+
save_freq: -1
|
| 490 |
+
esi_redundant_time: 0
|
| 491 |
+
resume_mode: auto
|
| 492 |
+
resume_from_path: null
|
| 493 |
+
val_before_train: true
|
| 494 |
+
val_only: false
|
| 495 |
+
test_freq: 10
|
| 496 |
+
critic_warmup: 0
|
| 497 |
+
default_hdfs_dir: null
|
| 498 |
+
del_local_ckpt_after_load: false
|
| 499 |
+
default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
|
| 500 |
+
max_actor_ckpt_to_keep: 1
|
| 501 |
+
max_critic_ckpt_to_keep: 1
|
| 502 |
+
ray_wait_register_center_timeout: 300
|
| 503 |
+
device: cuda
|
| 504 |
+
use_legacy_worker_impl: auto
|
| 505 |
+
local_log_dir: results/
|
| 506 |
+
validation_steps: 1
|
| 507 |
+
generations_to_log_to_wandb:
|
| 508 |
+
val: 20
|
| 509 |
+
log_group_rv_table: false
|
| 510 |
+
gradient_analysis_mode: false
|
| 511 |
+
gradient_analysis_every: 50
|
| 512 |
+
gradient_analysis_env_groups: null
|
| 513 |
+
gradient_analysis_group_size: null
|
| 514 |
+
gradient_analysis_log_prefilter: false
|
| 515 |
+
gradient_analysis_only: false
|
| 516 |
+
exit_after_gradient_analysis: false
|
| 517 |
+
global_profiler:
|
| 518 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 519 |
+
tool: null
|
| 520 |
+
steps: null
|
| 521 |
+
profile_continuous_steps: false
|
| 522 |
+
save_path: outputs/profile
|
| 523 |
+
global_tool_config:
|
| 524 |
+
nsys:
|
| 525 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 526 |
+
discrete: false
|
| 527 |
+
controller_nsight_options:
|
| 528 |
+
trace: cuda,nvtx,cublas,ucx
|
| 529 |
+
cuda-memory-usage: 'true'
|
| 530 |
+
cuda-graph-trace: graph
|
| 531 |
+
worker_nsight_options:
|
| 532 |
+
trace: cuda,nvtx,cublas,ucx
|
| 533 |
+
cuda-memory-usage: 'true'
|
| 534 |
+
cuda-graph-trace: graph
|
| 535 |
+
capture-range: cudaProfilerApi
|
| 536 |
+
capture-range-end: null
|
| 537 |
+
kill: none
|
| 538 |
+
torch_memory:
|
| 539 |
+
trace_alloc_max_entries: 100000
|
| 540 |
+
stack_depth: 32
|
| 541 |
+
context: all
|
| 542 |
+
stacks: all
|
| 543 |
+
kw_args: {}
|
| 544 |
+
ray_kwargs:
|
| 545 |
+
ray_init:
|
| 546 |
+
num_cpus: null
|
| 547 |
+
timeline_json_file: null
|
| 548 |
+
custom_envs:
|
| 549 |
+
SimpleSokoban:
|
| 550 |
+
env_type: sokoban
|
| 551 |
+
max_actions_per_traj: 10
|
| 552 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 553 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 554 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 555 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 556 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 557 |
+
max_tokens: 100
|
| 558 |
+
parallel_friendly: false
|
| 559 |
+
max_workers: 32
|
| 560 |
+
env_config:
|
| 561 |
+
dim_x: 6
|
| 562 |
+
dim_y: 6
|
| 563 |
+
num_boxes: 1
|
| 564 |
+
max_steps: 100
|
| 565 |
+
LargerSokoban:
|
| 566 |
+
env_type: sokoban
|
| 567 |
+
max_actions_per_traj: 10
|
| 568 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 569 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 570 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 571 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 572 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 573 |
+
max_tokens: 100
|
| 574 |
+
parallel_friendly: false
|
| 575 |
+
max_workers: 32
|
| 576 |
+
env_config:
|
| 577 |
+
dim_x: 8
|
| 578 |
+
dim_y: 8
|
| 579 |
+
num_boxes: 2
|
| 580 |
+
max_steps: 100
|
| 581 |
+
search_depth: 10
|
| 582 |
+
SokobanDifferentGridVocab:
|
| 583 |
+
env_type: sokoban
|
| 584 |
+
max_actions_per_traj: 10
|
| 585 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 586 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 587 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 588 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 589 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 590 |
+
max_tokens: 100
|
| 591 |
+
parallel_friendly: false
|
| 592 |
+
max_workers: 32
|
| 593 |
+
env_config:
|
| 594 |
+
search_depth: 30
|
| 595 |
+
dim_x: 6
|
| 596 |
+
dim_y: 6
|
| 597 |
+
num_boxes: 1
|
| 598 |
+
max_steps: 100
|
| 599 |
+
grid_lookup:
|
| 600 |
+
0: W
|
| 601 |
+
1: .
|
| 602 |
+
2: G
|
| 603 |
+
3: C
|
| 604 |
+
4: B
|
| 605 |
+
5: A
|
| 606 |
+
6: '@'
|
| 607 |
+
grid_vocab:
|
| 608 |
+
W: wall
|
| 609 |
+
.: empty
|
| 610 |
+
G: target
|
| 611 |
+
C: box on target
|
| 612 |
+
B: box
|
| 613 |
+
A: player
|
| 614 |
+
'@': player on target
|
| 615 |
+
CoordSokoban:
|
| 616 |
+
env_type: sokoban
|
| 617 |
+
max_actions_per_traj: 10
|
| 618 |
+
env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
|
| 619 |
+
\ need to push all boxes to targets.\nYou are provided with a symbol grid and\
|
| 620 |
+
\ the zero-indexed coordinates of the player, each box, and each target. \n\
|
| 621 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
|
| 622 |
+
\ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
|
| 623 |
+
\ the same direction. \nYou cannot push a box through a wall, and you cannot\
|
| 624 |
+
\ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
|
| 625 |
+
\ || Right || Up</answer>.\n"
|
| 626 |
+
max_tokens: 120
|
| 627 |
+
parallel_friendly: false
|
| 628 |
+
max_workers: 32
|
| 629 |
+
env_config:
|
| 630 |
+
dim_x: 6
|
| 631 |
+
dim_y: 6
|
| 632 |
+
num_boxes: 1
|
| 633 |
+
max_steps: 100
|
| 634 |
+
observation_format: grid_coord
|
| 635 |
+
VisualSimpleSokoban:
|
| 636 |
+
env_type: sokoban
|
| 637 |
+
max_actions_per_traj: 10
|
| 638 |
+
env_instruction: You are solving the Sokoban puzzle. You are the player and you
|
| 639 |
+
need to push all boxes to targets. When you are right next to a box, you can
|
| 640 |
+
push it by moving in the same direction. You cannot push a box through a wall,
|
| 641 |
+
and you cannot pull a box. The answer should be a sequence of actions, like
|
| 642 |
+
<answer>Right || Right || Up</answer>
|
| 643 |
+
max_tokens: 100
|
| 644 |
+
parallel_friendly: false
|
| 645 |
+
max_workers: 32
|
| 646 |
+
env_config:
|
| 647 |
+
dim_x: 6
|
| 648 |
+
dim_y: 6
|
| 649 |
+
num_boxes: 1
|
| 650 |
+
max_steps: 100
|
| 651 |
+
render_mode: rgb_array
|
| 652 |
+
Alfworld:
|
| 653 |
+
env_type: alfworld
|
| 654 |
+
max_actions_per_traj: 50
|
| 655 |
+
parallel_friendly: false
|
| 656 |
+
max_workers: 1
|
| 657 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 658 |
+
|
| 659 |
+
Complete household tasks by navigating and interacting with objects.
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 663 |
+
process MUST be enclosed within <think> </think> tags.
|
| 664 |
+
|
| 665 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 666 |
+
for current step and present it within <answer>...</answer> tags.
|
| 667 |
+
|
| 668 |
+
'
|
| 669 |
+
max_tokens: 512
|
| 670 |
+
env_config:
|
| 671 |
+
eval_dataset: eval_in_distribution
|
| 672 |
+
AlfworldOOD:
|
| 673 |
+
env_type: alfworld
|
| 674 |
+
max_actions_per_traj: 50
|
| 675 |
+
parallel_friendly: false
|
| 676 |
+
max_workers: 1
|
| 677 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 678 |
+
|
| 679 |
+
Complete household tasks by navigating and interacting with objects.
|
| 680 |
+
|
| 681 |
+
|
| 682 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 683 |
+
process MUST be enclosed within <think> </think> tags.
|
| 684 |
+
|
| 685 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 686 |
+
for current step and present it within <answer>...</answer> tags.
|
| 687 |
+
|
| 688 |
+
'
|
| 689 |
+
max_tokens: 512
|
| 690 |
+
env_config:
|
| 691 |
+
eval_dataset: eval_out_of_distribution
|
| 692 |
+
Countdown:
|
| 693 |
+
env_type: countdown
|
| 694 |
+
max_actions_per_traj: 1
|
| 695 |
+
env_instruction: 'You are solving the Countdown puzzle. You should use the num
|
| 696 |
+
list to create an equation that equals the target. Example answer format: <think>
|
| 697 |
+
To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
|
| 698 |
+
= 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
|
| 699 |
+
max_tokens: 100
|
| 700 |
+
parallel_friendly: false
|
| 701 |
+
max_workers: 32
|
| 702 |
+
env_config: null
|
| 703 |
+
Bandit:
|
| 704 |
+
env_type: bandit
|
| 705 |
+
max_actions_per_traj: 1
|
| 706 |
+
env_instruction: ''
|
| 707 |
+
max_tokens: 100
|
| 708 |
+
parallel_friendly: false
|
| 709 |
+
max_workers: 32
|
| 710 |
+
env_config:
|
| 711 |
+
split: train
|
| 712 |
+
BanditTest:
|
| 713 |
+
env_type: bandit
|
| 714 |
+
max_actions_per_traj: 1
|
| 715 |
+
env_instruction: ''
|
| 716 |
+
max_tokens: 100
|
| 717 |
+
parallel_friendly: false
|
| 718 |
+
max_workers: 32
|
| 719 |
+
env_config:
|
| 720 |
+
split: test
|
| 721 |
+
DeepCoder:
|
| 722 |
+
env_type: deepcoder
|
| 723 |
+
max_actions_per_traj: 1
|
| 724 |
+
env_instruction: 'You are solving a coding task. Provide a complete Python function
|
| 725 |
+
solution only. Format: <answer>...</answer>'
|
| 726 |
+
max_tokens: 8000
|
| 727 |
+
parallel_friendly: true
|
| 728 |
+
max_workers: 32
|
| 729 |
+
env_config:
|
| 730 |
+
max_steps: 1
|
| 731 |
+
FrozenLake:
|
| 732 |
+
env_type: frozen_lake
|
| 733 |
+
max_actions_per_traj: 10
|
| 734 |
+
env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
|
| 735 |
+
go to the target. You may move to the unintended direction due to the slippery
|
| 736 |
+
ice. Example answer format: <think>To forbid the hole and go to the target,
|
| 737 |
+
I should go left then go up.</think><answer>Left || Up</answer>'
|
| 738 |
+
max_tokens: 100
|
| 739 |
+
parallel_friendly: false
|
| 740 |
+
max_workers: 32
|
| 741 |
+
env_config:
|
| 742 |
+
success_rate: 0.8
|
| 743 |
+
CoordFrozenLake:
|
| 744 |
+
env_type: frozen_lake
|
| 745 |
+
max_actions_per_traj: 10
|
| 746 |
+
env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
|
| 747 |
+
both a symbol grid and zero-indexed coordinates for the start, goal, player,
|
| 748 |
+
and any holes.
|
| 749 |
+
|
| 750 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner
|
| 751 |
+
(5, 5).
|
| 752 |
+
|
| 753 |
+
Beware that the ice is slippery, so the agent might slide and end up in an unintended
|
| 754 |
+
tile.
|
| 755 |
+
|
| 756 |
+
Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
|
| 757 |
+
|
| 758 |
+
'
|
| 759 |
+
max_tokens: 120
|
| 760 |
+
parallel_friendly: false
|
| 761 |
+
max_workers: 32
|
| 762 |
+
env_config:
|
| 763 |
+
observation_format: grid_coord
|
| 764 |
+
success_rate: 0.8
|
| 765 |
+
MetamathQA:
|
| 766 |
+
env_type: metamathqa
|
| 767 |
+
max_actions_per_traj: 1
|
| 768 |
+
env_instruction: 'You are solving Math problems. '
|
| 769 |
+
max_tokens: 100
|
| 770 |
+
env_config: null
|
| 771 |
+
WebShopFull:
|
| 772 |
+
env_type: webshop
|
| 773 |
+
max_actions_per_traj: 15
|
| 774 |
+
env_instruction: You are an expert autonomous agent operating in the WebShop e‑commerce
|
| 775 |
+
environment.
|
| 776 |
+
max_tokens: 200
|
| 777 |
+
env_config:
|
| 778 |
+
dataset: full
|
| 779 |
+
WebShop:
|
| 780 |
+
env_type: webshop
|
| 781 |
+
max_actions_per_traj: 9
|
| 782 |
+
env_instruction: 'You are browsing an online shop. Based on the instruction, buy
|
| 783 |
+
a product that close to the production description. You need to search, read
|
| 784 |
+
the search results, pick a product, choose the size and color and buy. You should
|
| 785 |
+
only choose action from the available actions list provided later. Example
|
| 786 |
+
process: I need a gingko light and 20x20 pillow cover that is hand painted.
|
| 787 |
+
First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
|
| 788 |
+
with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
|
| 789 |
+
max_tokens: 200
|
| 790 |
+
env_config:
|
| 791 |
+
dataset: small
|
| 792 |
+
Lean:
|
| 793 |
+
env_type: lean
|
| 794 |
+
max_actions_per_traj: 30
|
| 795 |
+
env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
|
| 796 |
+
propose a sequence of tactics that completes the proof. Think step by step about
|
| 797 |
+
which tactics to apply next. Provide tactics separated by '||', for example
|
| 798 |
+
<answer>intro || simp || rfl</answer>.
|
| 799 |
+
max_tokens: 512
|
| 800 |
+
parallel_friendly: true
|
| 801 |
+
max_workers: 32
|
| 802 |
+
env_config: null
|
| 803 |
+
SimpleSudoku:
|
| 804 |
+
env_type: sudoku
|
| 805 |
+
max_actions_per_traj: 20
|
| 806 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 807 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 808 |
+
|
| 809 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 810 |
+
shown as dots (.).
|
| 811 |
+
|
| 812 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 813 |
+
or <answer>2,3,5</answer>
|
| 814 |
+
|
| 815 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 816 |
+
if any occur.
|
| 817 |
+
|
| 818 |
+
'
|
| 819 |
+
max_tokens: 150
|
| 820 |
+
parallel_friendly: false
|
| 821 |
+
max_workers: 32
|
| 822 |
+
env_config:
|
| 823 |
+
grid_size: 9
|
| 824 |
+
difficulty: easy
|
| 825 |
+
render_format: with_feedback
|
| 826 |
+
show_conflicts: true
|
| 827 |
+
show_valid_numbers: true
|
| 828 |
+
max_steps: 81
|
| 829 |
+
MediumSudoku:
|
| 830 |
+
env_type: sudoku
|
| 831 |
+
max_actions_per_traj: 30
|
| 832 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 833 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 834 |
+
|
| 835 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 836 |
+
shown as dots (.).
|
| 837 |
+
|
| 838 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 839 |
+
or <answer>2,3,5</answer>
|
| 840 |
+
|
| 841 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 842 |
+
if any occur.
|
| 843 |
+
|
| 844 |
+
'
|
| 845 |
+
max_tokens: 150
|
| 846 |
+
parallel_friendly: false
|
| 847 |
+
max_workers: 32
|
| 848 |
+
env_config:
|
| 849 |
+
grid_size: 9
|
| 850 |
+
difficulty: medium
|
| 851 |
+
render_format: with_feedback
|
| 852 |
+
show_conflicts: true
|
| 853 |
+
show_valid_numbers: true
|
| 854 |
+
max_steps: 81
|
| 855 |
+
SearchQA:
|
| 856 |
+
env_type: search
|
| 857 |
+
max_actions_per_traj: 10
|
| 858 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 859 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 860 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 861 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 862 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 863 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 864 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 865 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 866 |
+
\ Platt]</answer>\n"
|
| 867 |
+
max_tokens: 300
|
| 868 |
+
parallel_friendly: true
|
| 869 |
+
max_workers: 32
|
| 870 |
+
env_config:
|
| 871 |
+
max_steps: 10
|
| 872 |
+
max_search_results: 5
|
| 873 |
+
SearchQAMock:
|
| 874 |
+
env_type: search
|
| 875 |
+
max_actions_per_traj: 10
|
| 876 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 877 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 878 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 879 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 880 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 881 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 882 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 883 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 884 |
+
\ Platt]</answer>\n"
|
| 885 |
+
max_tokens: 300
|
| 886 |
+
parallel_friendly: true
|
| 887 |
+
max_workers: 32
|
| 888 |
+
env_config:
|
| 889 |
+
max_steps: 10
|
| 890 |
+
max_search_results: 5
|
| 891 |
+
mock_mode: true
|
| 892 |
+
game_2048:
|
| 893 |
+
env_type: game_2048
|
| 894 |
+
max_actions_per_traj: 700
|
| 895 |
+
env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
|
| 896 |
+
by sliding Up, Right, Down, or Left.
|
| 897 |
+
|
| 898 |
+
If a move is invalid (no tiles move), a small penalty is applied. Respond with
|
| 899 |
+
a single action.
|
| 900 |
+
|
| 901 |
+
Example: <answer>Up</answer>
|
| 902 |
+
|
| 903 |
+
'
|
| 904 |
+
max_tokens: 8192
|
| 905 |
+
env_config: null
|
| 906 |
+
rubikscube:
|
| 907 |
+
env_type: rubikscube
|
| 908 |
+
max_actions_per_traj: 20
|
| 909 |
+
env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
|
| 910 |
+
is to restore the cube so that each of the faces consists of a single, unique
|
| 911 |
+
color.
|
| 912 |
+
|
| 913 |
+
Available actions use standard Singmaster notation for face rotations: U, U'',
|
| 914 |
+
D, D'', L, L'', R, R'', F, F'', B, B''.
|
| 915 |
+
|
| 916 |
+
- Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
|
| 917 |
+
|
| 918 |
+
- Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
|
| 919 |
+
prime ('') means 90° counter-clockwise (e.g., "R''").
|
| 920 |
+
|
| 921 |
+
Respond with a sequence of actions separated by "||".
|
| 922 |
+
|
| 923 |
+
Example: <answer>U</answer>
|
| 924 |
+
|
| 925 |
+
'
|
| 926 |
+
max_tokens: 96
|
| 927 |
+
env_config:
|
| 928 |
+
scramble_depth: 1
|
| 929 |
+
max_steps: 20
|
| 930 |
+
render_mode: text
|
| 931 |
+
system:
|
| 932 |
+
CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
|
| 933 |
+
seed:
|
| 934 |
+
train: 10000
|
| 935 |
+
val: 123
|
| 936 |
+
micro_batch_size_per_gpu: 1
|
| 937 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 938 |
+
ppo_mini_batch_size: 32
|
| 939 |
+
model_path: /mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
| 940 |
+
enable_response_mask: true
|
| 941 |
+
grpo_advantage_length_weight: false
|
| 942 |
+
lora:
|
| 943 |
+
rank: 0
|
| 944 |
+
alpha: 64
|
| 945 |
+
target_modules: all-linear
|
| 946 |
+
agent_proxy:
|
| 947 |
+
context_window_mode: full
|
| 948 |
+
max_context_window: -1
|
| 949 |
+
batch_adjust_mode: copy
|
| 950 |
+
max_turn: 15
|
| 951 |
+
action_sep: '||'
|
| 952 |
+
max_actions_per_turn: 1
|
| 953 |
+
use_turn_scores: false
|
| 954 |
+
enable_think: true
|
| 955 |
+
reward_normalization:
|
| 956 |
+
grouping: state
|
| 957 |
+
method: identity
|
| 958 |
+
collapse_detection:
|
| 959 |
+
compute_freq: 5
|
| 960 |
+
micro_batch_size: 128
|
| 961 |
+
first_turn_enabled: true
|
| 962 |
+
multi_turn_enabled: true
|
| 963 |
+
num_samples: 64
|
| 964 |
+
es_manager:
|
| 965 |
+
format_penalty: -0.1
|
| 966 |
+
train:
|
| 967 |
+
env_groups: 8
|
| 968 |
+
group_size: 16
|
| 969 |
+
env_configs:
|
| 970 |
+
tags:
|
| 971 |
+
- SimpleSokoban
|
| 972 |
+
n_groups:
|
| 973 |
+
- 8
|
| 974 |
+
val:
|
| 975 |
+
env_groups: 512
|
| 976 |
+
group_size: 1
|
| 977 |
+
env_configs:
|
| 978 |
+
tags:
|
| 979 |
+
- SimpleSokoban
|
| 980 |
+
n_groups:
|
| 981 |
+
- 512
|
| 982 |
+
ctx_manager:
|
| 983 |
+
generation:
|
| 984 |
+
gen_config:
|
| 985 |
+
response_length: ${actor_rollout_ref.rollout.response_length}
|
| 986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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
hydra:
|
| 2 |
+
run:
|
| 3 |
+
dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 4 |
+
sweep:
|
| 5 |
+
dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 6 |
+
subdir: ${hydra.job.num}
|
| 7 |
+
launcher:
|
| 8 |
+
_target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
|
| 9 |
+
sweeper:
|
| 10 |
+
_target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
|
| 11 |
+
max_batch_size: null
|
| 12 |
+
params: null
|
| 13 |
+
help:
|
| 14 |
+
app_name: ${hydra.job.name}
|
| 15 |
+
header: '${hydra.help.app_name} is powered by Hydra.
|
| 16 |
+
|
| 17 |
+
'
|
| 18 |
+
footer: 'Powered by Hydra (https://hydra.cc)
|
| 19 |
+
|
| 20 |
+
Use --hydra-help to view Hydra specific help
|
| 21 |
+
|
| 22 |
+
'
|
| 23 |
+
template: '${hydra.help.header}
|
| 24 |
+
|
| 25 |
+
== Configuration groups ==
|
| 26 |
+
|
| 27 |
+
Compose your configuration from those groups (group=option)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
$APP_CONFIG_GROUPS
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
== Config ==
|
| 34 |
+
|
| 35 |
+
Override anything in the config (foo.bar=value)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
$CONFIG
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
${hydra.help.footer}
|
| 42 |
+
|
| 43 |
+
'
|
| 44 |
+
hydra_help:
|
| 45 |
+
template: 'Hydra (${hydra.runtime.version})
|
| 46 |
+
|
| 47 |
+
See https://hydra.cc for more info.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
== Flags ==
|
| 51 |
+
|
| 52 |
+
$FLAGS_HELP
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
== Configuration groups ==
|
| 56 |
+
|
| 57 |
+
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
|
| 58 |
+
to command line)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
$HYDRA_CONFIG_GROUPS
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
Use ''--cfg hydra'' to Show the Hydra config.
|
| 65 |
+
|
| 66 |
+
'
|
| 67 |
+
hydra_help: ???
|
| 68 |
+
hydra_logging:
|
| 69 |
+
version: 1
|
| 70 |
+
formatters:
|
| 71 |
+
simple:
|
| 72 |
+
format: '[%(asctime)s][HYDRA] %(message)s'
|
| 73 |
+
handlers:
|
| 74 |
+
console:
|
| 75 |
+
class: logging.StreamHandler
|
| 76 |
+
formatter: simple
|
| 77 |
+
stream: ext://sys.stdout
|
| 78 |
+
root:
|
| 79 |
+
level: INFO
|
| 80 |
+
handlers:
|
| 81 |
+
- console
|
| 82 |
+
loggers:
|
| 83 |
+
logging_example:
|
| 84 |
+
level: DEBUG
|
| 85 |
+
disable_existing_loggers: false
|
| 86 |
+
job_logging:
|
| 87 |
+
version: 1
|
| 88 |
+
formatters:
|
| 89 |
+
simple:
|
| 90 |
+
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
|
| 91 |
+
handlers:
|
| 92 |
+
console:
|
| 93 |
+
class: logging.StreamHandler
|
| 94 |
+
formatter: simple
|
| 95 |
+
stream: ext://sys.stdout
|
| 96 |
+
file:
|
| 97 |
+
class: logging.FileHandler
|
| 98 |
+
formatter: simple
|
| 99 |
+
filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
|
| 100 |
+
root:
|
| 101 |
+
level: INFO
|
| 102 |
+
handlers:
|
| 103 |
+
- console
|
| 104 |
+
- file
|
| 105 |
+
disable_existing_loggers: false
|
| 106 |
+
env: {}
|
| 107 |
+
mode: RUN
|
| 108 |
+
searchpath:
|
| 109 |
+
- pkg://verl.trainer.config
|
| 110 |
+
callbacks: {}
|
| 111 |
+
output_subdir: .hydra
|
| 112 |
+
overrides:
|
| 113 |
+
hydra:
|
| 114 |
+
- hydra.mode=RUN
|
| 115 |
+
task:
|
| 116 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 117 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 118 |
+
- trainer.total_training_steps=1000
|
| 119 |
+
- model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
| 120 |
+
job:
|
| 121 |
+
name: train
|
| 122 |
+
chdir: null
|
| 123 |
+
override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct,trainer.total_training_steps=1000
|
| 124 |
+
id: ???
|
| 125 |
+
num: ???
|
| 126 |
+
config_name: _2_sokoban
|
| 127 |
+
env_set: {}
|
| 128 |
+
env_copy: []
|
| 129 |
+
config:
|
| 130 |
+
override_dirname:
|
| 131 |
+
kv_sep: '='
|
| 132 |
+
item_sep: ','
|
| 133 |
+
exclude_keys: []
|
| 134 |
+
runtime:
|
| 135 |
+
version: 1.3.2
|
| 136 |
+
version_base: '1.3'
|
| 137 |
+
cwd: /mnt/general/wanghy/RAGEN_v2
|
| 138 |
+
config_sources:
|
| 139 |
+
- path: hydra.conf
|
| 140 |
+
schema: pkg
|
| 141 |
+
provider: hydra
|
| 142 |
+
- path: /mnt/general/wanghy/RAGEN_v2/config
|
| 143 |
+
schema: file
|
| 144 |
+
provider: main
|
| 145 |
+
- path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
|
| 146 |
+
schema: file
|
| 147 |
+
provider: command-line
|
| 148 |
+
- path: verl.trainer.config
|
| 149 |
+
schema: pkg
|
| 150 |
+
provider: hydra.searchpath in main
|
| 151 |
+
- path: ''
|
| 152 |
+
schema: structured
|
| 153 |
+
provider: schema
|
| 154 |
+
output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-05-13/10-39-50
|
| 155 |
+
choices:
|
| 156 |
+
reward_model: dp_reward_model
|
| 157 |
+
critic: dp_critic
|
| 158 |
+
critic/../engine@critic.model.fsdp_config: fsdp
|
| 159 |
+
critic/../optim@critic.optim: fsdp
|
| 160 |
+
model@actor_rollout_ref.model: hf_model
|
| 161 |
+
rollout@actor_rollout_ref.rollout: rollout
|
| 162 |
+
ref@actor_rollout_ref.ref: dp_ref
|
| 163 |
+
ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
|
| 164 |
+
data: legacy_data
|
| 165 |
+
actor@actor_rollout_ref.actor: dp_actor
|
| 166 |
+
actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
|
| 167 |
+
actor/../optim@actor_rollout_ref.actor.optim: fsdp
|
| 168 |
+
hydra/env: default
|
| 169 |
+
hydra/callbacks: null
|
| 170 |
+
hydra/job_logging: default
|
| 171 |
+
hydra/hydra_logging: default
|
| 172 |
+
hydra/hydra_help: default
|
| 173 |
+
hydra/help: default
|
| 174 |
+
hydra/sweeper: basic
|
| 175 |
+
hydra/launcher: basic
|
| 176 |
+
hydra/output: default
|
| 177 |
+
verbose: false
|
outputs/2026-05-13/10-39-50/train.log
ADDED
|
File without changes
|
outputs/2026-05-15/14-05-31/.hydra/config.yaml
ADDED
|
@@ -0,0 +1,989 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
actor_rollout_ref:
|
| 2 |
+
actor:
|
| 3 |
+
optim:
|
| 4 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 5 |
+
lr: 1.0e-06
|
| 6 |
+
lr_warmup_steps_ratio: 0.0
|
| 7 |
+
total_training_steps: -1
|
| 8 |
+
weight_decay: 0.01
|
| 9 |
+
lr_warmup_steps: -1
|
| 10 |
+
betas:
|
| 11 |
+
- 0.9
|
| 12 |
+
- 0.999
|
| 13 |
+
clip_grad: 1.0
|
| 14 |
+
min_lr_ratio: 0.0
|
| 15 |
+
num_cycles: 0.5
|
| 16 |
+
warmup_style: constant
|
| 17 |
+
fsdp_config:
|
| 18 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 19 |
+
wrap_policy:
|
| 20 |
+
min_num_params: 0
|
| 21 |
+
param_offload: false
|
| 22 |
+
optimizer_offload: false
|
| 23 |
+
offload_policy: false
|
| 24 |
+
reshard_after_forward: true
|
| 25 |
+
fsdp_size: -1
|
| 26 |
+
forward_prefetch: false
|
| 27 |
+
model_dtype: fp32
|
| 28 |
+
use_orig_params: false
|
| 29 |
+
ulysses_sequence_parallel_size: 1
|
| 30 |
+
entropy_from_logits_with_chunking: false
|
| 31 |
+
use_torch_compile: true
|
| 32 |
+
entropy_checkpointing: false
|
| 33 |
+
forward_only: false
|
| 34 |
+
strategy: fsdp
|
| 35 |
+
_target_: verl.workers.config.FSDPActorConfig
|
| 36 |
+
strategy: fsdp
|
| 37 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 38 |
+
ppo_micro_batch_size: null
|
| 39 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 40 |
+
use_dynamic_bsz: false
|
| 41 |
+
ppo_max_token_len_per_gpu: 16384
|
| 42 |
+
clip_ratio: 0.2
|
| 43 |
+
clip_ratio_low: 0.2
|
| 44 |
+
clip_ratio_high: 0.28
|
| 45 |
+
freeze_vision_tower: false
|
| 46 |
+
policy_loss:
|
| 47 |
+
_target_: verl.workers.config.PolicyLossConfig
|
| 48 |
+
loss_mode: vanilla
|
| 49 |
+
clip_cov_ratio: 0.0002
|
| 50 |
+
clip_cov_lb: 1.0
|
| 51 |
+
clip_cov_ub: 5.0
|
| 52 |
+
kl_cov_ratio: 0.0002
|
| 53 |
+
ppo_kl_coef: 0.1
|
| 54 |
+
clip_ratio_c: 3.0
|
| 55 |
+
loss_agg_mode: token-mean
|
| 56 |
+
entropy_coeff: 0.001
|
| 57 |
+
tis_imp_ratio_cap: -1
|
| 58 |
+
use_kl_loss: false
|
| 59 |
+
use_torch_compile: true
|
| 60 |
+
kl_loss_coef: 0.0
|
| 61 |
+
kl_loss_type: kl
|
| 62 |
+
ppo_epochs: 1
|
| 63 |
+
shuffle: false
|
| 64 |
+
checkpoint:
|
| 65 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 66 |
+
save_contents:
|
| 67 |
+
- model
|
| 68 |
+
- optimizer
|
| 69 |
+
- extra
|
| 70 |
+
load_contents: ${.save_contents}
|
| 71 |
+
async_save: false
|
| 72 |
+
use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
|
| 73 |
+
profiler:
|
| 74 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 75 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 76 |
+
enable: false
|
| 77 |
+
all_ranks: false
|
| 78 |
+
ranks: []
|
| 79 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 80 |
+
tool_config:
|
| 81 |
+
nsys:
|
| 82 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 83 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 84 |
+
npu:
|
| 85 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 86 |
+
contents: []
|
| 87 |
+
level: level1
|
| 88 |
+
analysis: true
|
| 89 |
+
discrete: false
|
| 90 |
+
torch:
|
| 91 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 92 |
+
step_start: 0
|
| 93 |
+
step_end: null
|
| 94 |
+
torch_memory:
|
| 95 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 96 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 97 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 98 |
+
grad_clip: 1.0
|
| 99 |
+
ulysses_sequence_parallel_size: 1
|
| 100 |
+
entropy_from_logits_with_chunking: false
|
| 101 |
+
entropy_checkpointing: false
|
| 102 |
+
use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
|
| 103 |
+
use_ref: true
|
| 104 |
+
grpo_advantage_length_weight: ${grpo_advantage_length_weight}
|
| 105 |
+
filter_loss_scaling: none
|
| 106 |
+
ref:
|
| 107 |
+
strategy: ${actor_rollout_ref.actor.strategy}
|
| 108 |
+
use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
|
| 109 |
+
log_prob_micro_batch_size: null
|
| 110 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 111 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 112 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 113 |
+
profiler:
|
| 114 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 115 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 116 |
+
enable: false
|
| 117 |
+
all_ranks: false
|
| 118 |
+
ranks: []
|
| 119 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 120 |
+
tool_config:
|
| 121 |
+
nsys:
|
| 122 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 123 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 124 |
+
npu:
|
| 125 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 126 |
+
contents: []
|
| 127 |
+
level: level1
|
| 128 |
+
analysis: true
|
| 129 |
+
discrete: false
|
| 130 |
+
torch:
|
| 131 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 132 |
+
step_start: 0
|
| 133 |
+
step_end: null
|
| 134 |
+
torch_memory:
|
| 135 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 136 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 137 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 138 |
+
fsdp_config:
|
| 139 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 140 |
+
wrap_policy:
|
| 141 |
+
min_num_params: 0
|
| 142 |
+
param_offload: false
|
| 143 |
+
optimizer_offload: false
|
| 144 |
+
offload_policy: false
|
| 145 |
+
reshard_after_forward: true
|
| 146 |
+
fsdp_size: -1
|
| 147 |
+
forward_prefetch: false
|
| 148 |
+
model_dtype: fp32
|
| 149 |
+
use_orig_params: false
|
| 150 |
+
ulysses_sequence_parallel_size: 1
|
| 151 |
+
entropy_from_logits_with_chunking: false
|
| 152 |
+
use_torch_compile: true
|
| 153 |
+
entropy_checkpointing: false
|
| 154 |
+
forward_only: false
|
| 155 |
+
strategy: fsdp
|
| 156 |
+
model: null
|
| 157 |
+
ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
|
| 158 |
+
entropy_from_logits_with_chunking: false
|
| 159 |
+
entropy_checkpointing: false
|
| 160 |
+
rollout:
|
| 161 |
+
_target_: verl.workers.config.RolloutConfig
|
| 162 |
+
name: vllm
|
| 163 |
+
mode: sync
|
| 164 |
+
temperature: 1
|
| 165 |
+
top_k: -1
|
| 166 |
+
top_p: 1
|
| 167 |
+
prompt_length: 1
|
| 168 |
+
response_length: 400
|
| 169 |
+
dtype: bfloat16
|
| 170 |
+
gpu_memory_utilization: 0.7
|
| 171 |
+
ignore_eos: false
|
| 172 |
+
enforce_eager: true
|
| 173 |
+
cudagraph_capture_sizes: null
|
| 174 |
+
free_cache_engine: true
|
| 175 |
+
tensor_model_parallel_size: 1
|
| 176 |
+
data_parallel_size: 1
|
| 177 |
+
expert_parallel_size: 1
|
| 178 |
+
max_num_batched_tokens: 16384
|
| 179 |
+
max_model_len: 16384
|
| 180 |
+
max_num_seqs: 1024
|
| 181 |
+
enable_chunked_prefill: true
|
| 182 |
+
enable_prefix_caching: true
|
| 183 |
+
load_format: auto
|
| 184 |
+
log_prob_micro_batch_size: null
|
| 185 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 186 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 187 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 188 |
+
disable_log_stats: true
|
| 189 |
+
do_sample: true
|
| 190 |
+
'n': 1
|
| 191 |
+
over_sample_rate: 0
|
| 192 |
+
multi_stage_wake_up: false
|
| 193 |
+
engine_kwargs:
|
| 194 |
+
vllm: {}
|
| 195 |
+
sglang: {}
|
| 196 |
+
val_kwargs:
|
| 197 |
+
_target_: verl.workers.config.SamplingConfig
|
| 198 |
+
top_k: -1
|
| 199 |
+
top_p: 1.0
|
| 200 |
+
temperature: 0.5
|
| 201 |
+
'n': 1
|
| 202 |
+
do_sample: true
|
| 203 |
+
multi_turn:
|
| 204 |
+
_target_: verl.workers.config.MultiTurnConfig
|
| 205 |
+
enable: false
|
| 206 |
+
max_assistant_turns: null
|
| 207 |
+
tool_config_path: null
|
| 208 |
+
max_user_turns: null
|
| 209 |
+
max_parallel_calls: 1
|
| 210 |
+
max_tool_response_length: 256
|
| 211 |
+
tool_response_truncate_side: middle
|
| 212 |
+
interaction_config_path: null
|
| 213 |
+
use_inference_chat_template: false
|
| 214 |
+
tokenization_sanity_check_mode: strict
|
| 215 |
+
format: hermes
|
| 216 |
+
num_repeat_rollouts: null
|
| 217 |
+
calculate_log_probs: false
|
| 218 |
+
agent:
|
| 219 |
+
_target_: verl.workers.config.AgentLoopConfig
|
| 220 |
+
num_workers: 8
|
| 221 |
+
agent_loop_config_path: null
|
| 222 |
+
custom_async_server:
|
| 223 |
+
_target_: verl.workers.config.CustomAsyncServerConfig
|
| 224 |
+
path: null
|
| 225 |
+
name: null
|
| 226 |
+
update_weights_bucket_megabytes: 512
|
| 227 |
+
trace:
|
| 228 |
+
_target_: verl.workers.config.TraceConfig
|
| 229 |
+
backend: null
|
| 230 |
+
token2text: false
|
| 231 |
+
skip_rollout: false
|
| 232 |
+
skip_dump_dir: /tmp/rollout_dump
|
| 233 |
+
skip_tokenizer_init: true
|
| 234 |
+
profiler:
|
| 235 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 236 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 237 |
+
enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
|
| 238 |
+
all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
|
| 239 |
+
ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
|
| 240 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 241 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 242 |
+
layered_summon: false
|
| 243 |
+
rollout_filter_value: 0.9
|
| 244 |
+
rollout_filter_strategy: top_p
|
| 245 |
+
rollout_filter_type: largest
|
| 246 |
+
rollout_filter_include_zero: true
|
| 247 |
+
rollout_filter_top_p_prob_mode: linear
|
| 248 |
+
rollout_filter_selection_eps: 0.01
|
| 249 |
+
rollout_filter_empty_stop_steps: 5
|
| 250 |
+
rollout_filter_metric: reward_variance
|
| 251 |
+
gradient_analysis_num_buckets: 6
|
| 252 |
+
gradient_analysis_bucket_mode: quantile
|
| 253 |
+
model:
|
| 254 |
+
_target_: verl.workers.config.HFModelConfig
|
| 255 |
+
path: ${model_path}
|
| 256 |
+
hf_config_path: null
|
| 257 |
+
tokenizer_path: null
|
| 258 |
+
use_shm: false
|
| 259 |
+
trust_remote_code: false
|
| 260 |
+
custom_chat_template: null
|
| 261 |
+
external_lib: null
|
| 262 |
+
override_config: {}
|
| 263 |
+
enable_gradient_checkpointing: true
|
| 264 |
+
enable_activation_offload: false
|
| 265 |
+
use_remove_padding: false
|
| 266 |
+
lora_rank: ${lora.rank}
|
| 267 |
+
lora_alpha: ${lora.alpha}
|
| 268 |
+
target_modules: ${lora.target_modules}
|
| 269 |
+
exclude_modules: null
|
| 270 |
+
use_liger: false
|
| 271 |
+
use_fused_kernels: false
|
| 272 |
+
fused_kernel_options:
|
| 273 |
+
impl_backend: torch
|
| 274 |
+
hybrid_engine: true
|
| 275 |
+
nccl_timeout: 600
|
| 276 |
+
data:
|
| 277 |
+
tokenizer: null
|
| 278 |
+
use_shm: false
|
| 279 |
+
train_files: ~/data/rlhf/gsm8k/train.parquet
|
| 280 |
+
val_files: ~/data/rlhf/gsm8k/test.parquet
|
| 281 |
+
prompt_key: prompt
|
| 282 |
+
reward_fn_key: data_source
|
| 283 |
+
max_prompt_length: null
|
| 284 |
+
max_response_length: null
|
| 285 |
+
train_batch_size: null
|
| 286 |
+
val_batch_size: null
|
| 287 |
+
return_raw_input_ids: false
|
| 288 |
+
return_raw_chat: false
|
| 289 |
+
return_full_prompt: false
|
| 290 |
+
shuffle: true
|
| 291 |
+
dataloader_num_workers: 8
|
| 292 |
+
validation_shuffle: false
|
| 293 |
+
filter_overlong_prompts: false
|
| 294 |
+
filter_overlong_prompts_workers: 1
|
| 295 |
+
truncation: error
|
| 296 |
+
image_key: images
|
| 297 |
+
video_key: videos
|
| 298 |
+
trust_remote_code: false
|
| 299 |
+
custom_cls:
|
| 300 |
+
path: null
|
| 301 |
+
name: null
|
| 302 |
+
return_multi_modal_inputs: true
|
| 303 |
+
sampler:
|
| 304 |
+
class_path: null
|
| 305 |
+
class_name: null
|
| 306 |
+
datagen:
|
| 307 |
+
path: null
|
| 308 |
+
name: null
|
| 309 |
+
apply_chat_template_kwargs: {}
|
| 310 |
+
critic:
|
| 311 |
+
optim:
|
| 312 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 313 |
+
lr: 1.0e-05
|
| 314 |
+
lr_warmup_steps_ratio: 0.0
|
| 315 |
+
total_training_steps: -1
|
| 316 |
+
weight_decay: 0.01
|
| 317 |
+
lr_warmup_steps: -1
|
| 318 |
+
betas:
|
| 319 |
+
- 0.9
|
| 320 |
+
- 0.999
|
| 321 |
+
clip_grad: 1.0
|
| 322 |
+
min_lr_ratio: 0.0
|
| 323 |
+
num_cycles: 0.5
|
| 324 |
+
warmup_style: constant
|
| 325 |
+
model:
|
| 326 |
+
fsdp_config:
|
| 327 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 328 |
+
wrap_policy:
|
| 329 |
+
min_num_params: 0
|
| 330 |
+
param_offload: false
|
| 331 |
+
optimizer_offload: false
|
| 332 |
+
offload_policy: false
|
| 333 |
+
reshard_after_forward: true
|
| 334 |
+
fsdp_size: -1
|
| 335 |
+
forward_prefetch: false
|
| 336 |
+
model_dtype: fp32
|
| 337 |
+
use_orig_params: false
|
| 338 |
+
ulysses_sequence_parallel_size: 1
|
| 339 |
+
entropy_from_logits_with_chunking: false
|
| 340 |
+
use_torch_compile: true
|
| 341 |
+
entropy_checkpointing: false
|
| 342 |
+
forward_only: false
|
| 343 |
+
strategy: fsdp
|
| 344 |
+
path: ${model_path}
|
| 345 |
+
tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
|
| 346 |
+
override_config: {}
|
| 347 |
+
external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
|
| 348 |
+
trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
|
| 349 |
+
_target_: verl.workers.config.FSDPCriticModelCfg
|
| 350 |
+
use_shm: false
|
| 351 |
+
enable_gradient_checkpointing: true
|
| 352 |
+
enable_activation_offload: false
|
| 353 |
+
use_remove_padding: false
|
| 354 |
+
lora_rank: ${lora.rank}
|
| 355 |
+
lora_alpha: ${lora.alpha}
|
| 356 |
+
target_modules: ${lora.target_modules}
|
| 357 |
+
_target_: verl.workers.config.FSDPCriticConfig
|
| 358 |
+
rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
|
| 359 |
+
strategy: fsdp
|
| 360 |
+
enable: null
|
| 361 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 362 |
+
ppo_micro_batch_size: null
|
| 363 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 364 |
+
use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 365 |
+
ppo_max_token_len_per_gpu: 32768
|
| 366 |
+
forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
|
| 367 |
+
ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
|
| 368 |
+
shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
|
| 369 |
+
cliprange_value: 0.5
|
| 370 |
+
loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
|
| 371 |
+
checkpoint:
|
| 372 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 373 |
+
save_contents:
|
| 374 |
+
- model
|
| 375 |
+
- optimizer
|
| 376 |
+
- extra
|
| 377 |
+
load_contents: ${.save_contents}
|
| 378 |
+
async_save: false
|
| 379 |
+
profiler:
|
| 380 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 381 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 382 |
+
enable: false
|
| 383 |
+
all_ranks: false
|
| 384 |
+
ranks: []
|
| 385 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 386 |
+
tool_config:
|
| 387 |
+
nsys:
|
| 388 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 389 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 390 |
+
npu:
|
| 391 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 392 |
+
contents: []
|
| 393 |
+
level: level1
|
| 394 |
+
analysis: true
|
| 395 |
+
discrete: false
|
| 396 |
+
torch:
|
| 397 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 398 |
+
step_start: 0
|
| 399 |
+
step_end: null
|
| 400 |
+
torch_memory:
|
| 401 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 402 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 403 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 404 |
+
forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
|
| 405 |
+
forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
|
| 406 |
+
ulysses_sequence_parallel_size: 1
|
| 407 |
+
grad_clip: 1.0
|
| 408 |
+
reward_model:
|
| 409 |
+
enable: false
|
| 410 |
+
enable_resource_pool: false
|
| 411 |
+
n_gpus_per_node: 0
|
| 412 |
+
nnodes: 0
|
| 413 |
+
strategy: fsdp
|
| 414 |
+
model:
|
| 415 |
+
input_tokenizer: ${actor_rollout_ref.model.path}
|
| 416 |
+
path: ~/models/FsfairX-LLaMA3-RM-v0.1
|
| 417 |
+
external_lib: ${actor_rollout_ref.model.external_lib}
|
| 418 |
+
trust_remote_code: false
|
| 419 |
+
use_shm: false
|
| 420 |
+
use_remove_padding: false
|
| 421 |
+
use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
|
| 422 |
+
fsdp_config:
|
| 423 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 424 |
+
wrap_policy:
|
| 425 |
+
min_num_params: 0
|
| 426 |
+
param_offload: false
|
| 427 |
+
reshard_after_forward: true
|
| 428 |
+
fsdp_size: -1
|
| 429 |
+
forward_prefetch: false
|
| 430 |
+
micro_batch_size: null
|
| 431 |
+
micro_batch_size_per_gpu: null
|
| 432 |
+
max_length: null
|
| 433 |
+
use_dynamic_bsz: ${critic.use_dynamic_bsz}
|
| 434 |
+
forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
|
| 435 |
+
reward_manager: naive
|
| 436 |
+
launch_reward_fn_async: false
|
| 437 |
+
sandbox_fusion:
|
| 438 |
+
url: null
|
| 439 |
+
max_concurrent: 64
|
| 440 |
+
memory_limit_mb: 1024
|
| 441 |
+
profiler:
|
| 442 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 443 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 444 |
+
enable: false
|
| 445 |
+
all_ranks: false
|
| 446 |
+
ranks: []
|
| 447 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 448 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 449 |
+
ulysses_sequence_parallel_size: 1
|
| 450 |
+
custom_reward_function:
|
| 451 |
+
path: null
|
| 452 |
+
name: compute_score
|
| 453 |
+
algorithm:
|
| 454 |
+
_target_: verl.trainer.config.AlgoConfig
|
| 455 |
+
gamma: 1.0
|
| 456 |
+
lam: 1.0
|
| 457 |
+
adv_estimator: gae
|
| 458 |
+
norm_adv_by_std_in_grpo: true
|
| 459 |
+
use_kl_in_reward: false
|
| 460 |
+
kl_penalty: kl
|
| 461 |
+
kl_ctrl:
|
| 462 |
+
_target_: verl.trainer.config.KLControlConfig
|
| 463 |
+
type: fixed
|
| 464 |
+
kl_coef: 0.0
|
| 465 |
+
horizon: 10000
|
| 466 |
+
target_kl: 0.1
|
| 467 |
+
use_pf_ppo: false
|
| 468 |
+
pf_ppo:
|
| 469 |
+
reweight_method: pow
|
| 470 |
+
weight_pow: 2.0
|
| 471 |
+
high_level_gamma: 0.95
|
| 472 |
+
bi_level_gae: false
|
| 473 |
+
zero_task_advantage: false
|
| 474 |
+
soft_advantage_reweight: false
|
| 475 |
+
trainer:
|
| 476 |
+
balance_batch: true
|
| 477 |
+
total_epochs: 30
|
| 478 |
+
total_training_steps: 1000
|
| 479 |
+
project_name: ragen
|
| 480 |
+
experiment_name: sudoku-main
|
| 481 |
+
logger:
|
| 482 |
+
- console
|
| 483 |
+
- wandb
|
| 484 |
+
log_val_generations: 0
|
| 485 |
+
rollout_data_dir: null
|
| 486 |
+
validation_data_dir: null
|
| 487 |
+
nnodes: 1
|
| 488 |
+
n_gpus_per_node: 8
|
| 489 |
+
save_freq: -1
|
| 490 |
+
esi_redundant_time: 0
|
| 491 |
+
resume_mode: auto
|
| 492 |
+
resume_from_path: null
|
| 493 |
+
val_before_train: true
|
| 494 |
+
val_only: false
|
| 495 |
+
test_freq: 10
|
| 496 |
+
critic_warmup: 0
|
| 497 |
+
default_hdfs_dir: null
|
| 498 |
+
del_local_ckpt_after_load: false
|
| 499 |
+
default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
|
| 500 |
+
max_actor_ckpt_to_keep: 1
|
| 501 |
+
max_critic_ckpt_to_keep: 1
|
| 502 |
+
ray_wait_register_center_timeout: 300
|
| 503 |
+
device: cuda
|
| 504 |
+
use_legacy_worker_impl: auto
|
| 505 |
+
local_log_dir: results/
|
| 506 |
+
validation_steps: 1
|
| 507 |
+
generations_to_log_to_wandb:
|
| 508 |
+
val: 20
|
| 509 |
+
log_group_rv_table: false
|
| 510 |
+
gradient_analysis_mode: false
|
| 511 |
+
gradient_analysis_every: 50
|
| 512 |
+
gradient_analysis_env_groups: null
|
| 513 |
+
gradient_analysis_group_size: null
|
| 514 |
+
gradient_analysis_log_prefilter: false
|
| 515 |
+
gradient_analysis_only: false
|
| 516 |
+
exit_after_gradient_analysis: false
|
| 517 |
+
global_profiler:
|
| 518 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 519 |
+
tool: null
|
| 520 |
+
steps: null
|
| 521 |
+
profile_continuous_steps: false
|
| 522 |
+
save_path: outputs/profile
|
| 523 |
+
global_tool_config:
|
| 524 |
+
nsys:
|
| 525 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 526 |
+
discrete: false
|
| 527 |
+
controller_nsight_options:
|
| 528 |
+
trace: cuda,nvtx,cublas,ucx
|
| 529 |
+
cuda-memory-usage: 'true'
|
| 530 |
+
cuda-graph-trace: graph
|
| 531 |
+
worker_nsight_options:
|
| 532 |
+
trace: cuda,nvtx,cublas,ucx
|
| 533 |
+
cuda-memory-usage: 'true'
|
| 534 |
+
cuda-graph-trace: graph
|
| 535 |
+
capture-range: cudaProfilerApi
|
| 536 |
+
capture-range-end: null
|
| 537 |
+
kill: none
|
| 538 |
+
torch_memory:
|
| 539 |
+
trace_alloc_max_entries: 100000
|
| 540 |
+
stack_depth: 32
|
| 541 |
+
context: all
|
| 542 |
+
stacks: all
|
| 543 |
+
kw_args: {}
|
| 544 |
+
ray_kwargs:
|
| 545 |
+
ray_init:
|
| 546 |
+
num_cpus: null
|
| 547 |
+
timeline_json_file: null
|
| 548 |
+
custom_envs:
|
| 549 |
+
SimpleSokoban:
|
| 550 |
+
env_type: sokoban
|
| 551 |
+
max_actions_per_traj: 10
|
| 552 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 553 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 554 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 555 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 556 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 557 |
+
max_tokens: 100
|
| 558 |
+
parallel_friendly: false
|
| 559 |
+
max_workers: 32
|
| 560 |
+
env_config:
|
| 561 |
+
dim_x: 6
|
| 562 |
+
dim_y: 6
|
| 563 |
+
num_boxes: 1
|
| 564 |
+
max_steps: 100
|
| 565 |
+
LargerSokoban:
|
| 566 |
+
env_type: sokoban
|
| 567 |
+
max_actions_per_traj: 10
|
| 568 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 569 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 570 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 571 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 572 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 573 |
+
max_tokens: 100
|
| 574 |
+
parallel_friendly: false
|
| 575 |
+
max_workers: 32
|
| 576 |
+
env_config:
|
| 577 |
+
dim_x: 8
|
| 578 |
+
dim_y: 8
|
| 579 |
+
num_boxes: 2
|
| 580 |
+
max_steps: 100
|
| 581 |
+
search_depth: 10
|
| 582 |
+
SokobanDifferentGridVocab:
|
| 583 |
+
env_type: sokoban
|
| 584 |
+
max_actions_per_traj: 10
|
| 585 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 586 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 587 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 588 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 589 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 590 |
+
max_tokens: 100
|
| 591 |
+
parallel_friendly: false
|
| 592 |
+
max_workers: 32
|
| 593 |
+
env_config:
|
| 594 |
+
search_depth: 30
|
| 595 |
+
dim_x: 6
|
| 596 |
+
dim_y: 6
|
| 597 |
+
num_boxes: 1
|
| 598 |
+
max_steps: 100
|
| 599 |
+
grid_lookup:
|
| 600 |
+
0: W
|
| 601 |
+
1: .
|
| 602 |
+
2: G
|
| 603 |
+
3: C
|
| 604 |
+
4: B
|
| 605 |
+
5: A
|
| 606 |
+
6: '@'
|
| 607 |
+
grid_vocab:
|
| 608 |
+
W: wall
|
| 609 |
+
.: empty
|
| 610 |
+
G: target
|
| 611 |
+
C: box on target
|
| 612 |
+
B: box
|
| 613 |
+
A: player
|
| 614 |
+
'@': player on target
|
| 615 |
+
CoordSokoban:
|
| 616 |
+
env_type: sokoban
|
| 617 |
+
max_actions_per_traj: 10
|
| 618 |
+
env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
|
| 619 |
+
\ need to push all boxes to targets.\nYou are provided with a symbol grid and\
|
| 620 |
+
\ the zero-indexed coordinates of the player, each box, and each target. \n\
|
| 621 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
|
| 622 |
+
\ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
|
| 623 |
+
\ the same direction. \nYou cannot push a box through a wall, and you cannot\
|
| 624 |
+
\ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
|
| 625 |
+
\ || Right || Up</answer>.\n"
|
| 626 |
+
max_tokens: 120
|
| 627 |
+
parallel_friendly: false
|
| 628 |
+
max_workers: 32
|
| 629 |
+
env_config:
|
| 630 |
+
dim_x: 6
|
| 631 |
+
dim_y: 6
|
| 632 |
+
num_boxes: 1
|
| 633 |
+
max_steps: 100
|
| 634 |
+
observation_format: grid_coord
|
| 635 |
+
VisualSimpleSokoban:
|
| 636 |
+
env_type: sokoban
|
| 637 |
+
max_actions_per_traj: 10
|
| 638 |
+
env_instruction: You are solving the Sokoban puzzle. You are the player and you
|
| 639 |
+
need to push all boxes to targets. When you are right next to a box, you can
|
| 640 |
+
push it by moving in the same direction. You cannot push a box through a wall,
|
| 641 |
+
and you cannot pull a box. The answer should be a sequence of actions, like
|
| 642 |
+
<answer>Right || Right || Up</answer>
|
| 643 |
+
max_tokens: 100
|
| 644 |
+
parallel_friendly: false
|
| 645 |
+
max_workers: 32
|
| 646 |
+
env_config:
|
| 647 |
+
dim_x: 6
|
| 648 |
+
dim_y: 6
|
| 649 |
+
num_boxes: 1
|
| 650 |
+
max_steps: 100
|
| 651 |
+
render_mode: rgb_array
|
| 652 |
+
Alfworld:
|
| 653 |
+
env_type: alfworld
|
| 654 |
+
max_actions_per_traj: 50
|
| 655 |
+
parallel_friendly: false
|
| 656 |
+
max_workers: 1
|
| 657 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 658 |
+
|
| 659 |
+
Complete household tasks by navigating and interacting with objects.
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 663 |
+
process MUST be enclosed within <think> </think> tags.
|
| 664 |
+
|
| 665 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 666 |
+
for current step and present it within <answer>...</answer> tags.
|
| 667 |
+
|
| 668 |
+
'
|
| 669 |
+
max_tokens: 512
|
| 670 |
+
env_config:
|
| 671 |
+
eval_dataset: eval_in_distribution
|
| 672 |
+
AlfworldOOD:
|
| 673 |
+
env_type: alfworld
|
| 674 |
+
max_actions_per_traj: 50
|
| 675 |
+
parallel_friendly: false
|
| 676 |
+
max_workers: 1
|
| 677 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 678 |
+
|
| 679 |
+
Complete household tasks by navigating and interacting with objects.
|
| 680 |
+
|
| 681 |
+
|
| 682 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 683 |
+
process MUST be enclosed within <think> </think> tags.
|
| 684 |
+
|
| 685 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 686 |
+
for current step and present it within <answer>...</answer> tags.
|
| 687 |
+
|
| 688 |
+
'
|
| 689 |
+
max_tokens: 512
|
| 690 |
+
env_config:
|
| 691 |
+
eval_dataset: eval_out_of_distribution
|
| 692 |
+
Countdown:
|
| 693 |
+
env_type: countdown
|
| 694 |
+
max_actions_per_traj: 1
|
| 695 |
+
env_instruction: 'You are solving the Countdown puzzle. You should use the num
|
| 696 |
+
list to create an equation that equals the target. Example answer format: <think>
|
| 697 |
+
To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
|
| 698 |
+
= 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
|
| 699 |
+
max_tokens: 100
|
| 700 |
+
parallel_friendly: false
|
| 701 |
+
max_workers: 32
|
| 702 |
+
env_config: null
|
| 703 |
+
Bandit:
|
| 704 |
+
env_type: bandit
|
| 705 |
+
max_actions_per_traj: 1
|
| 706 |
+
env_instruction: ''
|
| 707 |
+
max_tokens: 100
|
| 708 |
+
parallel_friendly: false
|
| 709 |
+
max_workers: 32
|
| 710 |
+
env_config:
|
| 711 |
+
split: train
|
| 712 |
+
BanditTest:
|
| 713 |
+
env_type: bandit
|
| 714 |
+
max_actions_per_traj: 1
|
| 715 |
+
env_instruction: ''
|
| 716 |
+
max_tokens: 100
|
| 717 |
+
parallel_friendly: false
|
| 718 |
+
max_workers: 32
|
| 719 |
+
env_config:
|
| 720 |
+
split: test
|
| 721 |
+
DeepCoder:
|
| 722 |
+
env_type: deepcoder
|
| 723 |
+
max_actions_per_traj: 1
|
| 724 |
+
env_instruction: 'You are solving a coding task. Provide a complete Python function
|
| 725 |
+
solution only. Format: <answer>...</answer>'
|
| 726 |
+
max_tokens: 8000
|
| 727 |
+
parallel_friendly: true
|
| 728 |
+
max_workers: 32
|
| 729 |
+
env_config:
|
| 730 |
+
max_steps: 1
|
| 731 |
+
FrozenLake:
|
| 732 |
+
env_type: frozen_lake
|
| 733 |
+
max_actions_per_traj: 10
|
| 734 |
+
env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
|
| 735 |
+
go to the target. You may move to the unintended direction due to the slippery
|
| 736 |
+
ice. Example answer format: <think>To forbid the hole and go to the target,
|
| 737 |
+
I should go left then go up.</think><answer>Left || Up</answer>'
|
| 738 |
+
max_tokens: 100
|
| 739 |
+
parallel_friendly: false
|
| 740 |
+
max_workers: 32
|
| 741 |
+
env_config:
|
| 742 |
+
success_rate: 0.8
|
| 743 |
+
CoordFrozenLake:
|
| 744 |
+
env_type: frozen_lake
|
| 745 |
+
max_actions_per_traj: 10
|
| 746 |
+
env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
|
| 747 |
+
both a symbol grid and zero-indexed coordinates for the start, goal, player,
|
| 748 |
+
and any holes.
|
| 749 |
+
|
| 750 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner
|
| 751 |
+
(5, 5).
|
| 752 |
+
|
| 753 |
+
Beware that the ice is slippery, so the agent might slide and end up in an unintended
|
| 754 |
+
tile.
|
| 755 |
+
|
| 756 |
+
Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
|
| 757 |
+
|
| 758 |
+
'
|
| 759 |
+
max_tokens: 120
|
| 760 |
+
parallel_friendly: false
|
| 761 |
+
max_workers: 32
|
| 762 |
+
env_config:
|
| 763 |
+
observation_format: grid_coord
|
| 764 |
+
success_rate: 0.8
|
| 765 |
+
MetamathQA:
|
| 766 |
+
env_type: metamathqa
|
| 767 |
+
max_actions_per_traj: 1
|
| 768 |
+
env_instruction: 'You are solving Math problems. '
|
| 769 |
+
max_tokens: 100
|
| 770 |
+
env_config: null
|
| 771 |
+
WebShopFull:
|
| 772 |
+
env_type: webshop
|
| 773 |
+
max_actions_per_traj: 15
|
| 774 |
+
env_instruction: You are an expert autonomous agent operating in the WebShop e‑commerce
|
| 775 |
+
environment.
|
| 776 |
+
max_tokens: 200
|
| 777 |
+
env_config:
|
| 778 |
+
dataset: full
|
| 779 |
+
WebShop:
|
| 780 |
+
env_type: webshop
|
| 781 |
+
max_actions_per_traj: 9
|
| 782 |
+
env_instruction: 'You are browsing an online shop. Based on the instruction, buy
|
| 783 |
+
a product that close to the production description. You need to search, read
|
| 784 |
+
the search results, pick a product, choose the size and color and buy. You should
|
| 785 |
+
only choose action from the available actions list provided later. Example
|
| 786 |
+
process: I need a gingko light and 20x20 pillow cover that is hand painted.
|
| 787 |
+
First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
|
| 788 |
+
with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
|
| 789 |
+
max_tokens: 200
|
| 790 |
+
env_config:
|
| 791 |
+
dataset: small
|
| 792 |
+
Lean:
|
| 793 |
+
env_type: lean
|
| 794 |
+
max_actions_per_traj: 30
|
| 795 |
+
env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
|
| 796 |
+
propose a sequence of tactics that completes the proof. Think step by step about
|
| 797 |
+
which tactics to apply next. Provide tactics separated by '||', for example
|
| 798 |
+
<answer>intro || simp || rfl</answer>.
|
| 799 |
+
max_tokens: 512
|
| 800 |
+
parallel_friendly: true
|
| 801 |
+
max_workers: 32
|
| 802 |
+
env_config: null
|
| 803 |
+
SimpleSudoku:
|
| 804 |
+
env_type: sudoku
|
| 805 |
+
max_actions_per_traj: 20
|
| 806 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 807 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 808 |
+
|
| 809 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 810 |
+
shown as dots (.).
|
| 811 |
+
|
| 812 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 813 |
+
or <answer>2,3,5</answer>
|
| 814 |
+
|
| 815 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 816 |
+
if any occur.
|
| 817 |
+
|
| 818 |
+
'
|
| 819 |
+
max_tokens: 150
|
| 820 |
+
parallel_friendly: false
|
| 821 |
+
max_workers: 32
|
| 822 |
+
env_config:
|
| 823 |
+
grid_size: 9
|
| 824 |
+
difficulty: easy
|
| 825 |
+
render_format: with_feedback
|
| 826 |
+
show_conflicts: true
|
| 827 |
+
show_valid_numbers: true
|
| 828 |
+
max_steps: 81
|
| 829 |
+
MediumSudoku:
|
| 830 |
+
env_type: sudoku
|
| 831 |
+
max_actions_per_traj: 30
|
| 832 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 833 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 834 |
+
|
| 835 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 836 |
+
shown as dots (.).
|
| 837 |
+
|
| 838 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 839 |
+
or <answer>2,3,5</answer>
|
| 840 |
+
|
| 841 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 842 |
+
if any occur.
|
| 843 |
+
|
| 844 |
+
'
|
| 845 |
+
max_tokens: 150
|
| 846 |
+
parallel_friendly: false
|
| 847 |
+
max_workers: 32
|
| 848 |
+
env_config:
|
| 849 |
+
grid_size: 9
|
| 850 |
+
difficulty: medium
|
| 851 |
+
render_format: with_feedback
|
| 852 |
+
show_conflicts: true
|
| 853 |
+
show_valid_numbers: true
|
| 854 |
+
max_steps: 81
|
| 855 |
+
SearchQA:
|
| 856 |
+
env_type: search
|
| 857 |
+
max_actions_per_traj: 10
|
| 858 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 859 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 860 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 861 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 862 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 863 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 864 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 865 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 866 |
+
\ Platt]</answer>\n"
|
| 867 |
+
max_tokens: 300
|
| 868 |
+
parallel_friendly: true
|
| 869 |
+
max_workers: 32
|
| 870 |
+
env_config:
|
| 871 |
+
max_steps: 10
|
| 872 |
+
max_search_results: 5
|
| 873 |
+
SearchQAMock:
|
| 874 |
+
env_type: search
|
| 875 |
+
max_actions_per_traj: 10
|
| 876 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 877 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 878 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 879 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 880 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 881 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 882 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 883 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 884 |
+
\ Platt]</answer>\n"
|
| 885 |
+
max_tokens: 300
|
| 886 |
+
parallel_friendly: true
|
| 887 |
+
max_workers: 32
|
| 888 |
+
env_config:
|
| 889 |
+
max_steps: 10
|
| 890 |
+
max_search_results: 5
|
| 891 |
+
mock_mode: true
|
| 892 |
+
game_2048:
|
| 893 |
+
env_type: game_2048
|
| 894 |
+
max_actions_per_traj: 700
|
| 895 |
+
env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
|
| 896 |
+
by sliding Up, Right, Down, or Left.
|
| 897 |
+
|
| 898 |
+
If a move is invalid (no tiles move), a small penalty is applied. Respond with
|
| 899 |
+
a single action.
|
| 900 |
+
|
| 901 |
+
Example: <answer>Up</answer>
|
| 902 |
+
|
| 903 |
+
'
|
| 904 |
+
max_tokens: 8192
|
| 905 |
+
env_config: null
|
| 906 |
+
rubikscube:
|
| 907 |
+
env_type: rubikscube
|
| 908 |
+
max_actions_per_traj: 20
|
| 909 |
+
env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
|
| 910 |
+
is to restore the cube so that each of the faces consists of a single, unique
|
| 911 |
+
color.
|
| 912 |
+
|
| 913 |
+
Available actions use standard Singmaster notation for face rotations: U, U'',
|
| 914 |
+
D, D'', L, L'', R, R'', F, F'', B, B''.
|
| 915 |
+
|
| 916 |
+
- Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
|
| 917 |
+
|
| 918 |
+
- Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
|
| 919 |
+
prime ('') means 90° counter-clockwise (e.g., "R''").
|
| 920 |
+
|
| 921 |
+
Respond with a sequence of actions separated by "||".
|
| 922 |
+
|
| 923 |
+
Example: <answer>U</answer>
|
| 924 |
+
|
| 925 |
+
'
|
| 926 |
+
max_tokens: 96
|
| 927 |
+
env_config:
|
| 928 |
+
scramble_depth: 1
|
| 929 |
+
max_steps: 20
|
| 930 |
+
render_mode: text
|
| 931 |
+
system:
|
| 932 |
+
CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
|
| 933 |
+
seed:
|
| 934 |
+
train: 10000
|
| 935 |
+
val: 123
|
| 936 |
+
micro_batch_size_per_gpu: 1
|
| 937 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 938 |
+
ppo_mini_batch_size: 32
|
| 939 |
+
model_path: /mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
| 940 |
+
enable_response_mask: true
|
| 941 |
+
grpo_advantage_length_weight: false
|
| 942 |
+
lora:
|
| 943 |
+
rank: 0
|
| 944 |
+
alpha: 64
|
| 945 |
+
target_modules: all-linear
|
| 946 |
+
agent_proxy:
|
| 947 |
+
context_window_mode: full
|
| 948 |
+
max_context_window: -1
|
| 949 |
+
batch_adjust_mode: copy
|
| 950 |
+
max_turn: 15
|
| 951 |
+
action_sep: '||'
|
| 952 |
+
max_actions_per_turn: 1
|
| 953 |
+
use_turn_scores: false
|
| 954 |
+
enable_think: true
|
| 955 |
+
reward_normalization:
|
| 956 |
+
grouping: state
|
| 957 |
+
method: identity
|
| 958 |
+
collapse_detection:
|
| 959 |
+
compute_freq: 5
|
| 960 |
+
micro_batch_size: 128
|
| 961 |
+
first_turn_enabled: true
|
| 962 |
+
multi_turn_enabled: true
|
| 963 |
+
num_samples: 64
|
| 964 |
+
es_manager:
|
| 965 |
+
format_penalty: -0.1
|
| 966 |
+
train:
|
| 967 |
+
env_groups: 8
|
| 968 |
+
group_size: 16
|
| 969 |
+
env_configs:
|
| 970 |
+
tags:
|
| 971 |
+
- SimpleSudoku
|
| 972 |
+
n_groups:
|
| 973 |
+
- 8
|
| 974 |
+
val:
|
| 975 |
+
env_groups: 32
|
| 976 |
+
group_size: 16
|
| 977 |
+
env_configs:
|
| 978 |
+
tags:
|
| 979 |
+
- SimpleSudoku
|
| 980 |
+
n_groups:
|
| 981 |
+
- 32
|
| 982 |
+
ctx_manager:
|
| 983 |
+
generation:
|
| 984 |
+
gen_config:
|
| 985 |
+
response_length: ${actor_rollout_ref.rollout.response_length}
|
| 986 |
+
temperature: ${actor_rollout_ref.rollout.temperature}
|
| 987 |
+
top_p: ${actor_rollout_ref.rollout.top_p}
|
| 988 |
+
top_k: ${actor_rollout_ref.rollout.top_k}
|
| 989 |
+
kwargs: null
|
outputs/2026-05-15/14-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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
hydra:
|
| 2 |
+
run:
|
| 3 |
+
dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 4 |
+
sweep:
|
| 5 |
+
dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 6 |
+
subdir: ${hydra.job.num}
|
| 7 |
+
launcher:
|
| 8 |
+
_target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
|
| 9 |
+
sweeper:
|
| 10 |
+
_target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
|
| 11 |
+
max_batch_size: null
|
| 12 |
+
params: null
|
| 13 |
+
help:
|
| 14 |
+
app_name: ${hydra.job.name}
|
| 15 |
+
header: '${hydra.help.app_name} is powered by Hydra.
|
| 16 |
+
|
| 17 |
+
'
|
| 18 |
+
footer: 'Powered by Hydra (https://hydra.cc)
|
| 19 |
+
|
| 20 |
+
Use --hydra-help to view Hydra specific help
|
| 21 |
+
|
| 22 |
+
'
|
| 23 |
+
template: '${hydra.help.header}
|
| 24 |
+
|
| 25 |
+
== Configuration groups ==
|
| 26 |
+
|
| 27 |
+
Compose your configuration from those groups (group=option)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
$APP_CONFIG_GROUPS
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
== Config ==
|
| 34 |
+
|
| 35 |
+
Override anything in the config (foo.bar=value)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
$CONFIG
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
${hydra.help.footer}
|
| 42 |
+
|
| 43 |
+
'
|
| 44 |
+
hydra_help:
|
| 45 |
+
template: 'Hydra (${hydra.runtime.version})
|
| 46 |
+
|
| 47 |
+
See https://hydra.cc for more info.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
== Flags ==
|
| 51 |
+
|
| 52 |
+
$FLAGS_HELP
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
== Configuration groups ==
|
| 56 |
+
|
| 57 |
+
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
|
| 58 |
+
to command line)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
$HYDRA_CONFIG_GROUPS
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
Use ''--cfg hydra'' to Show the Hydra config.
|
| 65 |
+
|
| 66 |
+
'
|
| 67 |
+
hydra_help: ???
|
| 68 |
+
hydra_logging:
|
| 69 |
+
version: 1
|
| 70 |
+
formatters:
|
| 71 |
+
simple:
|
| 72 |
+
format: '[%(asctime)s][HYDRA] %(message)s'
|
| 73 |
+
handlers:
|
| 74 |
+
console:
|
| 75 |
+
class: logging.StreamHandler
|
| 76 |
+
formatter: simple
|
| 77 |
+
stream: ext://sys.stdout
|
| 78 |
+
root:
|
| 79 |
+
level: INFO
|
| 80 |
+
handlers:
|
| 81 |
+
- console
|
| 82 |
+
loggers:
|
| 83 |
+
logging_example:
|
| 84 |
+
level: DEBUG
|
| 85 |
+
disable_existing_loggers: false
|
| 86 |
+
job_logging:
|
| 87 |
+
version: 1
|
| 88 |
+
formatters:
|
| 89 |
+
simple:
|
| 90 |
+
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
|
| 91 |
+
handlers:
|
| 92 |
+
console:
|
| 93 |
+
class: logging.StreamHandler
|
| 94 |
+
formatter: simple
|
| 95 |
+
stream: ext://sys.stdout
|
| 96 |
+
file:
|
| 97 |
+
class: logging.FileHandler
|
| 98 |
+
formatter: simple
|
| 99 |
+
filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
|
| 100 |
+
root:
|
| 101 |
+
level: INFO
|
| 102 |
+
handlers:
|
| 103 |
+
- console
|
| 104 |
+
- file
|
| 105 |
+
disable_existing_loggers: false
|
| 106 |
+
env: {}
|
| 107 |
+
mode: RUN
|
| 108 |
+
searchpath:
|
| 109 |
+
- pkg://verl.trainer.config
|
| 110 |
+
callbacks: {}
|
| 111 |
+
output_subdir: .hydra
|
| 112 |
+
overrides:
|
| 113 |
+
hydra:
|
| 114 |
+
- hydra.mode=RUN
|
| 115 |
+
task:
|
| 116 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 117 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 118 |
+
- trainer.total_training_steps=1000
|
| 119 |
+
- model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
| 120 |
+
job:
|
| 121 |
+
name: train
|
| 122 |
+
chdir: null
|
| 123 |
+
override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct,trainer.total_training_steps=1000
|
| 124 |
+
id: ???
|
| 125 |
+
num: ???
|
| 126 |
+
config_name: _8_sudoku
|
| 127 |
+
env_set: {}
|
| 128 |
+
env_copy: []
|
| 129 |
+
config:
|
| 130 |
+
override_dirname:
|
| 131 |
+
kv_sep: '='
|
| 132 |
+
item_sep: ','
|
| 133 |
+
exclude_keys: []
|
| 134 |
+
runtime:
|
| 135 |
+
version: 1.3.2
|
| 136 |
+
version_base: '1.3'
|
| 137 |
+
cwd: /mnt/general/wanghy/RAGEN_v2
|
| 138 |
+
config_sources:
|
| 139 |
+
- path: hydra.conf
|
| 140 |
+
schema: pkg
|
| 141 |
+
provider: hydra
|
| 142 |
+
- path: /mnt/general/wanghy/RAGEN_v2/config
|
| 143 |
+
schema: file
|
| 144 |
+
provider: main
|
| 145 |
+
- path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
|
| 146 |
+
schema: file
|
| 147 |
+
provider: command-line
|
| 148 |
+
- path: verl.trainer.config
|
| 149 |
+
schema: pkg
|
| 150 |
+
provider: hydra.searchpath in main
|
| 151 |
+
- path: ''
|
| 152 |
+
schema: structured
|
| 153 |
+
provider: schema
|
| 154 |
+
output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-05-15/14-05-31
|
| 155 |
+
choices:
|
| 156 |
+
reward_model: dp_reward_model
|
| 157 |
+
critic: dp_critic
|
| 158 |
+
critic/../engine@critic.model.fsdp_config: fsdp
|
| 159 |
+
critic/../optim@critic.optim: fsdp
|
| 160 |
+
model@actor_rollout_ref.model: hf_model
|
| 161 |
+
rollout@actor_rollout_ref.rollout: rollout
|
| 162 |
+
ref@actor_rollout_ref.ref: dp_ref
|
| 163 |
+
ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
|
| 164 |
+
data: legacy_data
|
| 165 |
+
actor@actor_rollout_ref.actor: dp_actor
|
| 166 |
+
actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
|
| 167 |
+
actor/../optim@actor_rollout_ref.actor.optim: fsdp
|
| 168 |
+
hydra/env: default
|
| 169 |
+
hydra/callbacks: null
|
| 170 |
+
hydra/job_logging: default
|
| 171 |
+
hydra/hydra_logging: default
|
| 172 |
+
hydra/hydra_help: default
|
| 173 |
+
hydra/help: default
|
| 174 |
+
hydra/sweeper: basic
|
| 175 |
+
hydra/launcher: basic
|
| 176 |
+
hydra/output: default
|
| 177 |
+
verbose: false
|
outputs/2026-05-15/14-05-31/.hydra/overrides.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 2 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 3 |
+
- trainer.total_training_steps=1000
|
| 4 |
+
- model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
outputs/2026-05-15/14-05-31/train.log
ADDED
|
File without changes
|
outputs/2026-05-15/14-11-35/.hydra/config.yaml
ADDED
|
@@ -0,0 +1,989 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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0
|
| 15 |
+
num_cycles: 0.5
|
| 16 |
+
warmup_style: constant
|
| 17 |
+
fsdp_config:
|
| 18 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 19 |
+
wrap_policy:
|
| 20 |
+
min_num_params: 0
|
| 21 |
+
param_offload: false
|
| 22 |
+
optimizer_offload: false
|
| 23 |
+
offload_policy: false
|
| 24 |
+
reshard_after_forward: true
|
| 25 |
+
fsdp_size: -1
|
| 26 |
+
forward_prefetch: false
|
| 27 |
+
model_dtype: fp32
|
| 28 |
+
use_orig_params: false
|
| 29 |
+
ulysses_sequence_parallel_size: 1
|
| 30 |
+
entropy_from_logits_with_chunking: false
|
| 31 |
+
use_torch_compile: true
|
| 32 |
+
entropy_checkpointing: false
|
| 33 |
+
forward_only: false
|
| 34 |
+
strategy: fsdp
|
| 35 |
+
_target_: verl.workers.config.FSDPActorConfig
|
| 36 |
+
strategy: fsdp
|
| 37 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 38 |
+
ppo_micro_batch_size: null
|
| 39 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 40 |
+
use_dynamic_bsz: false
|
| 41 |
+
ppo_max_token_len_per_gpu: 16384
|
| 42 |
+
clip_ratio: 0.2
|
| 43 |
+
clip_ratio_low: 0.2
|
| 44 |
+
clip_ratio_high: 0.28
|
| 45 |
+
freeze_vision_tower: false
|
| 46 |
+
policy_loss:
|
| 47 |
+
_target_: verl.workers.config.PolicyLossConfig
|
| 48 |
+
loss_mode: vanilla
|
| 49 |
+
clip_cov_ratio: 0.0002
|
| 50 |
+
clip_cov_lb: 1.0
|
| 51 |
+
clip_cov_ub: 5.0
|
| 52 |
+
kl_cov_ratio: 0.0002
|
| 53 |
+
ppo_kl_coef: 0.1
|
| 54 |
+
clip_ratio_c: 3.0
|
| 55 |
+
loss_agg_mode: token-mean
|
| 56 |
+
entropy_coeff: 0.001
|
| 57 |
+
tis_imp_ratio_cap: -1
|
| 58 |
+
use_kl_loss: false
|
| 59 |
+
use_torch_compile: true
|
| 60 |
+
kl_loss_coef: 0.0
|
| 61 |
+
kl_loss_type: kl
|
| 62 |
+
ppo_epochs: 1
|
| 63 |
+
shuffle: false
|
| 64 |
+
checkpoint:
|
| 65 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 66 |
+
save_contents:
|
| 67 |
+
- model
|
| 68 |
+
- optimizer
|
| 69 |
+
- extra
|
| 70 |
+
load_contents: ${.save_contents}
|
| 71 |
+
async_save: false
|
| 72 |
+
use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
|
| 73 |
+
profiler:
|
| 74 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 75 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 76 |
+
enable: false
|
| 77 |
+
all_ranks: false
|
| 78 |
+
ranks: []
|
| 79 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 80 |
+
tool_config:
|
| 81 |
+
nsys:
|
| 82 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 83 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 84 |
+
npu:
|
| 85 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 86 |
+
contents: []
|
| 87 |
+
level: level1
|
| 88 |
+
analysis: true
|
| 89 |
+
discrete: false
|
| 90 |
+
torch:
|
| 91 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 92 |
+
step_start: 0
|
| 93 |
+
step_end: null
|
| 94 |
+
torch_memory:
|
| 95 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 96 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 97 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 98 |
+
grad_clip: 1.0
|
| 99 |
+
ulysses_sequence_parallel_size: 1
|
| 100 |
+
entropy_from_logits_with_chunking: false
|
| 101 |
+
entropy_checkpointing: false
|
| 102 |
+
use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
|
| 103 |
+
use_ref: true
|
| 104 |
+
grpo_advantage_length_weight: ${grpo_advantage_length_weight}
|
| 105 |
+
filter_loss_scaling: none
|
| 106 |
+
ref:
|
| 107 |
+
strategy: ${actor_rollout_ref.actor.strategy}
|
| 108 |
+
use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
|
| 109 |
+
log_prob_micro_batch_size: null
|
| 110 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 111 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 112 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 113 |
+
profiler:
|
| 114 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 115 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 116 |
+
enable: false
|
| 117 |
+
all_ranks: false
|
| 118 |
+
ranks: []
|
| 119 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 120 |
+
tool_config:
|
| 121 |
+
nsys:
|
| 122 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 123 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 124 |
+
npu:
|
| 125 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 126 |
+
contents: []
|
| 127 |
+
level: level1
|
| 128 |
+
analysis: true
|
| 129 |
+
discrete: false
|
| 130 |
+
torch:
|
| 131 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 132 |
+
step_start: 0
|
| 133 |
+
step_end: null
|
| 134 |
+
torch_memory:
|
| 135 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 136 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 137 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 138 |
+
fsdp_config:
|
| 139 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 140 |
+
wrap_policy:
|
| 141 |
+
min_num_params: 0
|
| 142 |
+
param_offload: false
|
| 143 |
+
optimizer_offload: false
|
| 144 |
+
offload_policy: false
|
| 145 |
+
reshard_after_forward: true
|
| 146 |
+
fsdp_size: -1
|
| 147 |
+
forward_prefetch: false
|
| 148 |
+
model_dtype: fp32
|
| 149 |
+
use_orig_params: false
|
| 150 |
+
ulysses_sequence_parallel_size: 1
|
| 151 |
+
entropy_from_logits_with_chunking: false
|
| 152 |
+
use_torch_compile: true
|
| 153 |
+
entropy_checkpointing: false
|
| 154 |
+
forward_only: false
|
| 155 |
+
strategy: fsdp
|
| 156 |
+
model: null
|
| 157 |
+
ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
|
| 158 |
+
entropy_from_logits_with_chunking: false
|
| 159 |
+
entropy_checkpointing: false
|
| 160 |
+
rollout:
|
| 161 |
+
_target_: verl.workers.config.RolloutConfig
|
| 162 |
+
name: vllm
|
| 163 |
+
mode: sync
|
| 164 |
+
temperature: 1
|
| 165 |
+
top_k: -1
|
| 166 |
+
top_p: 1
|
| 167 |
+
prompt_length: 1
|
| 168 |
+
response_length: 400
|
| 169 |
+
dtype: bfloat16
|
| 170 |
+
gpu_memory_utilization: 0.7
|
| 171 |
+
ignore_eos: false
|
| 172 |
+
enforce_eager: true
|
| 173 |
+
cudagraph_capture_sizes: null
|
| 174 |
+
free_cache_engine: true
|
| 175 |
+
tensor_model_parallel_size: 1
|
| 176 |
+
data_parallel_size: 1
|
| 177 |
+
expert_parallel_size: 1
|
| 178 |
+
max_num_batched_tokens: 16384
|
| 179 |
+
max_model_len: 16384
|
| 180 |
+
max_num_seqs: 1024
|
| 181 |
+
enable_chunked_prefill: true
|
| 182 |
+
enable_prefix_caching: true
|
| 183 |
+
load_format: auto
|
| 184 |
+
log_prob_micro_batch_size: null
|
| 185 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 186 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 187 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 188 |
+
disable_log_stats: true
|
| 189 |
+
do_sample: true
|
| 190 |
+
'n': 1
|
| 191 |
+
over_sample_rate: 0
|
| 192 |
+
multi_stage_wake_up: false
|
| 193 |
+
engine_kwargs:
|
| 194 |
+
vllm: {}
|
| 195 |
+
sglang: {}
|
| 196 |
+
val_kwargs:
|
| 197 |
+
_target_: verl.workers.config.SamplingConfig
|
| 198 |
+
top_k: -1
|
| 199 |
+
top_p: 1.0
|
| 200 |
+
temperature: 0.5
|
| 201 |
+
'n': 1
|
| 202 |
+
do_sample: true
|
| 203 |
+
multi_turn:
|
| 204 |
+
_target_: verl.workers.config.MultiTurnConfig
|
| 205 |
+
enable: false
|
| 206 |
+
max_assistant_turns: null
|
| 207 |
+
tool_config_path: null
|
| 208 |
+
max_user_turns: null
|
| 209 |
+
max_parallel_calls: 1
|
| 210 |
+
max_tool_response_length: 256
|
| 211 |
+
tool_response_truncate_side: middle
|
| 212 |
+
interaction_config_path: null
|
| 213 |
+
use_inference_chat_template: false
|
| 214 |
+
tokenization_sanity_check_mode: strict
|
| 215 |
+
format: hermes
|
| 216 |
+
num_repeat_rollouts: null
|
| 217 |
+
calculate_log_probs: false
|
| 218 |
+
agent:
|
| 219 |
+
_target_: verl.workers.config.AgentLoopConfig
|
| 220 |
+
num_workers: 8
|
| 221 |
+
agent_loop_config_path: null
|
| 222 |
+
custom_async_server:
|
| 223 |
+
_target_: verl.workers.config.CustomAsyncServerConfig
|
| 224 |
+
path: null
|
| 225 |
+
name: null
|
| 226 |
+
update_weights_bucket_megabytes: 512
|
| 227 |
+
trace:
|
| 228 |
+
_target_: verl.workers.config.TraceConfig
|
| 229 |
+
backend: null
|
| 230 |
+
token2text: false
|
| 231 |
+
skip_rollout: false
|
| 232 |
+
skip_dump_dir: /tmp/rollout_dump
|
| 233 |
+
skip_tokenizer_init: true
|
| 234 |
+
profiler:
|
| 235 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 236 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 237 |
+
enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
|
| 238 |
+
all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
|
| 239 |
+
ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
|
| 240 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 241 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 242 |
+
layered_summon: false
|
| 243 |
+
rollout_filter_value: 0.9
|
| 244 |
+
rollout_filter_strategy: top_p
|
| 245 |
+
rollout_filter_type: largest
|
| 246 |
+
rollout_filter_include_zero: true
|
| 247 |
+
rollout_filter_top_p_prob_mode: linear
|
| 248 |
+
rollout_filter_selection_eps: 0.01
|
| 249 |
+
rollout_filter_empty_stop_steps: 5
|
| 250 |
+
rollout_filter_metric: reward_variance
|
| 251 |
+
gradient_analysis_num_buckets: 6
|
| 252 |
+
gradient_analysis_bucket_mode: quantile
|
| 253 |
+
model:
|
| 254 |
+
_target_: verl.workers.config.HFModelConfig
|
| 255 |
+
path: ${model_path}
|
| 256 |
+
hf_config_path: null
|
| 257 |
+
tokenizer_path: null
|
| 258 |
+
use_shm: false
|
| 259 |
+
trust_remote_code: false
|
| 260 |
+
custom_chat_template: null
|
| 261 |
+
external_lib: null
|
| 262 |
+
override_config: {}
|
| 263 |
+
enable_gradient_checkpointing: true
|
| 264 |
+
enable_activation_offload: false
|
| 265 |
+
use_remove_padding: false
|
| 266 |
+
lora_rank: ${lora.rank}
|
| 267 |
+
lora_alpha: ${lora.alpha}
|
| 268 |
+
target_modules: ${lora.target_modules}
|
| 269 |
+
exclude_modules: null
|
| 270 |
+
use_liger: false
|
| 271 |
+
use_fused_kernels: false
|
| 272 |
+
fused_kernel_options:
|
| 273 |
+
impl_backend: torch
|
| 274 |
+
hybrid_engine: true
|
| 275 |
+
nccl_timeout: 600
|
| 276 |
+
data:
|
| 277 |
+
tokenizer: null
|
| 278 |
+
use_shm: false
|
| 279 |
+
train_files: ~/data/rlhf/gsm8k/train.parquet
|
| 280 |
+
val_files: ~/data/rlhf/gsm8k/test.parquet
|
| 281 |
+
prompt_key: prompt
|
| 282 |
+
reward_fn_key: data_source
|
| 283 |
+
max_prompt_length: null
|
| 284 |
+
max_response_length: null
|
| 285 |
+
train_batch_size: null
|
| 286 |
+
val_batch_size: null
|
| 287 |
+
return_raw_input_ids: false
|
| 288 |
+
return_raw_chat: false
|
| 289 |
+
return_full_prompt: false
|
| 290 |
+
shuffle: true
|
| 291 |
+
dataloader_num_workers: 8
|
| 292 |
+
validation_shuffle: false
|
| 293 |
+
filter_overlong_prompts: false
|
| 294 |
+
filter_overlong_prompts_workers: 1
|
| 295 |
+
truncation: error
|
| 296 |
+
image_key: images
|
| 297 |
+
video_key: videos
|
| 298 |
+
trust_remote_code: false
|
| 299 |
+
custom_cls:
|
| 300 |
+
path: null
|
| 301 |
+
name: null
|
| 302 |
+
return_multi_modal_inputs: true
|
| 303 |
+
sampler:
|
| 304 |
+
class_path: null
|
| 305 |
+
class_name: null
|
| 306 |
+
datagen:
|
| 307 |
+
path: null
|
| 308 |
+
name: null
|
| 309 |
+
apply_chat_template_kwargs: {}
|
| 310 |
+
critic:
|
| 311 |
+
optim:
|
| 312 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 313 |
+
lr: 1.0e-05
|
| 314 |
+
lr_warmup_steps_ratio: 0.0
|
| 315 |
+
total_training_steps: -1
|
| 316 |
+
weight_decay: 0.01
|
| 317 |
+
lr_warmup_steps: -1
|
| 318 |
+
betas:
|
| 319 |
+
- 0.9
|
| 320 |
+
- 0.999
|
| 321 |
+
clip_grad: 1.0
|
| 322 |
+
min_lr_ratio: 0.0
|
| 323 |
+
num_cycles: 0.5
|
| 324 |
+
warmup_style: constant
|
| 325 |
+
model:
|
| 326 |
+
fsdp_config:
|
| 327 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 328 |
+
wrap_policy:
|
| 329 |
+
min_num_params: 0
|
| 330 |
+
param_offload: false
|
| 331 |
+
optimizer_offload: false
|
| 332 |
+
offload_policy: false
|
| 333 |
+
reshard_after_forward: true
|
| 334 |
+
fsdp_size: -1
|
| 335 |
+
forward_prefetch: false
|
| 336 |
+
model_dtype: fp32
|
| 337 |
+
use_orig_params: false
|
| 338 |
+
ulysses_sequence_parallel_size: 1
|
| 339 |
+
entropy_from_logits_with_chunking: false
|
| 340 |
+
use_torch_compile: true
|
| 341 |
+
entropy_checkpointing: false
|
| 342 |
+
forward_only: false
|
| 343 |
+
strategy: fsdp
|
| 344 |
+
path: ${model_path}
|
| 345 |
+
tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
|
| 346 |
+
override_config: {}
|
| 347 |
+
external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
|
| 348 |
+
trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
|
| 349 |
+
_target_: verl.workers.config.FSDPCriticModelCfg
|
| 350 |
+
use_shm: false
|
| 351 |
+
enable_gradient_checkpointing: true
|
| 352 |
+
enable_activation_offload: false
|
| 353 |
+
use_remove_padding: false
|
| 354 |
+
lora_rank: ${lora.rank}
|
| 355 |
+
lora_alpha: ${lora.alpha}
|
| 356 |
+
target_modules: ${lora.target_modules}
|
| 357 |
+
_target_: verl.workers.config.FSDPCriticConfig
|
| 358 |
+
rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
|
| 359 |
+
strategy: fsdp
|
| 360 |
+
enable: null
|
| 361 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 362 |
+
ppo_micro_batch_size: null
|
| 363 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 364 |
+
use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 365 |
+
ppo_max_token_len_per_gpu: 32768
|
| 366 |
+
forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
|
| 367 |
+
ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
|
| 368 |
+
shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
|
| 369 |
+
cliprange_value: 0.5
|
| 370 |
+
loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
|
| 371 |
+
checkpoint:
|
| 372 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 373 |
+
save_contents:
|
| 374 |
+
- model
|
| 375 |
+
- optimizer
|
| 376 |
+
- extra
|
| 377 |
+
load_contents: ${.save_contents}
|
| 378 |
+
async_save: false
|
| 379 |
+
profiler:
|
| 380 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 381 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 382 |
+
enable: false
|
| 383 |
+
all_ranks: false
|
| 384 |
+
ranks: []
|
| 385 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 386 |
+
tool_config:
|
| 387 |
+
nsys:
|
| 388 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 389 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 390 |
+
npu:
|
| 391 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 392 |
+
contents: []
|
| 393 |
+
level: level1
|
| 394 |
+
analysis: true
|
| 395 |
+
discrete: false
|
| 396 |
+
torch:
|
| 397 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 398 |
+
step_start: 0
|
| 399 |
+
step_end: null
|
| 400 |
+
torch_memory:
|
| 401 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 402 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 403 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 404 |
+
forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
|
| 405 |
+
forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
|
| 406 |
+
ulysses_sequence_parallel_size: 1
|
| 407 |
+
grad_clip: 1.0
|
| 408 |
+
reward_model:
|
| 409 |
+
enable: false
|
| 410 |
+
enable_resource_pool: false
|
| 411 |
+
n_gpus_per_node: 0
|
| 412 |
+
nnodes: 0
|
| 413 |
+
strategy: fsdp
|
| 414 |
+
model:
|
| 415 |
+
input_tokenizer: ${actor_rollout_ref.model.path}
|
| 416 |
+
path: ~/models/FsfairX-LLaMA3-RM-v0.1
|
| 417 |
+
external_lib: ${actor_rollout_ref.model.external_lib}
|
| 418 |
+
trust_remote_code: false
|
| 419 |
+
use_shm: false
|
| 420 |
+
use_remove_padding: false
|
| 421 |
+
use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
|
| 422 |
+
fsdp_config:
|
| 423 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 424 |
+
wrap_policy:
|
| 425 |
+
min_num_params: 0
|
| 426 |
+
param_offload: false
|
| 427 |
+
reshard_after_forward: true
|
| 428 |
+
fsdp_size: -1
|
| 429 |
+
forward_prefetch: false
|
| 430 |
+
micro_batch_size: null
|
| 431 |
+
micro_batch_size_per_gpu: null
|
| 432 |
+
max_length: null
|
| 433 |
+
use_dynamic_bsz: ${critic.use_dynamic_bsz}
|
| 434 |
+
forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
|
| 435 |
+
reward_manager: naive
|
| 436 |
+
launch_reward_fn_async: false
|
| 437 |
+
sandbox_fusion:
|
| 438 |
+
url: null
|
| 439 |
+
max_concurrent: 64
|
| 440 |
+
memory_limit_mb: 1024
|
| 441 |
+
profiler:
|
| 442 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 443 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 444 |
+
enable: false
|
| 445 |
+
all_ranks: false
|
| 446 |
+
ranks: []
|
| 447 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 448 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 449 |
+
ulysses_sequence_parallel_size: 1
|
| 450 |
+
custom_reward_function:
|
| 451 |
+
path: null
|
| 452 |
+
name: compute_score
|
| 453 |
+
algorithm:
|
| 454 |
+
_target_: verl.trainer.config.AlgoConfig
|
| 455 |
+
gamma: 1.0
|
| 456 |
+
lam: 1.0
|
| 457 |
+
adv_estimator: gae
|
| 458 |
+
norm_adv_by_std_in_grpo: true
|
| 459 |
+
use_kl_in_reward: false
|
| 460 |
+
kl_penalty: kl
|
| 461 |
+
kl_ctrl:
|
| 462 |
+
_target_: verl.trainer.config.KLControlConfig
|
| 463 |
+
type: fixed
|
| 464 |
+
kl_coef: 0.0
|
| 465 |
+
horizon: 10000
|
| 466 |
+
target_kl: 0.1
|
| 467 |
+
use_pf_ppo: false
|
| 468 |
+
pf_ppo:
|
| 469 |
+
reweight_method: pow
|
| 470 |
+
weight_pow: 2.0
|
| 471 |
+
high_level_gamma: 0.95
|
| 472 |
+
bi_level_gae: false
|
| 473 |
+
zero_task_advantage: false
|
| 474 |
+
soft_advantage_reweight: false
|
| 475 |
+
trainer:
|
| 476 |
+
balance_batch: true
|
| 477 |
+
total_epochs: 30
|
| 478 |
+
total_training_steps: 1000
|
| 479 |
+
project_name: ragen
|
| 480 |
+
experiment_name: sudoku-main
|
| 481 |
+
logger:
|
| 482 |
+
- console
|
| 483 |
+
- wandb
|
| 484 |
+
log_val_generations: 0
|
| 485 |
+
rollout_data_dir: null
|
| 486 |
+
validation_data_dir: null
|
| 487 |
+
nnodes: 1
|
| 488 |
+
n_gpus_per_node: 8
|
| 489 |
+
save_freq: -1
|
| 490 |
+
esi_redundant_time: 0
|
| 491 |
+
resume_mode: auto
|
| 492 |
+
resume_from_path: null
|
| 493 |
+
val_before_train: true
|
| 494 |
+
val_only: false
|
| 495 |
+
test_freq: 10
|
| 496 |
+
critic_warmup: 0
|
| 497 |
+
default_hdfs_dir: null
|
| 498 |
+
del_local_ckpt_after_load: false
|
| 499 |
+
default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
|
| 500 |
+
max_actor_ckpt_to_keep: 1
|
| 501 |
+
max_critic_ckpt_to_keep: 1
|
| 502 |
+
ray_wait_register_center_timeout: 300
|
| 503 |
+
device: cuda
|
| 504 |
+
use_legacy_worker_impl: auto
|
| 505 |
+
local_log_dir: results/
|
| 506 |
+
validation_steps: 1
|
| 507 |
+
generations_to_log_to_wandb:
|
| 508 |
+
val: 20
|
| 509 |
+
log_group_rv_table: false
|
| 510 |
+
gradient_analysis_mode: false
|
| 511 |
+
gradient_analysis_every: 50
|
| 512 |
+
gradient_analysis_env_groups: null
|
| 513 |
+
gradient_analysis_group_size: null
|
| 514 |
+
gradient_analysis_log_prefilter: false
|
| 515 |
+
gradient_analysis_only: false
|
| 516 |
+
exit_after_gradient_analysis: false
|
| 517 |
+
global_profiler:
|
| 518 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 519 |
+
tool: null
|
| 520 |
+
steps: null
|
| 521 |
+
profile_continuous_steps: false
|
| 522 |
+
save_path: outputs/profile
|
| 523 |
+
global_tool_config:
|
| 524 |
+
nsys:
|
| 525 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 526 |
+
discrete: false
|
| 527 |
+
controller_nsight_options:
|
| 528 |
+
trace: cuda,nvtx,cublas,ucx
|
| 529 |
+
cuda-memory-usage: 'true'
|
| 530 |
+
cuda-graph-trace: graph
|
| 531 |
+
worker_nsight_options:
|
| 532 |
+
trace: cuda,nvtx,cublas,ucx
|
| 533 |
+
cuda-memory-usage: 'true'
|
| 534 |
+
cuda-graph-trace: graph
|
| 535 |
+
capture-range: cudaProfilerApi
|
| 536 |
+
capture-range-end: null
|
| 537 |
+
kill: none
|
| 538 |
+
torch_memory:
|
| 539 |
+
trace_alloc_max_entries: 100000
|
| 540 |
+
stack_depth: 32
|
| 541 |
+
context: all
|
| 542 |
+
stacks: all
|
| 543 |
+
kw_args: {}
|
| 544 |
+
ray_kwargs:
|
| 545 |
+
ray_init:
|
| 546 |
+
num_cpus: null
|
| 547 |
+
timeline_json_file: null
|
| 548 |
+
custom_envs:
|
| 549 |
+
SimpleSokoban:
|
| 550 |
+
env_type: sokoban
|
| 551 |
+
max_actions_per_traj: 10
|
| 552 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 553 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 554 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 555 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 556 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 557 |
+
max_tokens: 100
|
| 558 |
+
parallel_friendly: false
|
| 559 |
+
max_workers: 32
|
| 560 |
+
env_config:
|
| 561 |
+
dim_x: 6
|
| 562 |
+
dim_y: 6
|
| 563 |
+
num_boxes: 1
|
| 564 |
+
max_steps: 100
|
| 565 |
+
LargerSokoban:
|
| 566 |
+
env_type: sokoban
|
| 567 |
+
max_actions_per_traj: 10
|
| 568 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 569 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 570 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 571 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 572 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 573 |
+
max_tokens: 100
|
| 574 |
+
parallel_friendly: false
|
| 575 |
+
max_workers: 32
|
| 576 |
+
env_config:
|
| 577 |
+
dim_x: 8
|
| 578 |
+
dim_y: 8
|
| 579 |
+
num_boxes: 2
|
| 580 |
+
max_steps: 100
|
| 581 |
+
search_depth: 10
|
| 582 |
+
SokobanDifferentGridVocab:
|
| 583 |
+
env_type: sokoban
|
| 584 |
+
max_actions_per_traj: 10
|
| 585 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 586 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 587 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 588 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 589 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 590 |
+
max_tokens: 100
|
| 591 |
+
parallel_friendly: false
|
| 592 |
+
max_workers: 32
|
| 593 |
+
env_config:
|
| 594 |
+
search_depth: 30
|
| 595 |
+
dim_x: 6
|
| 596 |
+
dim_y: 6
|
| 597 |
+
num_boxes: 1
|
| 598 |
+
max_steps: 100
|
| 599 |
+
grid_lookup:
|
| 600 |
+
0: W
|
| 601 |
+
1: .
|
| 602 |
+
2: G
|
| 603 |
+
3: C
|
| 604 |
+
4: B
|
| 605 |
+
5: A
|
| 606 |
+
6: '@'
|
| 607 |
+
grid_vocab:
|
| 608 |
+
W: wall
|
| 609 |
+
.: empty
|
| 610 |
+
G: target
|
| 611 |
+
C: box on target
|
| 612 |
+
B: box
|
| 613 |
+
A: player
|
| 614 |
+
'@': player on target
|
| 615 |
+
CoordSokoban:
|
| 616 |
+
env_type: sokoban
|
| 617 |
+
max_actions_per_traj: 10
|
| 618 |
+
env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
|
| 619 |
+
\ need to push all boxes to targets.\nYou are provided with a symbol grid and\
|
| 620 |
+
\ the zero-indexed coordinates of the player, each box, and each target. \n\
|
| 621 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
|
| 622 |
+
\ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
|
| 623 |
+
\ the same direction. \nYou cannot push a box through a wall, and you cannot\
|
| 624 |
+
\ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
|
| 625 |
+
\ || Right || Up</answer>.\n"
|
| 626 |
+
max_tokens: 120
|
| 627 |
+
parallel_friendly: false
|
| 628 |
+
max_workers: 32
|
| 629 |
+
env_config:
|
| 630 |
+
dim_x: 6
|
| 631 |
+
dim_y: 6
|
| 632 |
+
num_boxes: 1
|
| 633 |
+
max_steps: 100
|
| 634 |
+
observation_format: grid_coord
|
| 635 |
+
VisualSimpleSokoban:
|
| 636 |
+
env_type: sokoban
|
| 637 |
+
max_actions_per_traj: 10
|
| 638 |
+
env_instruction: You are solving the Sokoban puzzle. You are the player and you
|
| 639 |
+
need to push all boxes to targets. When you are right next to a box, you can
|
| 640 |
+
push it by moving in the same direction. You cannot push a box through a wall,
|
| 641 |
+
and you cannot pull a box. The answer should be a sequence of actions, like
|
| 642 |
+
<answer>Right || Right || Up</answer>
|
| 643 |
+
max_tokens: 100
|
| 644 |
+
parallel_friendly: false
|
| 645 |
+
max_workers: 32
|
| 646 |
+
env_config:
|
| 647 |
+
dim_x: 6
|
| 648 |
+
dim_y: 6
|
| 649 |
+
num_boxes: 1
|
| 650 |
+
max_steps: 100
|
| 651 |
+
render_mode: rgb_array
|
| 652 |
+
Alfworld:
|
| 653 |
+
env_type: alfworld
|
| 654 |
+
max_actions_per_traj: 50
|
| 655 |
+
parallel_friendly: false
|
| 656 |
+
max_workers: 1
|
| 657 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 658 |
+
|
| 659 |
+
Complete household tasks by navigating and interacting with objects.
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 663 |
+
process MUST be enclosed within <think> </think> tags.
|
| 664 |
+
|
| 665 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 666 |
+
for current step and present it within <answer>...</answer> tags.
|
| 667 |
+
|
| 668 |
+
'
|
| 669 |
+
max_tokens: 512
|
| 670 |
+
env_config:
|
| 671 |
+
eval_dataset: eval_in_distribution
|
| 672 |
+
AlfworldOOD:
|
| 673 |
+
env_type: alfworld
|
| 674 |
+
max_actions_per_traj: 50
|
| 675 |
+
parallel_friendly: false
|
| 676 |
+
max_workers: 1
|
| 677 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 678 |
+
|
| 679 |
+
Complete household tasks by navigating and interacting with objects.
|
| 680 |
+
|
| 681 |
+
|
| 682 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 683 |
+
process MUST be enclosed within <think> </think> tags.
|
| 684 |
+
|
| 685 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 686 |
+
for current step and present it within <answer>...</answer> tags.
|
| 687 |
+
|
| 688 |
+
'
|
| 689 |
+
max_tokens: 512
|
| 690 |
+
env_config:
|
| 691 |
+
eval_dataset: eval_out_of_distribution
|
| 692 |
+
Countdown:
|
| 693 |
+
env_type: countdown
|
| 694 |
+
max_actions_per_traj: 1
|
| 695 |
+
env_instruction: 'You are solving the Countdown puzzle. You should use the num
|
| 696 |
+
list to create an equation that equals the target. Example answer format: <think>
|
| 697 |
+
To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
|
| 698 |
+
= 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
|
| 699 |
+
max_tokens: 100
|
| 700 |
+
parallel_friendly: false
|
| 701 |
+
max_workers: 32
|
| 702 |
+
env_config: null
|
| 703 |
+
Bandit:
|
| 704 |
+
env_type: bandit
|
| 705 |
+
max_actions_per_traj: 1
|
| 706 |
+
env_instruction: ''
|
| 707 |
+
max_tokens: 100
|
| 708 |
+
parallel_friendly: false
|
| 709 |
+
max_workers: 32
|
| 710 |
+
env_config:
|
| 711 |
+
split: train
|
| 712 |
+
BanditTest:
|
| 713 |
+
env_type: bandit
|
| 714 |
+
max_actions_per_traj: 1
|
| 715 |
+
env_instruction: ''
|
| 716 |
+
max_tokens: 100
|
| 717 |
+
parallel_friendly: false
|
| 718 |
+
max_workers: 32
|
| 719 |
+
env_config:
|
| 720 |
+
split: test
|
| 721 |
+
DeepCoder:
|
| 722 |
+
env_type: deepcoder
|
| 723 |
+
max_actions_per_traj: 1
|
| 724 |
+
env_instruction: 'You are solving a coding task. Provide a complete Python function
|
| 725 |
+
solution only. Format: <answer>...</answer>'
|
| 726 |
+
max_tokens: 8000
|
| 727 |
+
parallel_friendly: true
|
| 728 |
+
max_workers: 32
|
| 729 |
+
env_config:
|
| 730 |
+
max_steps: 1
|
| 731 |
+
FrozenLake:
|
| 732 |
+
env_type: frozen_lake
|
| 733 |
+
max_actions_per_traj: 10
|
| 734 |
+
env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
|
| 735 |
+
go to the target. You may move to the unintended direction due to the slippery
|
| 736 |
+
ice. Example answer format: <think>To forbid the hole and go to the target,
|
| 737 |
+
I should go left then go up.</think><answer>Left || Up</answer>'
|
| 738 |
+
max_tokens: 100
|
| 739 |
+
parallel_friendly: false
|
| 740 |
+
max_workers: 32
|
| 741 |
+
env_config:
|
| 742 |
+
success_rate: 0.8
|
| 743 |
+
CoordFrozenLake:
|
| 744 |
+
env_type: frozen_lake
|
| 745 |
+
max_actions_per_traj: 10
|
| 746 |
+
env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
|
| 747 |
+
both a symbol grid and zero-indexed coordinates for the start, goal, player,
|
| 748 |
+
and any holes.
|
| 749 |
+
|
| 750 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner
|
| 751 |
+
(5, 5).
|
| 752 |
+
|
| 753 |
+
Beware that the ice is slippery, so the agent might slide and end up in an unintended
|
| 754 |
+
tile.
|
| 755 |
+
|
| 756 |
+
Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
|
| 757 |
+
|
| 758 |
+
'
|
| 759 |
+
max_tokens: 120
|
| 760 |
+
parallel_friendly: false
|
| 761 |
+
max_workers: 32
|
| 762 |
+
env_config:
|
| 763 |
+
observation_format: grid_coord
|
| 764 |
+
success_rate: 0.8
|
| 765 |
+
MetamathQA:
|
| 766 |
+
env_type: metamathqa
|
| 767 |
+
max_actions_per_traj: 1
|
| 768 |
+
env_instruction: 'You are solving Math problems. '
|
| 769 |
+
max_tokens: 100
|
| 770 |
+
env_config: null
|
| 771 |
+
WebShopFull:
|
| 772 |
+
env_type: webshop
|
| 773 |
+
max_actions_per_traj: 15
|
| 774 |
+
env_instruction: You are an expert autonomous agent operating in the WebShop e‑commerce
|
| 775 |
+
environment.
|
| 776 |
+
max_tokens: 200
|
| 777 |
+
env_config:
|
| 778 |
+
dataset: full
|
| 779 |
+
WebShop:
|
| 780 |
+
env_type: webshop
|
| 781 |
+
max_actions_per_traj: 9
|
| 782 |
+
env_instruction: 'You are browsing an online shop. Based on the instruction, buy
|
| 783 |
+
a product that close to the production description. You need to search, read
|
| 784 |
+
the search results, pick a product, choose the size and color and buy. You should
|
| 785 |
+
only choose action from the available actions list provided later. Example
|
| 786 |
+
process: I need a gingko light and 20x20 pillow cover that is hand painted.
|
| 787 |
+
First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
|
| 788 |
+
with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
|
| 789 |
+
max_tokens: 200
|
| 790 |
+
env_config:
|
| 791 |
+
dataset: small
|
| 792 |
+
Lean:
|
| 793 |
+
env_type: lean
|
| 794 |
+
max_actions_per_traj: 30
|
| 795 |
+
env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
|
| 796 |
+
propose a sequence of tactics that completes the proof. Think step by step about
|
| 797 |
+
which tactics to apply next. Provide tactics separated by '||', for example
|
| 798 |
+
<answer>intro || simp || rfl</answer>.
|
| 799 |
+
max_tokens: 512
|
| 800 |
+
parallel_friendly: true
|
| 801 |
+
max_workers: 32
|
| 802 |
+
env_config: null
|
| 803 |
+
SimpleSudoku:
|
| 804 |
+
env_type: sudoku
|
| 805 |
+
max_actions_per_traj: 20
|
| 806 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 807 |
+
row, column, and 2x2 box contains the numbers 1-4 without repetition.
|
| 808 |
+
|
| 809 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 810 |
+
shown as dots (.).
|
| 811 |
+
|
| 812 |
+
Place numbers one at a time using the format: <answer>place 1 at row 2 col 3</answer>
|
| 813 |
+
or <answer>1,2,3</answer>
|
| 814 |
+
|
| 815 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 816 |
+
if any occur.
|
| 817 |
+
|
| 818 |
+
'
|
| 819 |
+
max_tokens: 150
|
| 820 |
+
parallel_friendly: false
|
| 821 |
+
max_workers: 32
|
| 822 |
+
env_config:
|
| 823 |
+
grid_size: 4
|
| 824 |
+
difficulty: easy
|
| 825 |
+
render_format: with_feedback
|
| 826 |
+
show_conflicts: true
|
| 827 |
+
show_valid_numbers: true
|
| 828 |
+
max_steps: 20
|
| 829 |
+
MediumSudoku:
|
| 830 |
+
env_type: sudoku
|
| 831 |
+
max_actions_per_traj: 30
|
| 832 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 833 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 834 |
+
|
| 835 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 836 |
+
shown as dots (.).
|
| 837 |
+
|
| 838 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 839 |
+
or <answer>2,3,5</answer>
|
| 840 |
+
|
| 841 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 842 |
+
if any occur.
|
| 843 |
+
|
| 844 |
+
'
|
| 845 |
+
max_tokens: 150
|
| 846 |
+
parallel_friendly: false
|
| 847 |
+
max_workers: 32
|
| 848 |
+
env_config:
|
| 849 |
+
grid_size: 9
|
| 850 |
+
difficulty: medium
|
| 851 |
+
render_format: with_feedback
|
| 852 |
+
show_conflicts: true
|
| 853 |
+
show_valid_numbers: true
|
| 854 |
+
max_steps: 81
|
| 855 |
+
SearchQA:
|
| 856 |
+
env_type: search
|
| 857 |
+
max_actions_per_traj: 10
|
| 858 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 859 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 860 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 861 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 862 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 863 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 864 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 865 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 866 |
+
\ Platt]</answer>\n"
|
| 867 |
+
max_tokens: 300
|
| 868 |
+
parallel_friendly: true
|
| 869 |
+
max_workers: 32
|
| 870 |
+
env_config:
|
| 871 |
+
max_steps: 10
|
| 872 |
+
max_search_results: 5
|
| 873 |
+
SearchQAMock:
|
| 874 |
+
env_type: search
|
| 875 |
+
max_actions_per_traj: 10
|
| 876 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 877 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 878 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 879 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 880 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 881 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 882 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 883 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 884 |
+
\ Platt]</answer>\n"
|
| 885 |
+
max_tokens: 300
|
| 886 |
+
parallel_friendly: true
|
| 887 |
+
max_workers: 32
|
| 888 |
+
env_config:
|
| 889 |
+
max_steps: 10
|
| 890 |
+
max_search_results: 5
|
| 891 |
+
mock_mode: true
|
| 892 |
+
game_2048:
|
| 893 |
+
env_type: game_2048
|
| 894 |
+
max_actions_per_traj: 700
|
| 895 |
+
env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
|
| 896 |
+
by sliding Up, Right, Down, or Left.
|
| 897 |
+
|
| 898 |
+
If a move is invalid (no tiles move), a small penalty is applied. Respond with
|
| 899 |
+
a single action.
|
| 900 |
+
|
| 901 |
+
Example: <answer>Up</answer>
|
| 902 |
+
|
| 903 |
+
'
|
| 904 |
+
max_tokens: 8192
|
| 905 |
+
env_config: null
|
| 906 |
+
rubikscube:
|
| 907 |
+
env_type: rubikscube
|
| 908 |
+
max_actions_per_traj: 20
|
| 909 |
+
env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
|
| 910 |
+
is to restore the cube so that each of the faces consists of a single, unique
|
| 911 |
+
color.
|
| 912 |
+
|
| 913 |
+
Available actions use standard Singmaster notation for face rotations: U, U'',
|
| 914 |
+
D, D'', L, L'', R, R'', F, F'', B, B''.
|
| 915 |
+
|
| 916 |
+
- Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
|
| 917 |
+
|
| 918 |
+
- Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
|
| 919 |
+
prime ('') means 90° counter-clockwise (e.g., "R''").
|
| 920 |
+
|
| 921 |
+
Respond with a sequence of actions separated by "||".
|
| 922 |
+
|
| 923 |
+
Example: <answer>U</answer>
|
| 924 |
+
|
| 925 |
+
'
|
| 926 |
+
max_tokens: 96
|
| 927 |
+
env_config:
|
| 928 |
+
scramble_depth: 1
|
| 929 |
+
max_steps: 20
|
| 930 |
+
render_mode: text
|
| 931 |
+
system:
|
| 932 |
+
CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
|
| 933 |
+
seed:
|
| 934 |
+
train: 10000
|
| 935 |
+
val: 123
|
| 936 |
+
micro_batch_size_per_gpu: 1
|
| 937 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 938 |
+
ppo_mini_batch_size: 32
|
| 939 |
+
model_path: /mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
| 940 |
+
enable_response_mask: true
|
| 941 |
+
grpo_advantage_length_weight: false
|
| 942 |
+
lora:
|
| 943 |
+
rank: 0
|
| 944 |
+
alpha: 64
|
| 945 |
+
target_modules: all-linear
|
| 946 |
+
agent_proxy:
|
| 947 |
+
context_window_mode: full
|
| 948 |
+
max_context_window: -1
|
| 949 |
+
batch_adjust_mode: copy
|
| 950 |
+
max_turn: 15
|
| 951 |
+
action_sep: '||'
|
| 952 |
+
max_actions_per_turn: 1
|
| 953 |
+
use_turn_scores: false
|
| 954 |
+
enable_think: true
|
| 955 |
+
reward_normalization:
|
| 956 |
+
grouping: state
|
| 957 |
+
method: identity
|
| 958 |
+
collapse_detection:
|
| 959 |
+
compute_freq: 5
|
| 960 |
+
micro_batch_size: 128
|
| 961 |
+
first_turn_enabled: true
|
| 962 |
+
multi_turn_enabled: true
|
| 963 |
+
num_samples: 64
|
| 964 |
+
es_manager:
|
| 965 |
+
format_penalty: -0.1
|
| 966 |
+
train:
|
| 967 |
+
env_groups: 8
|
| 968 |
+
group_size: 16
|
| 969 |
+
env_configs:
|
| 970 |
+
tags:
|
| 971 |
+
- SimpleSudoku
|
| 972 |
+
n_groups:
|
| 973 |
+
- 8
|
| 974 |
+
val:
|
| 975 |
+
env_groups: 32
|
| 976 |
+
group_size: 16
|
| 977 |
+
env_configs:
|
| 978 |
+
tags:
|
| 979 |
+
- SimpleSudoku
|
| 980 |
+
n_groups:
|
| 981 |
+
- 32
|
| 982 |
+
ctx_manager:
|
| 983 |
+
generation:
|
| 984 |
+
gen_config:
|
| 985 |
+
response_length: ${actor_rollout_ref.rollout.response_length}
|
| 986 |
+
temperature: ${actor_rollout_ref.rollout.temperature}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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
hydra:
|
| 2 |
+
run:
|
| 3 |
+
dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 4 |
+
sweep:
|
| 5 |
+
dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 6 |
+
subdir: ${hydra.job.num}
|
| 7 |
+
launcher:
|
| 8 |
+
_target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
|
| 9 |
+
sweeper:
|
| 10 |
+
_target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
|
| 11 |
+
max_batch_size: null
|
| 12 |
+
params: null
|
| 13 |
+
help:
|
| 14 |
+
app_name: ${hydra.job.name}
|
| 15 |
+
header: '${hydra.help.app_name} is powered by Hydra.
|
| 16 |
+
|
| 17 |
+
'
|
| 18 |
+
footer: 'Powered by Hydra (https://hydra.cc)
|
| 19 |
+
|
| 20 |
+
Use --hydra-help to view Hydra specific help
|
| 21 |
+
|
| 22 |
+
'
|
| 23 |
+
template: '${hydra.help.header}
|
| 24 |
+
|
| 25 |
+
== Configuration groups ==
|
| 26 |
+
|
| 27 |
+
Compose your configuration from those groups (group=option)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
$APP_CONFIG_GROUPS
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
== Config ==
|
| 34 |
+
|
| 35 |
+
Override anything in the config (foo.bar=value)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
$CONFIG
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
${hydra.help.footer}
|
| 42 |
+
|
| 43 |
+
'
|
| 44 |
+
hydra_help:
|
| 45 |
+
template: 'Hydra (${hydra.runtime.version})
|
| 46 |
+
|
| 47 |
+
See https://hydra.cc for more info.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
== Flags ==
|
| 51 |
+
|
| 52 |
+
$FLAGS_HELP
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
== Configuration groups ==
|
| 56 |
+
|
| 57 |
+
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
|
| 58 |
+
to command line)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
$HYDRA_CONFIG_GROUPS
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
Use ''--cfg hydra'' to Show the Hydra config.
|
| 65 |
+
|
| 66 |
+
'
|
| 67 |
+
hydra_help: ???
|
| 68 |
+
hydra_logging:
|
| 69 |
+
version: 1
|
| 70 |
+
formatters:
|
| 71 |
+
simple:
|
| 72 |
+
format: '[%(asctime)s][HYDRA] %(message)s'
|
| 73 |
+
handlers:
|
| 74 |
+
console:
|
| 75 |
+
class: logging.StreamHandler
|
| 76 |
+
formatter: simple
|
| 77 |
+
stream: ext://sys.stdout
|
| 78 |
+
root:
|
| 79 |
+
level: INFO
|
| 80 |
+
handlers:
|
| 81 |
+
- console
|
| 82 |
+
loggers:
|
| 83 |
+
logging_example:
|
| 84 |
+
level: DEBUG
|
| 85 |
+
disable_existing_loggers: false
|
| 86 |
+
job_logging:
|
| 87 |
+
version: 1
|
| 88 |
+
formatters:
|
| 89 |
+
simple:
|
| 90 |
+
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
|
| 91 |
+
handlers:
|
| 92 |
+
console:
|
| 93 |
+
class: logging.StreamHandler
|
| 94 |
+
formatter: simple
|
| 95 |
+
stream: ext://sys.stdout
|
| 96 |
+
file:
|
| 97 |
+
class: logging.FileHandler
|
| 98 |
+
formatter: simple
|
| 99 |
+
filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
|
| 100 |
+
root:
|
| 101 |
+
level: INFO
|
| 102 |
+
handlers:
|
| 103 |
+
- console
|
| 104 |
+
- file
|
| 105 |
+
disable_existing_loggers: false
|
| 106 |
+
env: {}
|
| 107 |
+
mode: RUN
|
| 108 |
+
searchpath:
|
| 109 |
+
- pkg://verl.trainer.config
|
| 110 |
+
callbacks: {}
|
| 111 |
+
output_subdir: .hydra
|
| 112 |
+
overrides:
|
| 113 |
+
hydra:
|
| 114 |
+
- hydra.mode=RUN
|
| 115 |
+
task:
|
| 116 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 117 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 118 |
+
- trainer.total_training_steps=1000
|
| 119 |
+
- model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
| 120 |
+
job:
|
| 121 |
+
name: train
|
| 122 |
+
chdir: null
|
| 123 |
+
override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct,trainer.total_training_steps=1000
|
| 124 |
+
id: ???
|
| 125 |
+
num: ???
|
| 126 |
+
config_name: _8_sudoku
|
| 127 |
+
env_set: {}
|
| 128 |
+
env_copy: []
|
| 129 |
+
config:
|
| 130 |
+
override_dirname:
|
| 131 |
+
kv_sep: '='
|
| 132 |
+
item_sep: ','
|
| 133 |
+
exclude_keys: []
|
| 134 |
+
runtime:
|
| 135 |
+
version: 1.3.2
|
| 136 |
+
version_base: '1.3'
|
| 137 |
+
cwd: /mnt/general/wanghy/RAGEN_v2
|
| 138 |
+
config_sources:
|
| 139 |
+
- path: hydra.conf
|
| 140 |
+
schema: pkg
|
| 141 |
+
provider: hydra
|
| 142 |
+
- path: /mnt/general/wanghy/RAGEN_v2/config
|
| 143 |
+
schema: file
|
| 144 |
+
provider: main
|
| 145 |
+
- path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
|
| 146 |
+
schema: file
|
| 147 |
+
provider: command-line
|
| 148 |
+
- path: verl.trainer.config
|
| 149 |
+
schema: pkg
|
| 150 |
+
provider: hydra.searchpath in main
|
| 151 |
+
- path: ''
|
| 152 |
+
schema: structured
|
| 153 |
+
provider: schema
|
| 154 |
+
output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-05-15/14-11-35
|
| 155 |
+
choices:
|
| 156 |
+
reward_model: dp_reward_model
|
| 157 |
+
critic: dp_critic
|
| 158 |
+
critic/../engine@critic.model.fsdp_config: fsdp
|
| 159 |
+
critic/../optim@critic.optim: fsdp
|
| 160 |
+
model@actor_rollout_ref.model: hf_model
|
| 161 |
+
rollout@actor_rollout_ref.rollout: rollout
|
| 162 |
+
ref@actor_rollout_ref.ref: dp_ref
|
| 163 |
+
ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
|
| 164 |
+
data: legacy_data
|
| 165 |
+
actor@actor_rollout_ref.actor: dp_actor
|
| 166 |
+
actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
|
| 167 |
+
actor/../optim@actor_rollout_ref.actor.optim: fsdp
|
| 168 |
+
hydra/env: default
|
| 169 |
+
hydra/callbacks: null
|
| 170 |
+
hydra/job_logging: default
|
| 171 |
+
hydra/hydra_logging: default
|
| 172 |
+
hydra/hydra_help: default
|
| 173 |
+
hydra/help: default
|
| 174 |
+
hydra/sweeper: basic
|
| 175 |
+
hydra/launcher: basic
|
| 176 |
+
hydra/output: default
|
| 177 |
+
verbose: false
|
outputs/2026-05-15/14-11-35/.hydra/overrides.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 2 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 3 |
+
- trainer.total_training_steps=1000
|
| 4 |
+
- model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
outputs/2026-05-15/14-56-09/.hydra/config.yaml
ADDED
|
@@ -0,0 +1,989 @@
|
|
|
|
|
|
|
|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
+
- 0.9
|
| 12 |
+
- 0.999
|
| 13 |
+
clip_grad: 1.0
|
| 14 |
+
min_lr_ratio: 0.0
|
| 15 |
+
num_cycles: 0.5
|
| 16 |
+
warmup_style: constant
|
| 17 |
+
fsdp_config:
|
| 18 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 19 |
+
wrap_policy:
|
| 20 |
+
min_num_params: 0
|
| 21 |
+
param_offload: false
|
| 22 |
+
optimizer_offload: false
|
| 23 |
+
offload_policy: false
|
| 24 |
+
reshard_after_forward: true
|
| 25 |
+
fsdp_size: -1
|
| 26 |
+
forward_prefetch: false
|
| 27 |
+
model_dtype: fp32
|
| 28 |
+
use_orig_params: false
|
| 29 |
+
ulysses_sequence_parallel_size: 1
|
| 30 |
+
entropy_from_logits_with_chunking: false
|
| 31 |
+
use_torch_compile: true
|
| 32 |
+
entropy_checkpointing: false
|
| 33 |
+
forward_only: false
|
| 34 |
+
strategy: fsdp
|
| 35 |
+
_target_: verl.workers.config.FSDPActorConfig
|
| 36 |
+
strategy: fsdp
|
| 37 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 38 |
+
ppo_micro_batch_size: null
|
| 39 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 40 |
+
use_dynamic_bsz: false
|
| 41 |
+
ppo_max_token_len_per_gpu: 16384
|
| 42 |
+
clip_ratio: 0.2
|
| 43 |
+
clip_ratio_low: 0.2
|
| 44 |
+
clip_ratio_high: 0.28
|
| 45 |
+
freeze_vision_tower: false
|
| 46 |
+
policy_loss:
|
| 47 |
+
_target_: verl.workers.config.PolicyLossConfig
|
| 48 |
+
loss_mode: vanilla
|
| 49 |
+
clip_cov_ratio: 0.0002
|
| 50 |
+
clip_cov_lb: 1.0
|
| 51 |
+
clip_cov_ub: 5.0
|
| 52 |
+
kl_cov_ratio: 0.0002
|
| 53 |
+
ppo_kl_coef: 0.1
|
| 54 |
+
clip_ratio_c: 3.0
|
| 55 |
+
loss_agg_mode: token-mean
|
| 56 |
+
entropy_coeff: 0.001
|
| 57 |
+
tis_imp_ratio_cap: -1
|
| 58 |
+
use_kl_loss: false
|
| 59 |
+
use_torch_compile: true
|
| 60 |
+
kl_loss_coef: 0.0
|
| 61 |
+
kl_loss_type: kl
|
| 62 |
+
ppo_epochs: 1
|
| 63 |
+
shuffle: false
|
| 64 |
+
checkpoint:
|
| 65 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 66 |
+
save_contents:
|
| 67 |
+
- model
|
| 68 |
+
- optimizer
|
| 69 |
+
- extra
|
| 70 |
+
load_contents: ${.save_contents}
|
| 71 |
+
async_save: false
|
| 72 |
+
use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
|
| 73 |
+
profiler:
|
| 74 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 75 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 76 |
+
enable: false
|
| 77 |
+
all_ranks: false
|
| 78 |
+
ranks: []
|
| 79 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 80 |
+
tool_config:
|
| 81 |
+
nsys:
|
| 82 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 83 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 84 |
+
npu:
|
| 85 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 86 |
+
contents: []
|
| 87 |
+
level: level1
|
| 88 |
+
analysis: true
|
| 89 |
+
discrete: false
|
| 90 |
+
torch:
|
| 91 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 92 |
+
step_start: 0
|
| 93 |
+
step_end: null
|
| 94 |
+
torch_memory:
|
| 95 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 96 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 97 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 98 |
+
grad_clip: 1.0
|
| 99 |
+
ulysses_sequence_parallel_size: 1
|
| 100 |
+
entropy_from_logits_with_chunking: false
|
| 101 |
+
entropy_checkpointing: false
|
| 102 |
+
use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
|
| 103 |
+
use_ref: true
|
| 104 |
+
grpo_advantage_length_weight: ${grpo_advantage_length_weight}
|
| 105 |
+
filter_loss_scaling: none
|
| 106 |
+
ref:
|
| 107 |
+
strategy: ${actor_rollout_ref.actor.strategy}
|
| 108 |
+
use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
|
| 109 |
+
log_prob_micro_batch_size: null
|
| 110 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 111 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 112 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 113 |
+
profiler:
|
| 114 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 115 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 116 |
+
enable: false
|
| 117 |
+
all_ranks: false
|
| 118 |
+
ranks: []
|
| 119 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 120 |
+
tool_config:
|
| 121 |
+
nsys:
|
| 122 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 123 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 124 |
+
npu:
|
| 125 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 126 |
+
contents: []
|
| 127 |
+
level: level1
|
| 128 |
+
analysis: true
|
| 129 |
+
discrete: false
|
| 130 |
+
torch:
|
| 131 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 132 |
+
step_start: 0
|
| 133 |
+
step_end: null
|
| 134 |
+
torch_memory:
|
| 135 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 136 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 137 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 138 |
+
fsdp_config:
|
| 139 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 140 |
+
wrap_policy:
|
| 141 |
+
min_num_params: 0
|
| 142 |
+
param_offload: false
|
| 143 |
+
optimizer_offload: false
|
| 144 |
+
offload_policy: false
|
| 145 |
+
reshard_after_forward: true
|
| 146 |
+
fsdp_size: -1
|
| 147 |
+
forward_prefetch: false
|
| 148 |
+
model_dtype: fp32
|
| 149 |
+
use_orig_params: false
|
| 150 |
+
ulysses_sequence_parallel_size: 1
|
| 151 |
+
entropy_from_logits_with_chunking: false
|
| 152 |
+
use_torch_compile: true
|
| 153 |
+
entropy_checkpointing: false
|
| 154 |
+
forward_only: false
|
| 155 |
+
strategy: fsdp
|
| 156 |
+
model: null
|
| 157 |
+
ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
|
| 158 |
+
entropy_from_logits_with_chunking: false
|
| 159 |
+
entropy_checkpointing: false
|
| 160 |
+
rollout:
|
| 161 |
+
_target_: verl.workers.config.RolloutConfig
|
| 162 |
+
name: vllm
|
| 163 |
+
mode: sync
|
| 164 |
+
temperature: 1
|
| 165 |
+
top_k: -1
|
| 166 |
+
top_p: 1
|
| 167 |
+
prompt_length: 1
|
| 168 |
+
response_length: 400
|
| 169 |
+
dtype: bfloat16
|
| 170 |
+
gpu_memory_utilization: 0.7
|
| 171 |
+
ignore_eos: false
|
| 172 |
+
enforce_eager: true
|
| 173 |
+
cudagraph_capture_sizes: null
|
| 174 |
+
free_cache_engine: true
|
| 175 |
+
tensor_model_parallel_size: 1
|
| 176 |
+
data_parallel_size: 1
|
| 177 |
+
expert_parallel_size: 1
|
| 178 |
+
max_num_batched_tokens: 16384
|
| 179 |
+
max_model_len: 16384
|
| 180 |
+
max_num_seqs: 1024
|
| 181 |
+
enable_chunked_prefill: true
|
| 182 |
+
enable_prefix_caching: true
|
| 183 |
+
load_format: auto
|
| 184 |
+
log_prob_micro_batch_size: null
|
| 185 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 186 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 187 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 188 |
+
disable_log_stats: true
|
| 189 |
+
do_sample: true
|
| 190 |
+
'n': 1
|
| 191 |
+
over_sample_rate: 0
|
| 192 |
+
multi_stage_wake_up: false
|
| 193 |
+
engine_kwargs:
|
| 194 |
+
vllm: {}
|
| 195 |
+
sglang: {}
|
| 196 |
+
val_kwargs:
|
| 197 |
+
_target_: verl.workers.config.SamplingConfig
|
| 198 |
+
top_k: -1
|
| 199 |
+
top_p: 1.0
|
| 200 |
+
temperature: 0.5
|
| 201 |
+
'n': 1
|
| 202 |
+
do_sample: true
|
| 203 |
+
multi_turn:
|
| 204 |
+
_target_: verl.workers.config.MultiTurnConfig
|
| 205 |
+
enable: false
|
| 206 |
+
max_assistant_turns: null
|
| 207 |
+
tool_config_path: null
|
| 208 |
+
max_user_turns: null
|
| 209 |
+
max_parallel_calls: 1
|
| 210 |
+
max_tool_response_length: 256
|
| 211 |
+
tool_response_truncate_side: middle
|
| 212 |
+
interaction_config_path: null
|
| 213 |
+
use_inference_chat_template: false
|
| 214 |
+
tokenization_sanity_check_mode: strict
|
| 215 |
+
format: hermes
|
| 216 |
+
num_repeat_rollouts: null
|
| 217 |
+
calculate_log_probs: false
|
| 218 |
+
agent:
|
| 219 |
+
_target_: verl.workers.config.AgentLoopConfig
|
| 220 |
+
num_workers: 8
|
| 221 |
+
agent_loop_config_path: null
|
| 222 |
+
custom_async_server:
|
| 223 |
+
_target_: verl.workers.config.CustomAsyncServerConfig
|
| 224 |
+
path: null
|
| 225 |
+
name: null
|
| 226 |
+
update_weights_bucket_megabytes: 512
|
| 227 |
+
trace:
|
| 228 |
+
_target_: verl.workers.config.TraceConfig
|
| 229 |
+
backend: null
|
| 230 |
+
token2text: false
|
| 231 |
+
skip_rollout: false
|
| 232 |
+
skip_dump_dir: /tmp/rollout_dump
|
| 233 |
+
skip_tokenizer_init: true
|
| 234 |
+
profiler:
|
| 235 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 236 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 237 |
+
enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
|
| 238 |
+
all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
|
| 239 |
+
ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
|
| 240 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 241 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 242 |
+
layered_summon: false
|
| 243 |
+
rollout_filter_value: 0.9
|
| 244 |
+
rollout_filter_strategy: top_p
|
| 245 |
+
rollout_filter_type: largest
|
| 246 |
+
rollout_filter_include_zero: true
|
| 247 |
+
rollout_filter_top_p_prob_mode: linear
|
| 248 |
+
rollout_filter_selection_eps: 0.01
|
| 249 |
+
rollout_filter_empty_stop_steps: 5
|
| 250 |
+
rollout_filter_metric: reward_variance
|
| 251 |
+
gradient_analysis_num_buckets: 6
|
| 252 |
+
gradient_analysis_bucket_mode: quantile
|
| 253 |
+
model:
|
| 254 |
+
_target_: verl.workers.config.HFModelConfig
|
| 255 |
+
path: ${model_path}
|
| 256 |
+
hf_config_path: null
|
| 257 |
+
tokenizer_path: null
|
| 258 |
+
use_shm: false
|
| 259 |
+
trust_remote_code: false
|
| 260 |
+
custom_chat_template: null
|
| 261 |
+
external_lib: null
|
| 262 |
+
override_config: {}
|
| 263 |
+
enable_gradient_checkpointing: true
|
| 264 |
+
enable_activation_offload: false
|
| 265 |
+
use_remove_padding: false
|
| 266 |
+
lora_rank: ${lora.rank}
|
| 267 |
+
lora_alpha: ${lora.alpha}
|
| 268 |
+
target_modules: ${lora.target_modules}
|
| 269 |
+
exclude_modules: null
|
| 270 |
+
use_liger: false
|
| 271 |
+
use_fused_kernels: false
|
| 272 |
+
fused_kernel_options:
|
| 273 |
+
impl_backend: torch
|
| 274 |
+
hybrid_engine: true
|
| 275 |
+
nccl_timeout: 600
|
| 276 |
+
data:
|
| 277 |
+
tokenizer: null
|
| 278 |
+
use_shm: false
|
| 279 |
+
train_files: ~/data/rlhf/gsm8k/train.parquet
|
| 280 |
+
val_files: ~/data/rlhf/gsm8k/test.parquet
|
| 281 |
+
prompt_key: prompt
|
| 282 |
+
reward_fn_key: data_source
|
| 283 |
+
max_prompt_length: null
|
| 284 |
+
max_response_length: null
|
| 285 |
+
train_batch_size: null
|
| 286 |
+
val_batch_size: null
|
| 287 |
+
return_raw_input_ids: false
|
| 288 |
+
return_raw_chat: false
|
| 289 |
+
return_full_prompt: false
|
| 290 |
+
shuffle: true
|
| 291 |
+
dataloader_num_workers: 8
|
| 292 |
+
validation_shuffle: false
|
| 293 |
+
filter_overlong_prompts: false
|
| 294 |
+
filter_overlong_prompts_workers: 1
|
| 295 |
+
truncation: error
|
| 296 |
+
image_key: images
|
| 297 |
+
video_key: videos
|
| 298 |
+
trust_remote_code: false
|
| 299 |
+
custom_cls:
|
| 300 |
+
path: null
|
| 301 |
+
name: null
|
| 302 |
+
return_multi_modal_inputs: true
|
| 303 |
+
sampler:
|
| 304 |
+
class_path: null
|
| 305 |
+
class_name: null
|
| 306 |
+
datagen:
|
| 307 |
+
path: null
|
| 308 |
+
name: null
|
| 309 |
+
apply_chat_template_kwargs: {}
|
| 310 |
+
critic:
|
| 311 |
+
optim:
|
| 312 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 313 |
+
lr: 1.0e-05
|
| 314 |
+
lr_warmup_steps_ratio: 0.0
|
| 315 |
+
total_training_steps: -1
|
| 316 |
+
weight_decay: 0.01
|
| 317 |
+
lr_warmup_steps: -1
|
| 318 |
+
betas:
|
| 319 |
+
- 0.9
|
| 320 |
+
- 0.999
|
| 321 |
+
clip_grad: 1.0
|
| 322 |
+
min_lr_ratio: 0.0
|
| 323 |
+
num_cycles: 0.5
|
| 324 |
+
warmup_style: constant
|
| 325 |
+
model:
|
| 326 |
+
fsdp_config:
|
| 327 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 328 |
+
wrap_policy:
|
| 329 |
+
min_num_params: 0
|
| 330 |
+
param_offload: false
|
| 331 |
+
optimizer_offload: false
|
| 332 |
+
offload_policy: false
|
| 333 |
+
reshard_after_forward: true
|
| 334 |
+
fsdp_size: -1
|
| 335 |
+
forward_prefetch: false
|
| 336 |
+
model_dtype: fp32
|
| 337 |
+
use_orig_params: false
|
| 338 |
+
ulysses_sequence_parallel_size: 1
|
| 339 |
+
entropy_from_logits_with_chunking: false
|
| 340 |
+
use_torch_compile: true
|
| 341 |
+
entropy_checkpointing: false
|
| 342 |
+
forward_only: false
|
| 343 |
+
strategy: fsdp
|
| 344 |
+
path: ${model_path}
|
| 345 |
+
tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
|
| 346 |
+
override_config: {}
|
| 347 |
+
external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
|
| 348 |
+
trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
|
| 349 |
+
_target_: verl.workers.config.FSDPCriticModelCfg
|
| 350 |
+
use_shm: false
|
| 351 |
+
enable_gradient_checkpointing: true
|
| 352 |
+
enable_activation_offload: false
|
| 353 |
+
use_remove_padding: false
|
| 354 |
+
lora_rank: ${lora.rank}
|
| 355 |
+
lora_alpha: ${lora.alpha}
|
| 356 |
+
target_modules: ${lora.target_modules}
|
| 357 |
+
_target_: verl.workers.config.FSDPCriticConfig
|
| 358 |
+
rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
|
| 359 |
+
strategy: fsdp
|
| 360 |
+
enable: null
|
| 361 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 362 |
+
ppo_micro_batch_size: null
|
| 363 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 364 |
+
use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 365 |
+
ppo_max_token_len_per_gpu: 32768
|
| 366 |
+
forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
|
| 367 |
+
ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
|
| 368 |
+
shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
|
| 369 |
+
cliprange_value: 0.5
|
| 370 |
+
loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
|
| 371 |
+
checkpoint:
|
| 372 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 373 |
+
save_contents:
|
| 374 |
+
- model
|
| 375 |
+
- optimizer
|
| 376 |
+
- extra
|
| 377 |
+
load_contents: ${.save_contents}
|
| 378 |
+
async_save: false
|
| 379 |
+
profiler:
|
| 380 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 381 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 382 |
+
enable: false
|
| 383 |
+
all_ranks: false
|
| 384 |
+
ranks: []
|
| 385 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 386 |
+
tool_config:
|
| 387 |
+
nsys:
|
| 388 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 389 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 390 |
+
npu:
|
| 391 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 392 |
+
contents: []
|
| 393 |
+
level: level1
|
| 394 |
+
analysis: true
|
| 395 |
+
discrete: false
|
| 396 |
+
torch:
|
| 397 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 398 |
+
step_start: 0
|
| 399 |
+
step_end: null
|
| 400 |
+
torch_memory:
|
| 401 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 402 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 403 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 404 |
+
forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
|
| 405 |
+
forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
|
| 406 |
+
ulysses_sequence_parallel_size: 1
|
| 407 |
+
grad_clip: 1.0
|
| 408 |
+
reward_model:
|
| 409 |
+
enable: false
|
| 410 |
+
enable_resource_pool: false
|
| 411 |
+
n_gpus_per_node: 0
|
| 412 |
+
nnodes: 0
|
| 413 |
+
strategy: fsdp
|
| 414 |
+
model:
|
| 415 |
+
input_tokenizer: ${actor_rollout_ref.model.path}
|
| 416 |
+
path: ~/models/FsfairX-LLaMA3-RM-v0.1
|
| 417 |
+
external_lib: ${actor_rollout_ref.model.external_lib}
|
| 418 |
+
trust_remote_code: false
|
| 419 |
+
use_shm: false
|
| 420 |
+
use_remove_padding: false
|
| 421 |
+
use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
|
| 422 |
+
fsdp_config:
|
| 423 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 424 |
+
wrap_policy:
|
| 425 |
+
min_num_params: 0
|
| 426 |
+
param_offload: false
|
| 427 |
+
reshard_after_forward: true
|
| 428 |
+
fsdp_size: -1
|
| 429 |
+
forward_prefetch: false
|
| 430 |
+
micro_batch_size: null
|
| 431 |
+
micro_batch_size_per_gpu: null
|
| 432 |
+
max_length: null
|
| 433 |
+
use_dynamic_bsz: ${critic.use_dynamic_bsz}
|
| 434 |
+
forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
|
| 435 |
+
reward_manager: naive
|
| 436 |
+
launch_reward_fn_async: false
|
| 437 |
+
sandbox_fusion:
|
| 438 |
+
url: null
|
| 439 |
+
max_concurrent: 64
|
| 440 |
+
memory_limit_mb: 1024
|
| 441 |
+
profiler:
|
| 442 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 443 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 444 |
+
enable: false
|
| 445 |
+
all_ranks: false
|
| 446 |
+
ranks: []
|
| 447 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 448 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 449 |
+
ulysses_sequence_parallel_size: 1
|
| 450 |
+
custom_reward_function:
|
| 451 |
+
path: null
|
| 452 |
+
name: compute_score
|
| 453 |
+
algorithm:
|
| 454 |
+
_target_: verl.trainer.config.AlgoConfig
|
| 455 |
+
gamma: 1.0
|
| 456 |
+
lam: 1.0
|
| 457 |
+
adv_estimator: gae
|
| 458 |
+
norm_adv_by_std_in_grpo: true
|
| 459 |
+
use_kl_in_reward: false
|
| 460 |
+
kl_penalty: kl
|
| 461 |
+
kl_ctrl:
|
| 462 |
+
_target_: verl.trainer.config.KLControlConfig
|
| 463 |
+
type: fixed
|
| 464 |
+
kl_coef: 0.0
|
| 465 |
+
horizon: 10000
|
| 466 |
+
target_kl: 0.1
|
| 467 |
+
use_pf_ppo: false
|
| 468 |
+
pf_ppo:
|
| 469 |
+
reweight_method: pow
|
| 470 |
+
weight_pow: 2.0
|
| 471 |
+
high_level_gamma: 0.95
|
| 472 |
+
bi_level_gae: false
|
| 473 |
+
zero_task_advantage: false
|
| 474 |
+
soft_advantage_reweight: false
|
| 475 |
+
trainer:
|
| 476 |
+
balance_batch: true
|
| 477 |
+
total_epochs: 30
|
| 478 |
+
total_training_steps: 400
|
| 479 |
+
project_name: ragen
|
| 480 |
+
experiment_name: sudoku-main
|
| 481 |
+
logger:
|
| 482 |
+
- console
|
| 483 |
+
- wandb
|
| 484 |
+
log_val_generations: 0
|
| 485 |
+
rollout_data_dir: null
|
| 486 |
+
validation_data_dir: null
|
| 487 |
+
nnodes: 1
|
| 488 |
+
n_gpus_per_node: 8
|
| 489 |
+
save_freq: -1
|
| 490 |
+
esi_redundant_time: 0
|
| 491 |
+
resume_mode: auto
|
| 492 |
+
resume_from_path: null
|
| 493 |
+
val_before_train: true
|
| 494 |
+
val_only: false
|
| 495 |
+
test_freq: 10
|
| 496 |
+
critic_warmup: 0
|
| 497 |
+
default_hdfs_dir: null
|
| 498 |
+
del_local_ckpt_after_load: false
|
| 499 |
+
default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
|
| 500 |
+
max_actor_ckpt_to_keep: 1
|
| 501 |
+
max_critic_ckpt_to_keep: 1
|
| 502 |
+
ray_wait_register_center_timeout: 300
|
| 503 |
+
device: cuda
|
| 504 |
+
use_legacy_worker_impl: auto
|
| 505 |
+
local_log_dir: results/
|
| 506 |
+
validation_steps: 1
|
| 507 |
+
generations_to_log_to_wandb:
|
| 508 |
+
val: 20
|
| 509 |
+
log_group_rv_table: false
|
| 510 |
+
gradient_analysis_mode: false
|
| 511 |
+
gradient_analysis_every: 50
|
| 512 |
+
gradient_analysis_env_groups: null
|
| 513 |
+
gradient_analysis_group_size: null
|
| 514 |
+
gradient_analysis_log_prefilter: false
|
| 515 |
+
gradient_analysis_only: false
|
| 516 |
+
exit_after_gradient_analysis: false
|
| 517 |
+
global_profiler:
|
| 518 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 519 |
+
tool: null
|
| 520 |
+
steps: null
|
| 521 |
+
profile_continuous_steps: false
|
| 522 |
+
save_path: outputs/profile
|
| 523 |
+
global_tool_config:
|
| 524 |
+
nsys:
|
| 525 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 526 |
+
discrete: false
|
| 527 |
+
controller_nsight_options:
|
| 528 |
+
trace: cuda,nvtx,cublas,ucx
|
| 529 |
+
cuda-memory-usage: 'true'
|
| 530 |
+
cuda-graph-trace: graph
|
| 531 |
+
worker_nsight_options:
|
| 532 |
+
trace: cuda,nvtx,cublas,ucx
|
| 533 |
+
cuda-memory-usage: 'true'
|
| 534 |
+
cuda-graph-trace: graph
|
| 535 |
+
capture-range: cudaProfilerApi
|
| 536 |
+
capture-range-end: null
|
| 537 |
+
kill: none
|
| 538 |
+
torch_memory:
|
| 539 |
+
trace_alloc_max_entries: 100000
|
| 540 |
+
stack_depth: 32
|
| 541 |
+
context: all
|
| 542 |
+
stacks: all
|
| 543 |
+
kw_args: {}
|
| 544 |
+
ray_kwargs:
|
| 545 |
+
ray_init:
|
| 546 |
+
num_cpus: null
|
| 547 |
+
timeline_json_file: null
|
| 548 |
+
custom_envs:
|
| 549 |
+
SimpleSokoban:
|
| 550 |
+
env_type: sokoban
|
| 551 |
+
max_actions_per_traj: 10
|
| 552 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 553 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 554 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 555 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 556 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 557 |
+
max_tokens: 100
|
| 558 |
+
parallel_friendly: false
|
| 559 |
+
max_workers: 32
|
| 560 |
+
env_config:
|
| 561 |
+
dim_x: 6
|
| 562 |
+
dim_y: 6
|
| 563 |
+
num_boxes: 1
|
| 564 |
+
max_steps: 100
|
| 565 |
+
LargerSokoban:
|
| 566 |
+
env_type: sokoban
|
| 567 |
+
max_actions_per_traj: 10
|
| 568 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 569 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 570 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 571 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 572 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 573 |
+
max_tokens: 100
|
| 574 |
+
parallel_friendly: false
|
| 575 |
+
max_workers: 32
|
| 576 |
+
env_config:
|
| 577 |
+
dim_x: 8
|
| 578 |
+
dim_y: 8
|
| 579 |
+
num_boxes: 2
|
| 580 |
+
max_steps: 100
|
| 581 |
+
search_depth: 10
|
| 582 |
+
SokobanDifferentGridVocab:
|
| 583 |
+
env_type: sokoban
|
| 584 |
+
max_actions_per_traj: 10
|
| 585 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 586 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 587 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 588 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 589 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 590 |
+
max_tokens: 100
|
| 591 |
+
parallel_friendly: false
|
| 592 |
+
max_workers: 32
|
| 593 |
+
env_config:
|
| 594 |
+
search_depth: 30
|
| 595 |
+
dim_x: 6
|
| 596 |
+
dim_y: 6
|
| 597 |
+
num_boxes: 1
|
| 598 |
+
max_steps: 100
|
| 599 |
+
grid_lookup:
|
| 600 |
+
0: W
|
| 601 |
+
1: .
|
| 602 |
+
2: G
|
| 603 |
+
3: C
|
| 604 |
+
4: B
|
| 605 |
+
5: A
|
| 606 |
+
6: '@'
|
| 607 |
+
grid_vocab:
|
| 608 |
+
W: wall
|
| 609 |
+
.: empty
|
| 610 |
+
G: target
|
| 611 |
+
C: box on target
|
| 612 |
+
B: box
|
| 613 |
+
A: player
|
| 614 |
+
'@': player on target
|
| 615 |
+
CoordSokoban:
|
| 616 |
+
env_type: sokoban
|
| 617 |
+
max_actions_per_traj: 10
|
| 618 |
+
env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
|
| 619 |
+
\ need to push all boxes to targets.\nYou are provided with a symbol grid and\
|
| 620 |
+
\ the zero-indexed coordinates of the player, each box, and each target. \n\
|
| 621 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
|
| 622 |
+
\ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
|
| 623 |
+
\ the same direction. \nYou cannot push a box through a wall, and you cannot\
|
| 624 |
+
\ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
|
| 625 |
+
\ || Right || Up</answer>.\n"
|
| 626 |
+
max_tokens: 120
|
| 627 |
+
parallel_friendly: false
|
| 628 |
+
max_workers: 32
|
| 629 |
+
env_config:
|
| 630 |
+
dim_x: 6
|
| 631 |
+
dim_y: 6
|
| 632 |
+
num_boxes: 1
|
| 633 |
+
max_steps: 100
|
| 634 |
+
observation_format: grid_coord
|
| 635 |
+
VisualSimpleSokoban:
|
| 636 |
+
env_type: sokoban
|
| 637 |
+
max_actions_per_traj: 10
|
| 638 |
+
env_instruction: You are solving the Sokoban puzzle. You are the player and you
|
| 639 |
+
need to push all boxes to targets. When you are right next to a box, you can
|
| 640 |
+
push it by moving in the same direction. You cannot push a box through a wall,
|
| 641 |
+
and you cannot pull a box. The answer should be a sequence of actions, like
|
| 642 |
+
<answer>Right || Right || Up</answer>
|
| 643 |
+
max_tokens: 100
|
| 644 |
+
parallel_friendly: false
|
| 645 |
+
max_workers: 32
|
| 646 |
+
env_config:
|
| 647 |
+
dim_x: 6
|
| 648 |
+
dim_y: 6
|
| 649 |
+
num_boxes: 1
|
| 650 |
+
max_steps: 100
|
| 651 |
+
render_mode: rgb_array
|
| 652 |
+
Alfworld:
|
| 653 |
+
env_type: alfworld
|
| 654 |
+
max_actions_per_traj: 50
|
| 655 |
+
parallel_friendly: false
|
| 656 |
+
max_workers: 1
|
| 657 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 658 |
+
|
| 659 |
+
Complete household tasks by navigating and interacting with objects.
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 663 |
+
process MUST be enclosed within <think> </think> tags.
|
| 664 |
+
|
| 665 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 666 |
+
for current step and present it within <answer>...</answer> tags.
|
| 667 |
+
|
| 668 |
+
'
|
| 669 |
+
max_tokens: 512
|
| 670 |
+
env_config:
|
| 671 |
+
eval_dataset: eval_in_distribution
|
| 672 |
+
AlfworldOOD:
|
| 673 |
+
env_type: alfworld
|
| 674 |
+
max_actions_per_traj: 50
|
| 675 |
+
parallel_friendly: false
|
| 676 |
+
max_workers: 1
|
| 677 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 678 |
+
|
| 679 |
+
Complete household tasks by navigating and interacting with objects.
|
| 680 |
+
|
| 681 |
+
|
| 682 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 683 |
+
process MUST be enclosed within <think> </think> tags.
|
| 684 |
+
|
| 685 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 686 |
+
for current step and present it within <answer>...</answer> tags.
|
| 687 |
+
|
| 688 |
+
'
|
| 689 |
+
max_tokens: 512
|
| 690 |
+
env_config:
|
| 691 |
+
eval_dataset: eval_out_of_distribution
|
| 692 |
+
Countdown:
|
| 693 |
+
env_type: countdown
|
| 694 |
+
max_actions_per_traj: 1
|
| 695 |
+
env_instruction: 'You are solving the Countdown puzzle. You should use the num
|
| 696 |
+
list to create an equation that equals the target. Example answer format: <think>
|
| 697 |
+
To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
|
| 698 |
+
= 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
|
| 699 |
+
max_tokens: 100
|
| 700 |
+
parallel_friendly: false
|
| 701 |
+
max_workers: 32
|
| 702 |
+
env_config: null
|
| 703 |
+
Bandit:
|
| 704 |
+
env_type: bandit
|
| 705 |
+
max_actions_per_traj: 1
|
| 706 |
+
env_instruction: ''
|
| 707 |
+
max_tokens: 100
|
| 708 |
+
parallel_friendly: false
|
| 709 |
+
max_workers: 32
|
| 710 |
+
env_config:
|
| 711 |
+
split: train
|
| 712 |
+
BanditTest:
|
| 713 |
+
env_type: bandit
|
| 714 |
+
max_actions_per_traj: 1
|
| 715 |
+
env_instruction: ''
|
| 716 |
+
max_tokens: 100
|
| 717 |
+
parallel_friendly: false
|
| 718 |
+
max_workers: 32
|
| 719 |
+
env_config:
|
| 720 |
+
split: test
|
| 721 |
+
DeepCoder:
|
| 722 |
+
env_type: deepcoder
|
| 723 |
+
max_actions_per_traj: 1
|
| 724 |
+
env_instruction: 'You are solving a coding task. Provide a complete Python function
|
| 725 |
+
solution only. Format: <answer>...</answer>'
|
| 726 |
+
max_tokens: 8000
|
| 727 |
+
parallel_friendly: true
|
| 728 |
+
max_workers: 32
|
| 729 |
+
env_config:
|
| 730 |
+
max_steps: 1
|
| 731 |
+
FrozenLake:
|
| 732 |
+
env_type: frozen_lake
|
| 733 |
+
max_actions_per_traj: 10
|
| 734 |
+
env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
|
| 735 |
+
go to the target. You may move to the unintended direction due to the slippery
|
| 736 |
+
ice. Example answer format: <think>To forbid the hole and go to the target,
|
| 737 |
+
I should go left then go up.</think><answer>Left || Up</answer>'
|
| 738 |
+
max_tokens: 100
|
| 739 |
+
parallel_friendly: false
|
| 740 |
+
max_workers: 32
|
| 741 |
+
env_config:
|
| 742 |
+
success_rate: 0.8
|
| 743 |
+
CoordFrozenLake:
|
| 744 |
+
env_type: frozen_lake
|
| 745 |
+
max_actions_per_traj: 10
|
| 746 |
+
env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
|
| 747 |
+
both a symbol grid and zero-indexed coordinates for the start, goal, player,
|
| 748 |
+
and any holes.
|
| 749 |
+
|
| 750 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner
|
| 751 |
+
(5, 5).
|
| 752 |
+
|
| 753 |
+
Beware that the ice is slippery, so the agent might slide and end up in an unintended
|
| 754 |
+
tile.
|
| 755 |
+
|
| 756 |
+
Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
|
| 757 |
+
|
| 758 |
+
'
|
| 759 |
+
max_tokens: 120
|
| 760 |
+
parallel_friendly: false
|
| 761 |
+
max_workers: 32
|
| 762 |
+
env_config:
|
| 763 |
+
observation_format: grid_coord
|
| 764 |
+
success_rate: 0.8
|
| 765 |
+
MetamathQA:
|
| 766 |
+
env_type: metamathqa
|
| 767 |
+
max_actions_per_traj: 1
|
| 768 |
+
env_instruction: 'You are solving Math problems. '
|
| 769 |
+
max_tokens: 100
|
| 770 |
+
env_config: null
|
| 771 |
+
WebShopFull:
|
| 772 |
+
env_type: webshop
|
| 773 |
+
max_actions_per_traj: 15
|
| 774 |
+
env_instruction: You are an expert autonomous agent operating in the WebShop e‑commerce
|
| 775 |
+
environment.
|
| 776 |
+
max_tokens: 200
|
| 777 |
+
env_config:
|
| 778 |
+
dataset: full
|
| 779 |
+
WebShop:
|
| 780 |
+
env_type: webshop
|
| 781 |
+
max_actions_per_traj: 9
|
| 782 |
+
env_instruction: 'You are browsing an online shop. Based on the instruction, buy
|
| 783 |
+
a product that close to the production description. You need to search, read
|
| 784 |
+
the search results, pick a product, choose the size and color and buy. You should
|
| 785 |
+
only choose action from the available actions list provided later. Example
|
| 786 |
+
process: I need a gingko light and 20x20 pillow cover that is hand painted.
|
| 787 |
+
First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
|
| 788 |
+
with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
|
| 789 |
+
max_tokens: 200
|
| 790 |
+
env_config:
|
| 791 |
+
dataset: small
|
| 792 |
+
Lean:
|
| 793 |
+
env_type: lean
|
| 794 |
+
max_actions_per_traj: 30
|
| 795 |
+
env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
|
| 796 |
+
propose a sequence of tactics that completes the proof. Think step by step about
|
| 797 |
+
which tactics to apply next. Provide tactics separated by '||', for example
|
| 798 |
+
<answer>intro || simp || rfl</answer>.
|
| 799 |
+
max_tokens: 512
|
| 800 |
+
parallel_friendly: true
|
| 801 |
+
max_workers: 32
|
| 802 |
+
env_config: null
|
| 803 |
+
SimpleSudoku:
|
| 804 |
+
env_type: sudoku
|
| 805 |
+
max_actions_per_traj: 20
|
| 806 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 807 |
+
row, column, and 2x2 box contains the numbers 1-4 without repetition.
|
| 808 |
+
|
| 809 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 810 |
+
shown as dots (.).
|
| 811 |
+
|
| 812 |
+
Place numbers one at a time using the format: <answer>place 1 at row 2 col 3</answer>
|
| 813 |
+
or <answer>1,2,3</answer>
|
| 814 |
+
|
| 815 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 816 |
+
if any occur.
|
| 817 |
+
|
| 818 |
+
'
|
| 819 |
+
max_tokens: 150
|
| 820 |
+
parallel_friendly: false
|
| 821 |
+
max_workers: 32
|
| 822 |
+
env_config:
|
| 823 |
+
grid_size: 4
|
| 824 |
+
difficulty: easy
|
| 825 |
+
render_format: with_feedback
|
| 826 |
+
show_conflicts: false
|
| 827 |
+
show_valid_numbers: false
|
| 828 |
+
max_steps: 20
|
| 829 |
+
MediumSudoku:
|
| 830 |
+
env_type: sudoku
|
| 831 |
+
max_actions_per_traj: 30
|
| 832 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 833 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 834 |
+
|
| 835 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 836 |
+
shown as dots (.).
|
| 837 |
+
|
| 838 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 839 |
+
or <answer>2,3,5</answer>
|
| 840 |
+
|
| 841 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 842 |
+
if any occur.
|
| 843 |
+
|
| 844 |
+
'
|
| 845 |
+
max_tokens: 150
|
| 846 |
+
parallel_friendly: false
|
| 847 |
+
max_workers: 32
|
| 848 |
+
env_config:
|
| 849 |
+
grid_size: 9
|
| 850 |
+
difficulty: medium
|
| 851 |
+
render_format: with_feedback
|
| 852 |
+
show_conflicts: true
|
| 853 |
+
show_valid_numbers: true
|
| 854 |
+
max_steps: 81
|
| 855 |
+
SearchQA:
|
| 856 |
+
env_type: search
|
| 857 |
+
max_actions_per_traj: 10
|
| 858 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 859 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 860 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 861 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 862 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 863 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 864 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 865 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 866 |
+
\ Platt]</answer>\n"
|
| 867 |
+
max_tokens: 300
|
| 868 |
+
parallel_friendly: true
|
| 869 |
+
max_workers: 32
|
| 870 |
+
env_config:
|
| 871 |
+
max_steps: 10
|
| 872 |
+
max_search_results: 5
|
| 873 |
+
SearchQAMock:
|
| 874 |
+
env_type: search
|
| 875 |
+
max_actions_per_traj: 10
|
| 876 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 877 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 878 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 879 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 880 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 881 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 882 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 883 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 884 |
+
\ Platt]</answer>\n"
|
| 885 |
+
max_tokens: 300
|
| 886 |
+
parallel_friendly: true
|
| 887 |
+
max_workers: 32
|
| 888 |
+
env_config:
|
| 889 |
+
max_steps: 10
|
| 890 |
+
max_search_results: 5
|
| 891 |
+
mock_mode: true
|
| 892 |
+
game_2048:
|
| 893 |
+
env_type: game_2048
|
| 894 |
+
max_actions_per_traj: 700
|
| 895 |
+
env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
|
| 896 |
+
by sliding Up, Right, Down, or Left.
|
| 897 |
+
|
| 898 |
+
If a move is invalid (no tiles move), a small penalty is applied. Respond with
|
| 899 |
+
a single action.
|
| 900 |
+
|
| 901 |
+
Example: <answer>Up</answer>
|
| 902 |
+
|
| 903 |
+
'
|
| 904 |
+
max_tokens: 8192
|
| 905 |
+
env_config: null
|
| 906 |
+
rubikscube:
|
| 907 |
+
env_type: rubikscube
|
| 908 |
+
max_actions_per_traj: 20
|
| 909 |
+
env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
|
| 910 |
+
is to restore the cube so that each of the faces consists of a single, unique
|
| 911 |
+
color.
|
| 912 |
+
|
| 913 |
+
Available actions use standard Singmaster notation for face rotations: U, U'',
|
| 914 |
+
D, D'', L, L'', R, R'', F, F'', B, B''.
|
| 915 |
+
|
| 916 |
+
- Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
|
| 917 |
+
|
| 918 |
+
- Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
|
| 919 |
+
prime ('') means 90° counter-clockwise (e.g., "R''").
|
| 920 |
+
|
| 921 |
+
Respond with a sequence of actions separated by "||".
|
| 922 |
+
|
| 923 |
+
Example: <answer>U</answer>
|
| 924 |
+
|
| 925 |
+
'
|
| 926 |
+
max_tokens: 96
|
| 927 |
+
env_config:
|
| 928 |
+
scramble_depth: 1
|
| 929 |
+
max_steps: 20
|
| 930 |
+
render_mode: text
|
| 931 |
+
system:
|
| 932 |
+
CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
|
| 933 |
+
seed:
|
| 934 |
+
train: 10000
|
| 935 |
+
val: 123
|
| 936 |
+
micro_batch_size_per_gpu: 1
|
| 937 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 938 |
+
ppo_mini_batch_size: 32
|
| 939 |
+
model_path: /mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
| 940 |
+
enable_response_mask: true
|
| 941 |
+
grpo_advantage_length_weight: false
|
| 942 |
+
lora:
|
| 943 |
+
rank: 0
|
| 944 |
+
alpha: 64
|
| 945 |
+
target_modules: all-linear
|
| 946 |
+
agent_proxy:
|
| 947 |
+
context_window_mode: full
|
| 948 |
+
max_context_window: -1
|
| 949 |
+
batch_adjust_mode: copy
|
| 950 |
+
max_turn: 15
|
| 951 |
+
action_sep: '||'
|
| 952 |
+
max_actions_per_turn: 1
|
| 953 |
+
use_turn_scores: false
|
| 954 |
+
enable_think: true
|
| 955 |
+
reward_normalization:
|
| 956 |
+
grouping: state
|
| 957 |
+
method: identity
|
| 958 |
+
collapse_detection:
|
| 959 |
+
compute_freq: 5
|
| 960 |
+
micro_batch_size: 128
|
| 961 |
+
first_turn_enabled: true
|
| 962 |
+
multi_turn_enabled: true
|
| 963 |
+
num_samples: 64
|
| 964 |
+
es_manager:
|
| 965 |
+
format_penalty: -0.1
|
| 966 |
+
train:
|
| 967 |
+
env_groups: 8
|
| 968 |
+
group_size: 16
|
| 969 |
+
env_configs:
|
| 970 |
+
tags:
|
| 971 |
+
- SimpleSudoku
|
| 972 |
+
n_groups:
|
| 973 |
+
- 8
|
| 974 |
+
val:
|
| 975 |
+
env_groups: 32
|
| 976 |
+
group_size: 16
|
| 977 |
+
env_configs:
|
| 978 |
+
tags:
|
| 979 |
+
- SimpleSudoku
|
| 980 |
+
n_groups:
|
| 981 |
+
- 32
|
| 982 |
+
ctx_manager:
|
| 983 |
+
generation:
|
| 984 |
+
gen_config:
|
| 985 |
+
response_length: ${actor_rollout_ref.rollout.response_length}
|
| 986 |
+
temperature: ${actor_rollout_ref.rollout.temperature}
|
| 987 |
+
top_p: ${actor_rollout_ref.rollout.top_p}
|
| 988 |
+
top_k: ${actor_rollout_ref.rollout.top_k}
|
| 989 |
+
kwargs: null
|
outputs/2026-05-15/14-56-09/.hydra/hydra.yaml
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
hydra:
|
| 2 |
+
run:
|
| 3 |
+
dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 4 |
+
sweep:
|
| 5 |
+
dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 6 |
+
subdir: ${hydra.job.num}
|
| 7 |
+
launcher:
|
| 8 |
+
_target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
|
| 9 |
+
sweeper:
|
| 10 |
+
_target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
|
| 11 |
+
max_batch_size: null
|
| 12 |
+
params: null
|
| 13 |
+
help:
|
| 14 |
+
app_name: ${hydra.job.name}
|
| 15 |
+
header: '${hydra.help.app_name} is powered by Hydra.
|
| 16 |
+
|
| 17 |
+
'
|
| 18 |
+
footer: 'Powered by Hydra (https://hydra.cc)
|
| 19 |
+
|
| 20 |
+
Use --hydra-help to view Hydra specific help
|
| 21 |
+
|
| 22 |
+
'
|
| 23 |
+
template: '${hydra.help.header}
|
| 24 |
+
|
| 25 |
+
== Configuration groups ==
|
| 26 |
+
|
| 27 |
+
Compose your configuration from those groups (group=option)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
$APP_CONFIG_GROUPS
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
== Config ==
|
| 34 |
+
|
| 35 |
+
Override anything in the config (foo.bar=value)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
$CONFIG
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
${hydra.help.footer}
|
| 42 |
+
|
| 43 |
+
'
|
| 44 |
+
hydra_help:
|
| 45 |
+
template: 'Hydra (${hydra.runtime.version})
|
| 46 |
+
|
| 47 |
+
See https://hydra.cc for more info.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
== Flags ==
|
| 51 |
+
|
| 52 |
+
$FLAGS_HELP
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
== Configuration groups ==
|
| 56 |
+
|
| 57 |
+
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
|
| 58 |
+
to command line)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
$HYDRA_CONFIG_GROUPS
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
Use ''--cfg hydra'' to Show the Hydra config.
|
| 65 |
+
|
| 66 |
+
'
|
| 67 |
+
hydra_help: ???
|
| 68 |
+
hydra_logging:
|
| 69 |
+
version: 1
|
| 70 |
+
formatters:
|
| 71 |
+
simple:
|
| 72 |
+
format: '[%(asctime)s][HYDRA] %(message)s'
|
| 73 |
+
handlers:
|
| 74 |
+
console:
|
| 75 |
+
class: logging.StreamHandler
|
| 76 |
+
formatter: simple
|
| 77 |
+
stream: ext://sys.stdout
|
| 78 |
+
root:
|
| 79 |
+
level: INFO
|
| 80 |
+
handlers:
|
| 81 |
+
- console
|
| 82 |
+
loggers:
|
| 83 |
+
logging_example:
|
| 84 |
+
level: DEBUG
|
| 85 |
+
disable_existing_loggers: false
|
| 86 |
+
job_logging:
|
| 87 |
+
version: 1
|
| 88 |
+
formatters:
|
| 89 |
+
simple:
|
| 90 |
+
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
|
| 91 |
+
handlers:
|
| 92 |
+
console:
|
| 93 |
+
class: logging.StreamHandler
|
| 94 |
+
formatter: simple
|
| 95 |
+
stream: ext://sys.stdout
|
| 96 |
+
file:
|
| 97 |
+
class: logging.FileHandler
|
| 98 |
+
formatter: simple
|
| 99 |
+
filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
|
| 100 |
+
root:
|
| 101 |
+
level: INFO
|
| 102 |
+
handlers:
|
| 103 |
+
- console
|
| 104 |
+
- file
|
| 105 |
+
disable_existing_loggers: false
|
| 106 |
+
env: {}
|
| 107 |
+
mode: RUN
|
| 108 |
+
searchpath:
|
| 109 |
+
- pkg://verl.trainer.config
|
| 110 |
+
callbacks: {}
|
| 111 |
+
output_subdir: .hydra
|
| 112 |
+
overrides:
|
| 113 |
+
hydra:
|
| 114 |
+
- hydra.mode=RUN
|
| 115 |
+
task:
|
| 116 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 117 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 118 |
+
- trainer.total_training_steps=400
|
| 119 |
+
- model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
| 120 |
+
job:
|
| 121 |
+
name: train
|
| 122 |
+
chdir: null
|
| 123 |
+
override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct,trainer.total_training_steps=400
|
| 124 |
+
id: ???
|
| 125 |
+
num: ???
|
| 126 |
+
config_name: _8_sudoku
|
| 127 |
+
env_set: {}
|
| 128 |
+
env_copy: []
|
| 129 |
+
config:
|
| 130 |
+
override_dirname:
|
| 131 |
+
kv_sep: '='
|
| 132 |
+
item_sep: ','
|
| 133 |
+
exclude_keys: []
|
| 134 |
+
runtime:
|
| 135 |
+
version: 1.3.2
|
| 136 |
+
version_base: '1.3'
|
| 137 |
+
cwd: /mnt/general/wanghy/RAGEN_v2
|
| 138 |
+
config_sources:
|
| 139 |
+
- path: hydra.conf
|
| 140 |
+
schema: pkg
|
| 141 |
+
provider: hydra
|
| 142 |
+
- path: /mnt/general/wanghy/RAGEN_v2/config
|
| 143 |
+
schema: file
|
| 144 |
+
provider: main
|
| 145 |
+
- path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
|
| 146 |
+
schema: file
|
| 147 |
+
provider: command-line
|
| 148 |
+
- path: verl.trainer.config
|
| 149 |
+
schema: pkg
|
| 150 |
+
provider: hydra.searchpath in main
|
| 151 |
+
- path: ''
|
| 152 |
+
schema: structured
|
| 153 |
+
provider: schema
|
| 154 |
+
output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-05-15/14-56-09
|
| 155 |
+
choices:
|
| 156 |
+
reward_model: dp_reward_model
|
| 157 |
+
critic: dp_critic
|
| 158 |
+
critic/../engine@critic.model.fsdp_config: fsdp
|
| 159 |
+
critic/../optim@critic.optim: fsdp
|
| 160 |
+
model@actor_rollout_ref.model: hf_model
|
| 161 |
+
rollout@actor_rollout_ref.rollout: rollout
|
| 162 |
+
ref@actor_rollout_ref.ref: dp_ref
|
| 163 |
+
ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
|
| 164 |
+
data: legacy_data
|
| 165 |
+
actor@actor_rollout_ref.actor: dp_actor
|
| 166 |
+
actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
|
| 167 |
+
actor/../optim@actor_rollout_ref.actor.optim: fsdp
|
| 168 |
+
hydra/env: default
|
| 169 |
+
hydra/callbacks: null
|
| 170 |
+
hydra/job_logging: default
|
| 171 |
+
hydra/hydra_logging: default
|
| 172 |
+
hydra/hydra_help: default
|
| 173 |
+
hydra/help: default
|
| 174 |
+
hydra/sweeper: basic
|
| 175 |
+
hydra/launcher: basic
|
| 176 |
+
hydra/output: default
|
| 177 |
+
verbose: false
|
outputs/2026-05-15/14-56-09/.hydra/overrides.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 2 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 3 |
+
- trainer.total_training_steps=400
|
| 4 |
+
- model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
output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up_steps_ratio: 0.0
|
| 7 |
+
total_training_steps: -1
|
| 8 |
+
weight_decay: 0.01
|
| 9 |
+
lr_warmup_steps: -1
|
| 10 |
+
betas:
|
| 11 |
+
- 0.9
|
| 12 |
+
- 0.999
|
| 13 |
+
clip_grad: 1.0
|
| 14 |
+
min_lr_ratio: 0.0
|
| 15 |
+
num_cycles: 0.5
|
| 16 |
+
warmup_style: constant
|
| 17 |
+
fsdp_config:
|
| 18 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 19 |
+
wrap_policy:
|
| 20 |
+
min_num_params: 0
|
| 21 |
+
param_offload: false
|
| 22 |
+
optimizer_offload: false
|
| 23 |
+
offload_policy: false
|
| 24 |
+
reshard_after_forward: true
|
| 25 |
+
fsdp_size: -1
|
| 26 |
+
forward_prefetch: false
|
| 27 |
+
model_dtype: fp32
|
| 28 |
+
use_orig_params: false
|
| 29 |
+
ulysses_sequence_parallel_size: 1
|
| 30 |
+
entropy_from_logits_with_chunking: false
|
| 31 |
+
use_torch_compile: true
|
| 32 |
+
entropy_checkpointing: false
|
| 33 |
+
forward_only: false
|
| 34 |
+
strategy: fsdp
|
| 35 |
+
_target_: verl.workers.config.FSDPActorConfig
|
| 36 |
+
strategy: fsdp
|
| 37 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 38 |
+
ppo_micro_batch_size: null
|
| 39 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 40 |
+
use_dynamic_bsz: false
|
| 41 |
+
ppo_max_token_len_per_gpu: 16384
|
| 42 |
+
clip_ratio: 0.2
|
| 43 |
+
clip_ratio_low: 0.2
|
| 44 |
+
clip_ratio_high: 0.28
|
| 45 |
+
freeze_vision_tower: false
|
| 46 |
+
policy_loss:
|
| 47 |
+
_target_: verl.workers.config.PolicyLossConfig
|
| 48 |
+
loss_mode: vanilla
|
| 49 |
+
clip_cov_ratio: 0.0002
|
| 50 |
+
clip_cov_lb: 1.0
|
| 51 |
+
clip_cov_ub: 5.0
|
| 52 |
+
kl_cov_ratio: 0.0002
|
| 53 |
+
ppo_kl_coef: 0.1
|
| 54 |
+
clip_ratio_c: 3.0
|
| 55 |
+
loss_agg_mode: token-mean
|
| 56 |
+
entropy_coeff: 0.001
|
| 57 |
+
tis_imp_ratio_cap: -1
|
| 58 |
+
use_kl_loss: false
|
| 59 |
+
use_torch_compile: true
|
| 60 |
+
kl_loss_coef: 0.0
|
| 61 |
+
kl_loss_type: kl
|
| 62 |
+
ppo_epochs: 1
|
| 63 |
+
shuffle: false
|
| 64 |
+
checkpoint:
|
| 65 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 66 |
+
save_contents:
|
| 67 |
+
- model
|
| 68 |
+
- optimizer
|
| 69 |
+
- extra
|
| 70 |
+
load_contents: ${.save_contents}
|
| 71 |
+
async_save: false
|
| 72 |
+
use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
|
| 73 |
+
profiler:
|
| 74 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 75 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 76 |
+
enable: false
|
| 77 |
+
all_ranks: false
|
| 78 |
+
ranks: []
|
| 79 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 80 |
+
tool_config:
|
| 81 |
+
nsys:
|
| 82 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 83 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 84 |
+
npu:
|
| 85 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 86 |
+
contents: []
|
| 87 |
+
level: level1
|
| 88 |
+
analysis: true
|
| 89 |
+
discrete: false
|
| 90 |
+
torch:
|
| 91 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 92 |
+
step_start: 0
|
| 93 |
+
step_end: null
|
| 94 |
+
torch_memory:
|
| 95 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 96 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 97 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 98 |
+
grad_clip: 1.0
|
| 99 |
+
ulysses_sequence_parallel_size: 1
|
| 100 |
+
entropy_from_logits_with_chunking: false
|
| 101 |
+
entropy_checkpointing: false
|
| 102 |
+
use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
|
| 103 |
+
use_ref: true
|
| 104 |
+
grpo_advantage_length_weight: ${grpo_advantage_length_weight}
|
| 105 |
+
filter_loss_scaling: none
|
| 106 |
+
ref:
|
| 107 |
+
strategy: ${actor_rollout_ref.actor.strategy}
|
| 108 |
+
use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
|
| 109 |
+
log_prob_micro_batch_size: null
|
| 110 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 111 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 112 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 113 |
+
profiler:
|
| 114 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 115 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 116 |
+
enable: false
|
| 117 |
+
all_ranks: false
|
| 118 |
+
ranks: []
|
| 119 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 120 |
+
tool_config:
|
| 121 |
+
nsys:
|
| 122 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 123 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 124 |
+
npu:
|
| 125 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 126 |
+
contents: []
|
| 127 |
+
level: level1
|
| 128 |
+
analysis: true
|
| 129 |
+
discrete: false
|
| 130 |
+
torch:
|
| 131 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 132 |
+
step_start: 0
|
| 133 |
+
step_end: null
|
| 134 |
+
torch_memory:
|
| 135 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 136 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 137 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 138 |
+
fsdp_config:
|
| 139 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 140 |
+
wrap_policy:
|
| 141 |
+
min_num_params: 0
|
| 142 |
+
param_offload: false
|
| 143 |
+
optimizer_offload: false
|
| 144 |
+
offload_policy: false
|
| 145 |
+
reshard_after_forward: true
|
| 146 |
+
fsdp_size: -1
|
| 147 |
+
forward_prefetch: false
|
| 148 |
+
model_dtype: fp32
|
| 149 |
+
use_orig_params: false
|
| 150 |
+
ulysses_sequence_parallel_size: 1
|
| 151 |
+
entropy_from_logits_with_chunking: false
|
| 152 |
+
use_torch_compile: true
|
| 153 |
+
entropy_checkpointing: false
|
| 154 |
+
forward_only: false
|
| 155 |
+
strategy: fsdp
|
| 156 |
+
model: null
|
| 157 |
+
ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
|
| 158 |
+
entropy_from_logits_with_chunking: false
|
| 159 |
+
entropy_checkpointing: false
|
| 160 |
+
rollout:
|
| 161 |
+
_target_: verl.workers.config.RolloutConfig
|
| 162 |
+
name: vllm
|
| 163 |
+
mode: sync
|
| 164 |
+
temperature: 1
|
| 165 |
+
top_k: -1
|
| 166 |
+
top_p: 1
|
| 167 |
+
prompt_length: 1
|
| 168 |
+
response_length: 400
|
| 169 |
+
dtype: bfloat16
|
| 170 |
+
gpu_memory_utilization: 0.7
|
| 171 |
+
ignore_eos: false
|
| 172 |
+
enforce_eager: true
|
| 173 |
+
cudagraph_capture_sizes: null
|
| 174 |
+
free_cache_engine: true
|
| 175 |
+
tensor_model_parallel_size: 1
|
| 176 |
+
data_parallel_size: 1
|
| 177 |
+
expert_parallel_size: 1
|
| 178 |
+
max_num_batched_tokens: 16384
|
| 179 |
+
max_model_len: 16384
|
| 180 |
+
max_num_seqs: 1024
|
| 181 |
+
enable_chunked_prefill: true
|
| 182 |
+
enable_prefix_caching: true
|
| 183 |
+
load_format: auto
|
| 184 |
+
log_prob_micro_batch_size: null
|
| 185 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 186 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 187 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 188 |
+
disable_log_stats: true
|
| 189 |
+
do_sample: true
|
| 190 |
+
'n': 1
|
| 191 |
+
over_sample_rate: 0
|
| 192 |
+
multi_stage_wake_up: false
|
| 193 |
+
engine_kwargs:
|
| 194 |
+
vllm: {}
|
| 195 |
+
sglang: {}
|
| 196 |
+
val_kwargs:
|
| 197 |
+
_target_: verl.workers.config.SamplingConfig
|
| 198 |
+
top_k: -1
|
| 199 |
+
top_p: 1.0
|
| 200 |
+
temperature: 0.5
|
| 201 |
+
'n': 1
|
| 202 |
+
do_sample: true
|
| 203 |
+
multi_turn:
|
| 204 |
+
_target_: verl.workers.config.MultiTurnConfig
|
| 205 |
+
enable: false
|
| 206 |
+
max_assistant_turns: null
|
| 207 |
+
tool_config_path: null
|
| 208 |
+
max_user_turns: null
|
| 209 |
+
max_parallel_calls: 1
|
| 210 |
+
max_tool_response_length: 256
|
| 211 |
+
tool_response_truncate_side: middle
|
| 212 |
+
interaction_config_path: null
|
| 213 |
+
use_inference_chat_template: false
|
| 214 |
+
tokenization_sanity_check_mode: strict
|
| 215 |
+
format: hermes
|
| 216 |
+
num_repeat_rollouts: null
|
| 217 |
+
calculate_log_probs: false
|
| 218 |
+
agent:
|
| 219 |
+
_target_: verl.workers.config.AgentLoopConfig
|
| 220 |
+
num_workers: 8
|
| 221 |
+
agent_loop_config_path: null
|
| 222 |
+
custom_async_server:
|
| 223 |
+
_target_: verl.workers.config.CustomAsyncServerConfig
|
| 224 |
+
path: null
|
| 225 |
+
name: null
|
| 226 |
+
update_weights_bucket_megabytes: 512
|
| 227 |
+
trace:
|
| 228 |
+
_target_: verl.workers.config.TraceConfig
|
| 229 |
+
backend: null
|
| 230 |
+
token2text: false
|
| 231 |
+
skip_rollout: false
|
| 232 |
+
skip_dump_dir: /tmp/rollout_dump
|
| 233 |
+
skip_tokenizer_init: true
|
| 234 |
+
profiler:
|
| 235 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 236 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 237 |
+
enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
|
| 238 |
+
all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
|
| 239 |
+
ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
|
| 240 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 241 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 242 |
+
layered_summon: false
|
| 243 |
+
rollout_filter_value: 0.9
|
| 244 |
+
rollout_filter_strategy: top_p
|
| 245 |
+
rollout_filter_type: largest
|
| 246 |
+
rollout_filter_include_zero: true
|
| 247 |
+
rollout_filter_top_p_prob_mode: linear
|
| 248 |
+
rollout_filter_selection_eps: 0.01
|
| 249 |
+
rollout_filter_empty_stop_steps: 5
|
| 250 |
+
rollout_filter_metric: reward_variance
|
| 251 |
+
gradient_analysis_num_buckets: 6
|
| 252 |
+
gradient_analysis_bucket_mode: quantile
|
| 253 |
+
model:
|
| 254 |
+
_target_: verl.workers.config.HFModelConfig
|
| 255 |
+
path: ${model_path}
|
| 256 |
+
hf_config_path: null
|
| 257 |
+
tokenizer_path: null
|
| 258 |
+
use_shm: false
|
| 259 |
+
trust_remote_code: false
|
| 260 |
+
custom_chat_template: null
|
| 261 |
+
external_lib: null
|
| 262 |
+
override_config: {}
|
| 263 |
+
enable_gradient_checkpointing: true
|
| 264 |
+
enable_activation_offload: false
|
| 265 |
+
use_remove_padding: false
|
| 266 |
+
lora_rank: ${lora.rank}
|
| 267 |
+
lora_alpha: ${lora.alpha}
|
| 268 |
+
target_modules: ${lora.target_modules}
|
| 269 |
+
exclude_modules: null
|
| 270 |
+
use_liger: false
|
| 271 |
+
use_fused_kernels: false
|
| 272 |
+
fused_kernel_options:
|
| 273 |
+
impl_backend: torch
|
| 274 |
+
hybrid_engine: true
|
| 275 |
+
nccl_timeout: 600
|
| 276 |
+
data:
|
| 277 |
+
tokenizer: null
|
| 278 |
+
use_shm: false
|
| 279 |
+
train_files: ~/data/rlhf/gsm8k/train.parquet
|
| 280 |
+
val_files: ~/data/rlhf/gsm8k/test.parquet
|
| 281 |
+
prompt_key: prompt
|
| 282 |
+
reward_fn_key: data_source
|
| 283 |
+
max_prompt_length: null
|
| 284 |
+
max_response_length: null
|
| 285 |
+
train_batch_size: null
|
| 286 |
+
val_batch_size: null
|
| 287 |
+
return_raw_input_ids: false
|
| 288 |
+
return_raw_chat: false
|
| 289 |
+
return_full_prompt: false
|
| 290 |
+
shuffle: true
|
| 291 |
+
dataloader_num_workers: 8
|
| 292 |
+
validation_shuffle: false
|
| 293 |
+
filter_overlong_prompts: false
|
| 294 |
+
filter_overlong_prompts_workers: 1
|
| 295 |
+
truncation: error
|
| 296 |
+
image_key: images
|
| 297 |
+
video_key: videos
|
| 298 |
+
trust_remote_code: false
|
| 299 |
+
custom_cls:
|
| 300 |
+
path: null
|
| 301 |
+
name: null
|
| 302 |
+
return_multi_modal_inputs: true
|
| 303 |
+
sampler:
|
| 304 |
+
class_path: null
|
| 305 |
+
class_name: null
|
| 306 |
+
datagen:
|
| 307 |
+
path: null
|
| 308 |
+
name: null
|
| 309 |
+
apply_chat_template_kwargs: {}
|
| 310 |
+
critic:
|
| 311 |
+
optim:
|
| 312 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 313 |
+
lr: 1.0e-05
|
| 314 |
+
lr_warmup_steps_ratio: 0.0
|
| 315 |
+
total_training_steps: -1
|
| 316 |
+
weight_decay: 0.01
|
| 317 |
+
lr_warmup_steps: -1
|
| 318 |
+
betas:
|
| 319 |
+
- 0.9
|
| 320 |
+
- 0.999
|
| 321 |
+
clip_grad: 1.0
|
| 322 |
+
min_lr_ratio: 0.0
|
| 323 |
+
num_cycles: 0.5
|
| 324 |
+
warmup_style: constant
|
| 325 |
+
model:
|
| 326 |
+
fsdp_config:
|
| 327 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 328 |
+
wrap_policy:
|
| 329 |
+
min_num_params: 0
|
| 330 |
+
param_offload: false
|
| 331 |
+
optimizer_offload: false
|
| 332 |
+
offload_policy: false
|
| 333 |
+
reshard_after_forward: true
|
| 334 |
+
fsdp_size: -1
|
| 335 |
+
forward_prefetch: false
|
| 336 |
+
model_dtype: fp32
|
| 337 |
+
use_orig_params: false
|
| 338 |
+
ulysses_sequence_parallel_size: 1
|
| 339 |
+
entropy_from_logits_with_chunking: false
|
| 340 |
+
use_torch_compile: true
|
| 341 |
+
entropy_checkpointing: false
|
| 342 |
+
forward_only: false
|
| 343 |
+
strategy: fsdp
|
| 344 |
+
path: ${model_path}
|
| 345 |
+
tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
|
| 346 |
+
override_config: {}
|
| 347 |
+
external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
|
| 348 |
+
trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
|
| 349 |
+
_target_: verl.workers.config.FSDPCriticModelCfg
|
| 350 |
+
use_shm: false
|
| 351 |
+
enable_gradient_checkpointing: true
|
| 352 |
+
enable_activation_offload: false
|
| 353 |
+
use_remove_padding: false
|
| 354 |
+
lora_rank: ${lora.rank}
|
| 355 |
+
lora_alpha: ${lora.alpha}
|
| 356 |
+
target_modules: ${lora.target_modules}
|
| 357 |
+
_target_: verl.workers.config.FSDPCriticConfig
|
| 358 |
+
rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
|
| 359 |
+
strategy: fsdp
|
| 360 |
+
enable: null
|
| 361 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 362 |
+
ppo_micro_batch_size: null
|
| 363 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 364 |
+
use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 365 |
+
ppo_max_token_len_per_gpu: 32768
|
| 366 |
+
forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
|
| 367 |
+
ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
|
| 368 |
+
shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
|
| 369 |
+
cliprange_value: 0.5
|
| 370 |
+
loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
|
| 371 |
+
checkpoint:
|
| 372 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 373 |
+
save_contents:
|
| 374 |
+
- model
|
| 375 |
+
- optimizer
|
| 376 |
+
- extra
|
| 377 |
+
load_contents: ${.save_contents}
|
| 378 |
+
async_save: false
|
| 379 |
+
profiler:
|
| 380 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 381 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 382 |
+
enable: false
|
| 383 |
+
all_ranks: false
|
| 384 |
+
ranks: []
|
| 385 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 386 |
+
tool_config:
|
| 387 |
+
nsys:
|
| 388 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 389 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 390 |
+
npu:
|
| 391 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 392 |
+
contents: []
|
| 393 |
+
level: level1
|
| 394 |
+
analysis: true
|
| 395 |
+
discrete: false
|
| 396 |
+
torch:
|
| 397 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 398 |
+
step_start: 0
|
| 399 |
+
step_end: null
|
| 400 |
+
torch_memory:
|
| 401 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 402 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 403 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 404 |
+
forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
|
| 405 |
+
forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
|
| 406 |
+
ulysses_sequence_parallel_size: 1
|
| 407 |
+
grad_clip: 1.0
|
| 408 |
+
reward_model:
|
| 409 |
+
enable: false
|
| 410 |
+
enable_resource_pool: false
|
| 411 |
+
n_gpus_per_node: 0
|
| 412 |
+
nnodes: 0
|
| 413 |
+
strategy: fsdp
|
| 414 |
+
model:
|
| 415 |
+
input_tokenizer: ${actor_rollout_ref.model.path}
|
| 416 |
+
path: ~/models/FsfairX-LLaMA3-RM-v0.1
|
| 417 |
+
external_lib: ${actor_rollout_ref.model.external_lib}
|
| 418 |
+
trust_remote_code: false
|
| 419 |
+
use_shm: false
|
| 420 |
+
use_remove_padding: false
|
| 421 |
+
use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
|
| 422 |
+
fsdp_config:
|
| 423 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 424 |
+
wrap_policy:
|
| 425 |
+
min_num_params: 0
|
| 426 |
+
param_offload: false
|
| 427 |
+
reshard_after_forward: true
|
| 428 |
+
fsdp_size: -1
|
| 429 |
+
forward_prefetch: false
|
| 430 |
+
micro_batch_size: null
|
| 431 |
+
micro_batch_size_per_gpu: null
|
| 432 |
+
max_length: null
|
| 433 |
+
use_dynamic_bsz: ${critic.use_dynamic_bsz}
|
| 434 |
+
forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
|
| 435 |
+
reward_manager: naive
|
| 436 |
+
launch_reward_fn_async: false
|
| 437 |
+
sandbox_fusion:
|
| 438 |
+
url: null
|
| 439 |
+
max_concurrent: 64
|
| 440 |
+
memory_limit_mb: 1024
|
| 441 |
+
profiler:
|
| 442 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 443 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 444 |
+
enable: false
|
| 445 |
+
all_ranks: false
|
| 446 |
+
ranks: []
|
| 447 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 448 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 449 |
+
ulysses_sequence_parallel_size: 1
|
| 450 |
+
custom_reward_function:
|
| 451 |
+
path: null
|
| 452 |
+
name: compute_score
|
| 453 |
+
algorithm:
|
| 454 |
+
_target_: verl.trainer.config.AlgoConfig
|
| 455 |
+
gamma: 1.0
|
| 456 |
+
lam: 1.0
|
| 457 |
+
adv_estimator: gae
|
| 458 |
+
norm_adv_by_std_in_grpo: true
|
| 459 |
+
use_kl_in_reward: false
|
| 460 |
+
kl_penalty: kl
|
| 461 |
+
kl_ctrl:
|
| 462 |
+
_target_: verl.trainer.config.KLControlConfig
|
| 463 |
+
type: fixed
|
| 464 |
+
kl_coef: 0.0
|
| 465 |
+
horizon: 10000
|
| 466 |
+
target_kl: 0.1
|
| 467 |
+
use_pf_ppo: false
|
| 468 |
+
pf_ppo:
|
| 469 |
+
reweight_method: pow
|
| 470 |
+
weight_pow: 2.0
|
| 471 |
+
high_level_gamma: 0.95
|
| 472 |
+
bi_level_gae: false
|
| 473 |
+
zero_task_advantage: false
|
| 474 |
+
soft_advantage_reweight: false
|
| 475 |
+
trainer:
|
| 476 |
+
balance_batch: true
|
| 477 |
+
total_epochs: 30
|
| 478 |
+
total_training_steps: 400
|
| 479 |
+
project_name: ragen
|
| 480 |
+
experiment_name: sudoku-main
|
| 481 |
+
logger:
|
| 482 |
+
- console
|
| 483 |
+
- wandb
|
| 484 |
+
log_val_generations: 0
|
| 485 |
+
rollout_data_dir: null
|
| 486 |
+
validation_data_dir: null
|
| 487 |
+
nnodes: 1
|
| 488 |
+
n_gpus_per_node: 8
|
| 489 |
+
save_freq: -1
|
| 490 |
+
esi_redundant_time: 0
|
| 491 |
+
resume_mode: auto
|
| 492 |
+
resume_from_path: null
|
| 493 |
+
val_before_train: true
|
| 494 |
+
val_only: false
|
| 495 |
+
test_freq: 10
|
| 496 |
+
critic_warmup: 0
|
| 497 |
+
default_hdfs_dir: null
|
| 498 |
+
del_local_ckpt_after_load: false
|
| 499 |
+
default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
|
| 500 |
+
max_actor_ckpt_to_keep: 1
|
| 501 |
+
max_critic_ckpt_to_keep: 1
|
| 502 |
+
ray_wait_register_center_timeout: 300
|
| 503 |
+
device: cuda
|
| 504 |
+
use_legacy_worker_impl: auto
|
| 505 |
+
local_log_dir: results/
|
| 506 |
+
validation_steps: 1
|
| 507 |
+
generations_to_log_to_wandb:
|
| 508 |
+
val: 20
|
| 509 |
+
log_group_rv_table: false
|
| 510 |
+
gradient_analysis_mode: false
|
| 511 |
+
gradient_analysis_every: 50
|
| 512 |
+
gradient_analysis_env_groups: null
|
| 513 |
+
gradient_analysis_group_size: null
|
| 514 |
+
gradient_analysis_log_prefilter: false
|
| 515 |
+
gradient_analysis_only: false
|
| 516 |
+
exit_after_gradient_analysis: false
|
| 517 |
+
global_profiler:
|
| 518 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 519 |
+
tool: null
|
| 520 |
+
steps: null
|
| 521 |
+
profile_continuous_steps: false
|
| 522 |
+
save_path: outputs/profile
|
| 523 |
+
global_tool_config:
|
| 524 |
+
nsys:
|
| 525 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 526 |
+
discrete: false
|
| 527 |
+
controller_nsight_options:
|
| 528 |
+
trace: cuda,nvtx,cublas,ucx
|
| 529 |
+
cuda-memory-usage: 'true'
|
| 530 |
+
cuda-graph-trace: graph
|
| 531 |
+
worker_nsight_options:
|
| 532 |
+
trace: cuda,nvtx,cublas,ucx
|
| 533 |
+
cuda-memory-usage: 'true'
|
| 534 |
+
cuda-graph-trace: graph
|
| 535 |
+
capture-range: cudaProfilerApi
|
| 536 |
+
capture-range-end: null
|
| 537 |
+
kill: none
|
| 538 |
+
torch_memory:
|
| 539 |
+
trace_alloc_max_entries: 100000
|
| 540 |
+
stack_depth: 32
|
| 541 |
+
context: all
|
| 542 |
+
stacks: all
|
| 543 |
+
kw_args: {}
|
| 544 |
+
ray_kwargs:
|
| 545 |
+
ray_init:
|
| 546 |
+
num_cpus: null
|
| 547 |
+
timeline_json_file: null
|
| 548 |
+
custom_envs:
|
| 549 |
+
SimpleSokoban:
|
| 550 |
+
env_type: sokoban
|
| 551 |
+
max_actions_per_traj: 10
|
| 552 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 553 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 554 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 555 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 556 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 557 |
+
max_tokens: 100
|
| 558 |
+
parallel_friendly: false
|
| 559 |
+
max_workers: 32
|
| 560 |
+
env_config:
|
| 561 |
+
dim_x: 6
|
| 562 |
+
dim_y: 6
|
| 563 |
+
num_boxes: 1
|
| 564 |
+
max_steps: 100
|
| 565 |
+
LargerSokoban:
|
| 566 |
+
env_type: sokoban
|
| 567 |
+
max_actions_per_traj: 10
|
| 568 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 569 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 570 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 571 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 572 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 573 |
+
max_tokens: 100
|
| 574 |
+
parallel_friendly: false
|
| 575 |
+
max_workers: 32
|
| 576 |
+
env_config:
|
| 577 |
+
dim_x: 8
|
| 578 |
+
dim_y: 8
|
| 579 |
+
num_boxes: 2
|
| 580 |
+
max_steps: 100
|
| 581 |
+
search_depth: 10
|
| 582 |
+
SokobanDifferentGridVocab:
|
| 583 |
+
env_type: sokoban
|
| 584 |
+
max_actions_per_traj: 10
|
| 585 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 586 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 587 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 588 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 589 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 590 |
+
max_tokens: 100
|
| 591 |
+
parallel_friendly: false
|
| 592 |
+
max_workers: 32
|
| 593 |
+
env_config:
|
| 594 |
+
search_depth: 30
|
| 595 |
+
dim_x: 6
|
| 596 |
+
dim_y: 6
|
| 597 |
+
num_boxes: 1
|
| 598 |
+
max_steps: 100
|
| 599 |
+
grid_lookup:
|
| 600 |
+
0: W
|
| 601 |
+
1: .
|
| 602 |
+
2: G
|
| 603 |
+
3: C
|
| 604 |
+
4: B
|
| 605 |
+
5: A
|
| 606 |
+
6: '@'
|
| 607 |
+
grid_vocab:
|
| 608 |
+
W: wall
|
| 609 |
+
.: empty
|
| 610 |
+
G: target
|
| 611 |
+
C: box on target
|
| 612 |
+
B: box
|
| 613 |
+
A: player
|
| 614 |
+
'@': player on target
|
| 615 |
+
CoordSokoban:
|
| 616 |
+
env_type: sokoban
|
| 617 |
+
max_actions_per_traj: 10
|
| 618 |
+
env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
|
| 619 |
+
\ need to push all boxes to targets.\nYou are provided with a symbol grid and\
|
| 620 |
+
\ the zero-indexed coordinates of the player, each box, and each target. \n\
|
| 621 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
|
| 622 |
+
\ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
|
| 623 |
+
\ the same direction. \nYou cannot push a box through a wall, and you cannot\
|
| 624 |
+
\ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
|
| 625 |
+
\ || Right || Up</answer>.\n"
|
| 626 |
+
max_tokens: 120
|
| 627 |
+
parallel_friendly: false
|
| 628 |
+
max_workers: 32
|
| 629 |
+
env_config:
|
| 630 |
+
dim_x: 6
|
| 631 |
+
dim_y: 6
|
| 632 |
+
num_boxes: 1
|
| 633 |
+
max_steps: 100
|
| 634 |
+
observation_format: grid_coord
|
| 635 |
+
VisualSimpleSokoban:
|
| 636 |
+
env_type: sokoban
|
| 637 |
+
max_actions_per_traj: 10
|
| 638 |
+
env_instruction: You are solving the Sokoban puzzle. You are the player and you
|
| 639 |
+
need to push all boxes to targets. When you are right next to a box, you can
|
| 640 |
+
push it by moving in the same direction. You cannot push a box through a wall,
|
| 641 |
+
and you cannot pull a box. The answer should be a sequence of actions, like
|
| 642 |
+
<answer>Right || Right || Up</answer>
|
| 643 |
+
max_tokens: 100
|
| 644 |
+
parallel_friendly: false
|
| 645 |
+
max_workers: 32
|
| 646 |
+
env_config:
|
| 647 |
+
dim_x: 6
|
| 648 |
+
dim_y: 6
|
| 649 |
+
num_boxes: 1
|
| 650 |
+
max_steps: 100
|
| 651 |
+
render_mode: rgb_array
|
| 652 |
+
Alfworld:
|
| 653 |
+
env_type: alfworld
|
| 654 |
+
max_actions_per_traj: 50
|
| 655 |
+
parallel_friendly: false
|
| 656 |
+
max_workers: 1
|
| 657 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 658 |
+
|
| 659 |
+
Complete household tasks by navigating and interacting with objects.
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 663 |
+
process MUST be enclosed within <think> </think> tags.
|
| 664 |
+
|
| 665 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 666 |
+
for current step and present it within <answer>...</answer> tags.
|
| 667 |
+
|
| 668 |
+
'
|
| 669 |
+
max_tokens: 512
|
| 670 |
+
env_config:
|
| 671 |
+
eval_dataset: eval_in_distribution
|
| 672 |
+
AlfworldOOD:
|
| 673 |
+
env_type: alfworld
|
| 674 |
+
max_actions_per_traj: 50
|
| 675 |
+
parallel_friendly: false
|
| 676 |
+
max_workers: 1
|
| 677 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 678 |
+
|
| 679 |
+
Complete household tasks by navigating and interacting with objects.
|
| 680 |
+
|
| 681 |
+
|
| 682 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 683 |
+
process MUST be enclosed within <think> </think> tags.
|
| 684 |
+
|
| 685 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 686 |
+
for current step and present it within <answer>...</answer> tags.
|
| 687 |
+
|
| 688 |
+
'
|
| 689 |
+
max_tokens: 512
|
| 690 |
+
env_config:
|
| 691 |
+
eval_dataset: eval_out_of_distribution
|
| 692 |
+
Countdown:
|
| 693 |
+
env_type: countdown
|
| 694 |
+
max_actions_per_traj: 1
|
| 695 |
+
env_instruction: 'You are solving the Countdown puzzle. You should use the num
|
| 696 |
+
list to create an equation that equals the target. Example answer format: <think>
|
| 697 |
+
To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
|
| 698 |
+
= 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
|
| 699 |
+
max_tokens: 100
|
| 700 |
+
parallel_friendly: false
|
| 701 |
+
max_workers: 32
|
| 702 |
+
env_config: null
|
| 703 |
+
Bandit:
|
| 704 |
+
env_type: bandit
|
| 705 |
+
max_actions_per_traj: 1
|
| 706 |
+
env_instruction: ''
|
| 707 |
+
max_tokens: 100
|
| 708 |
+
parallel_friendly: false
|
| 709 |
+
max_workers: 32
|
| 710 |
+
env_config:
|
| 711 |
+
split: train
|
| 712 |
+
BanditTest:
|
| 713 |
+
env_type: bandit
|
| 714 |
+
max_actions_per_traj: 1
|
| 715 |
+
env_instruction: ''
|
| 716 |
+
max_tokens: 100
|
| 717 |
+
parallel_friendly: false
|
| 718 |
+
max_workers: 32
|
| 719 |
+
env_config:
|
| 720 |
+
split: test
|
| 721 |
+
DeepCoder:
|
| 722 |
+
env_type: deepcoder
|
| 723 |
+
max_actions_per_traj: 1
|
| 724 |
+
env_instruction: 'You are solving a coding task. Provide a complete Python function
|
| 725 |
+
solution only. Format: <answer>...</answer>'
|
| 726 |
+
max_tokens: 8000
|
| 727 |
+
parallel_friendly: true
|
| 728 |
+
max_workers: 32
|
| 729 |
+
env_config:
|
| 730 |
+
max_steps: 1
|
| 731 |
+
FrozenLake:
|
| 732 |
+
env_type: frozen_lake
|
| 733 |
+
max_actions_per_traj: 10
|
| 734 |
+
env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
|
| 735 |
+
go to the target. You may move to the unintended direction due to the slippery
|
| 736 |
+
ice. Example answer format: <think>To forbid the hole and go to the target,
|
| 737 |
+
I should go left then go up.</think><answer>Left || Up</answer>'
|
| 738 |
+
max_tokens: 100
|
| 739 |
+
parallel_friendly: false
|
| 740 |
+
max_workers: 32
|
| 741 |
+
env_config:
|
| 742 |
+
success_rate: 0.8
|
| 743 |
+
CoordFrozenLake:
|
| 744 |
+
env_type: frozen_lake
|
| 745 |
+
max_actions_per_traj: 10
|
| 746 |
+
env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
|
| 747 |
+
both a symbol grid and zero-indexed coordinates for the start, goal, player,
|
| 748 |
+
and any holes.
|
| 749 |
+
|
| 750 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner
|
| 751 |
+
(5, 5).
|
| 752 |
+
|
| 753 |
+
Beware that the ice is slippery, so the agent might slide and end up in an unintended
|
| 754 |
+
tile.
|
| 755 |
+
|
| 756 |
+
Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
|
| 757 |
+
|
| 758 |
+
'
|
| 759 |
+
max_tokens: 120
|
| 760 |
+
parallel_friendly: false
|
| 761 |
+
max_workers: 32
|
| 762 |
+
env_config:
|
| 763 |
+
observation_format: grid_coord
|
| 764 |
+
success_rate: 0.8
|
| 765 |
+
MetamathQA:
|
| 766 |
+
env_type: metamathqa
|
| 767 |
+
max_actions_per_traj: 1
|
| 768 |
+
env_instruction: 'You are solving Math problems. '
|
| 769 |
+
max_tokens: 100
|
| 770 |
+
env_config: null
|
| 771 |
+
WebShopFull:
|
| 772 |
+
env_type: webshop
|
| 773 |
+
max_actions_per_traj: 15
|
| 774 |
+
env_instruction: You are an expert autonomous agent operating in the WebShop e‑commerce
|
| 775 |
+
environment.
|
| 776 |
+
max_tokens: 200
|
| 777 |
+
env_config:
|
| 778 |
+
dataset: full
|
| 779 |
+
WebShop:
|
| 780 |
+
env_type: webshop
|
| 781 |
+
max_actions_per_traj: 9
|
| 782 |
+
env_instruction: 'You are browsing an online shop. Based on the instruction, buy
|
| 783 |
+
a product that close to the production description. You need to search, read
|
| 784 |
+
the search results, pick a product, choose the size and color and buy. You should
|
| 785 |
+
only choose action from the available actions list provided later. Example
|
| 786 |
+
process: I need a gingko light and 20x20 pillow cover that is hand painted.
|
| 787 |
+
First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
|
| 788 |
+
with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
|
| 789 |
+
max_tokens: 200
|
| 790 |
+
env_config:
|
| 791 |
+
dataset: small
|
| 792 |
+
Lean:
|
| 793 |
+
env_type: lean
|
| 794 |
+
max_actions_per_traj: 30
|
| 795 |
+
env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
|
| 796 |
+
propose a sequence of tactics that completes the proof. Think step by step about
|
| 797 |
+
which tactics to apply next. Provide tactics separated by '||', for example
|
| 798 |
+
<answer>intro || simp || rfl</answer>.
|
| 799 |
+
max_tokens: 512
|
| 800 |
+
parallel_friendly: true
|
| 801 |
+
max_workers: 32
|
| 802 |
+
env_config: null
|
| 803 |
+
SimpleSudoku:
|
| 804 |
+
env_type: sudoku
|
| 805 |
+
max_actions_per_traj: 20
|
| 806 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 807 |
+
row, column, and 2x2 box contains the numbers 1-4 without repetition.
|
| 808 |
+
|
| 809 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 810 |
+
shown as dots (.).
|
| 811 |
+
|
| 812 |
+
Place numbers one at a time using the format: <answer>place 1 at row 2 col 3</answer>
|
| 813 |
+
or <answer>1,2,3</answer>
|
| 814 |
+
|
| 815 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 816 |
+
if any occur.
|
| 817 |
+
|
| 818 |
+
'
|
| 819 |
+
max_tokens: 150
|
| 820 |
+
parallel_friendly: false
|
| 821 |
+
max_workers: 32
|
| 822 |
+
env_config:
|
| 823 |
+
grid_size: 4
|
| 824 |
+
difficulty: easy
|
| 825 |
+
render_format: with_feedback
|
| 826 |
+
show_conflicts: false
|
| 827 |
+
show_valid_numbers: false
|
| 828 |
+
max_steps: 20
|
| 829 |
+
MediumSudoku:
|
| 830 |
+
env_type: sudoku
|
| 831 |
+
max_actions_per_traj: 30
|
| 832 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 833 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 834 |
+
|
| 835 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 836 |
+
shown as dots (.).
|
| 837 |
+
|
| 838 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 839 |
+
or <answer>2,3,5</answer>
|
| 840 |
+
|
| 841 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 842 |
+
if any occur.
|
| 843 |
+
|
| 844 |
+
'
|
| 845 |
+
max_tokens: 150
|
| 846 |
+
parallel_friendly: false
|
| 847 |
+
max_workers: 32
|
| 848 |
+
env_config:
|
| 849 |
+
grid_size: 9
|
| 850 |
+
difficulty: medium
|
| 851 |
+
render_format: with_feedback
|
| 852 |
+
show_conflicts: true
|
| 853 |
+
show_valid_numbers: true
|
| 854 |
+
max_steps: 81
|
| 855 |
+
SearchQA:
|
| 856 |
+
env_type: search
|
| 857 |
+
max_actions_per_traj: 10
|
| 858 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 859 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 860 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 861 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 862 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 863 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 864 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 865 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 866 |
+
\ Platt]</answer>\n"
|
| 867 |
+
max_tokens: 300
|
| 868 |
+
parallel_friendly: true
|
| 869 |
+
max_workers: 32
|
| 870 |
+
env_config:
|
| 871 |
+
max_steps: 10
|
| 872 |
+
max_search_results: 5
|
| 873 |
+
SearchQAMock:
|
| 874 |
+
env_type: search
|
| 875 |
+
max_actions_per_traj: 10
|
| 876 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 877 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 878 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 879 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 880 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 881 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 882 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 883 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 884 |
+
\ Platt]</answer>\n"
|
| 885 |
+
max_tokens: 300
|
| 886 |
+
parallel_friendly: true
|
| 887 |
+
max_workers: 32
|
| 888 |
+
env_config:
|
| 889 |
+
max_steps: 10
|
| 890 |
+
max_search_results: 5
|
| 891 |
+
mock_mode: true
|
| 892 |
+
game_2048:
|
| 893 |
+
env_type: game_2048
|
| 894 |
+
max_actions_per_traj: 700
|
| 895 |
+
env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
|
| 896 |
+
by sliding Up, Right, Down, or Left.
|
| 897 |
+
|
| 898 |
+
If a move is invalid (no tiles move), a small penalty is applied. Respond with
|
| 899 |
+
a single action.
|
| 900 |
+
|
| 901 |
+
Example: <answer>Up</answer>
|
| 902 |
+
|
| 903 |
+
'
|
| 904 |
+
max_tokens: 8192
|
| 905 |
+
env_config: null
|
| 906 |
+
rubikscube:
|
| 907 |
+
env_type: rubikscube
|
| 908 |
+
max_actions_per_traj: 20
|
| 909 |
+
env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
|
| 910 |
+
is to restore the cube so that each of the faces consists of a single, unique
|
| 911 |
+
color.
|
| 912 |
+
|
| 913 |
+
Available actions use standard Singmaster notation for face rotations: U, U'',
|
| 914 |
+
D, D'', L, L'', R, R'', F, F'', B, B''.
|
| 915 |
+
|
| 916 |
+
- Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
|
| 917 |
+
|
| 918 |
+
- Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
|
| 919 |
+
prime ('') means 90° counter-clockwise (e.g., "R''").
|
| 920 |
+
|
| 921 |
+
Respond with a sequence of actions separated by "||".
|
| 922 |
+
|
| 923 |
+
Example: <answer>U</answer>
|
| 924 |
+
|
| 925 |
+
'
|
| 926 |
+
max_tokens: 96
|
| 927 |
+
env_config:
|
| 928 |
+
scramble_depth: 1
|
| 929 |
+
max_steps: 20
|
| 930 |
+
render_mode: text
|
| 931 |
+
system:
|
| 932 |
+
CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
|
| 933 |
+
seed:
|
| 934 |
+
train: 10000
|
| 935 |
+
val: 123
|
| 936 |
+
micro_batch_size_per_gpu: 1
|
| 937 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 938 |
+
ppo_mini_batch_size: 32
|
| 939 |
+
model_path: /mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
| 940 |
+
enable_response_mask: true
|
| 941 |
+
grpo_advantage_length_weight: false
|
| 942 |
+
lora:
|
| 943 |
+
rank: 0
|
| 944 |
+
alpha: 64
|
| 945 |
+
target_modules: all-linear
|
| 946 |
+
agent_proxy:
|
| 947 |
+
context_window_mode: full
|
| 948 |
+
max_context_window: -1
|
| 949 |
+
batch_adjust_mode: copy
|
| 950 |
+
max_turn: 15
|
| 951 |
+
action_sep: '||'
|
| 952 |
+
max_actions_per_turn: 1
|
| 953 |
+
use_turn_scores: false
|
| 954 |
+
enable_think: true
|
| 955 |
+
reward_normalization:
|
| 956 |
+
grouping: state
|
| 957 |
+
method: identity
|
| 958 |
+
collapse_detection:
|
| 959 |
+
compute_freq: 5
|
| 960 |
+
micro_batch_size: 128
|
| 961 |
+
first_turn_enabled: true
|
| 962 |
+
multi_turn_enabled: true
|
| 963 |
+
num_samples: 64
|
| 964 |
+
es_manager:
|
| 965 |
+
format_penalty: -0.1
|
| 966 |
+
train:
|
| 967 |
+
env_groups: 8
|
| 968 |
+
group_size: 16
|
| 969 |
+
env_configs:
|
| 970 |
+
tags:
|
| 971 |
+
- SimpleSudoku
|
| 972 |
+
n_groups:
|
| 973 |
+
- 8
|
| 974 |
+
val:
|
| 975 |
+
env_groups: 32
|
| 976 |
+
group_size: 16
|
| 977 |
+
env_configs:
|
| 978 |
+
tags:
|
| 979 |
+
- SimpleSudoku
|
| 980 |
+
n_groups:
|
| 981 |
+
- 32
|
| 982 |
+
ctx_manager:
|
| 983 |
+
generation:
|
| 984 |
+
gen_config:
|
| 985 |
+
response_length: ${actor_rollout_ref.rollout.response_length}
|
| 986 |
+
temperature: ${actor_rollout_ref.rollout.temperature}
|
| 987 |
+
top_p: ${actor_rollout_ref.rollout.top_p}
|
| 988 |
+
top_k: ${actor_rollout_ref.rollout.top_k}
|
| 989 |
+
kwargs: null
|
outputs/2026-05-15/15-01-19/.hydra/hydra.yaml
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
hydra:
|
| 2 |
+
run:
|
| 3 |
+
dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 4 |
+
sweep:
|
| 5 |
+
dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 6 |
+
subdir: ${hydra.job.num}
|
| 7 |
+
launcher:
|
| 8 |
+
_target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
|
| 9 |
+
sweeper:
|
| 10 |
+
_target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
|
| 11 |
+
max_batch_size: null
|
| 12 |
+
params: null
|
| 13 |
+
help:
|
| 14 |
+
app_name: ${hydra.job.name}
|
| 15 |
+
header: '${hydra.help.app_name} is powered by Hydra.
|
| 16 |
+
|
| 17 |
+
'
|
| 18 |
+
footer: 'Powered by Hydra (https://hydra.cc)
|
| 19 |
+
|
| 20 |
+
Use --hydra-help to view Hydra specific help
|
| 21 |
+
|
| 22 |
+
'
|
| 23 |
+
template: '${hydra.help.header}
|
| 24 |
+
|
| 25 |
+
== Configuration groups ==
|
| 26 |
+
|
| 27 |
+
Compose your configuration from those groups (group=option)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
$APP_CONFIG_GROUPS
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
== Config ==
|
| 34 |
+
|
| 35 |
+
Override anything in the config (foo.bar=value)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
$CONFIG
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
${hydra.help.footer}
|
| 42 |
+
|
| 43 |
+
'
|
| 44 |
+
hydra_help:
|
| 45 |
+
template: 'Hydra (${hydra.runtime.version})
|
| 46 |
+
|
| 47 |
+
See https://hydra.cc for more info.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
== Flags ==
|
| 51 |
+
|
| 52 |
+
$FLAGS_HELP
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
== Configuration groups ==
|
| 56 |
+
|
| 57 |
+
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
|
| 58 |
+
to command line)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
$HYDRA_CONFIG_GROUPS
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
Use ''--cfg hydra'' to Show the Hydra config.
|
| 65 |
+
|
| 66 |
+
'
|
| 67 |
+
hydra_help: ???
|
| 68 |
+
hydra_logging:
|
| 69 |
+
version: 1
|
| 70 |
+
formatters:
|
| 71 |
+
simple:
|
| 72 |
+
format: '[%(asctime)s][HYDRA] %(message)s'
|
| 73 |
+
handlers:
|
| 74 |
+
console:
|
| 75 |
+
class: logging.StreamHandler
|
| 76 |
+
formatter: simple
|
| 77 |
+
stream: ext://sys.stdout
|
| 78 |
+
root:
|
| 79 |
+
level: INFO
|
| 80 |
+
handlers:
|
| 81 |
+
- console
|
| 82 |
+
loggers:
|
| 83 |
+
logging_example:
|
| 84 |
+
level: DEBUG
|
| 85 |
+
disable_existing_loggers: false
|
| 86 |
+
job_logging:
|
| 87 |
+
version: 1
|
| 88 |
+
formatters:
|
| 89 |
+
simple:
|
| 90 |
+
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
|
| 91 |
+
handlers:
|
| 92 |
+
console:
|
| 93 |
+
class: logging.StreamHandler
|
| 94 |
+
formatter: simple
|
| 95 |
+
stream: ext://sys.stdout
|
| 96 |
+
file:
|
| 97 |
+
class: logging.FileHandler
|
| 98 |
+
formatter: simple
|
| 99 |
+
filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
|
| 100 |
+
root:
|
| 101 |
+
level: INFO
|
| 102 |
+
handlers:
|
| 103 |
+
- console
|
| 104 |
+
- file
|
| 105 |
+
disable_existing_loggers: false
|
| 106 |
+
env: {}
|
| 107 |
+
mode: RUN
|
| 108 |
+
searchpath:
|
| 109 |
+
- pkg://verl.trainer.config
|
| 110 |
+
callbacks: {}
|
| 111 |
+
output_subdir: .hydra
|
| 112 |
+
overrides:
|
| 113 |
+
hydra:
|
| 114 |
+
- hydra.mode=RUN
|
| 115 |
+
task:
|
| 116 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 117 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 118 |
+
- trainer.total_training_steps=400
|
| 119 |
+
- model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
| 120 |
+
job:
|
| 121 |
+
name: train
|
| 122 |
+
chdir: null
|
| 123 |
+
override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct,trainer.total_training_steps=400
|
| 124 |
+
id: ???
|
| 125 |
+
num: ???
|
| 126 |
+
config_name: _8_sudoku
|
| 127 |
+
env_set: {}
|
| 128 |
+
env_copy: []
|
| 129 |
+
config:
|
| 130 |
+
override_dirname:
|
| 131 |
+
kv_sep: '='
|
| 132 |
+
item_sep: ','
|
| 133 |
+
exclude_keys: []
|
| 134 |
+
runtime:
|
| 135 |
+
version: 1.3.2
|
| 136 |
+
version_base: '1.3'
|
| 137 |
+
cwd: /mnt/general/wanghy/RAGEN_v2
|
| 138 |
+
config_sources:
|
| 139 |
+
- path: hydra.conf
|
| 140 |
+
schema: pkg
|
| 141 |
+
provider: hydra
|
| 142 |
+
- path: /mnt/general/wanghy/RAGEN_v2/config
|
| 143 |
+
schema: file
|
| 144 |
+
provider: main
|
| 145 |
+
- path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
|
| 146 |
+
schema: file
|
| 147 |
+
provider: command-line
|
| 148 |
+
- path: verl.trainer.config
|
| 149 |
+
schema: pkg
|
| 150 |
+
provider: hydra.searchpath in main
|
| 151 |
+
- path: ''
|
| 152 |
+
schema: structured
|
| 153 |
+
provider: schema
|
| 154 |
+
output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-05-15/15-01-19
|
| 155 |
+
choices:
|
| 156 |
+
reward_model: dp_reward_model
|
| 157 |
+
critic: dp_critic
|
| 158 |
+
critic/../engine@critic.model.fsdp_config: fsdp
|
| 159 |
+
critic/../optim@critic.optim: fsdp
|
| 160 |
+
model@actor_rollout_ref.model: hf_model
|
| 161 |
+
rollout@actor_rollout_ref.rollout: rollout
|
| 162 |
+
ref@actor_rollout_ref.ref: dp_ref
|
| 163 |
+
ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
|
| 164 |
+
data: legacy_data
|
| 165 |
+
actor@actor_rollout_ref.actor: dp_actor
|
| 166 |
+
actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
|
| 167 |
+
actor/../optim@actor_rollout_ref.actor.optim: fsdp
|
| 168 |
+
hydra/env: default
|
| 169 |
+
hydra/callbacks: null
|
| 170 |
+
hydra/job_logging: default
|
| 171 |
+
hydra/hydra_logging: default
|
| 172 |
+
hydra/hydra_help: default
|
| 173 |
+
hydra/help: default
|
| 174 |
+
hydra/sweeper: basic
|
| 175 |
+
hydra/launcher: basic
|
| 176 |
+
hydra/output: default
|
| 177 |
+
verbose: false
|
outputs/2026-05-15/15-01-19/.hydra/overrides.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 2 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 3 |
+
- trainer.total_training_steps=400
|
| 4 |
+
- model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
|
outputs/2026-05-15/15-01-19/train.log
ADDED
|
File without changes
|
outputs/2026-05-22/21-57-02/.hydra/config.yaml
ADDED
|
@@ -0,0 +1,1003 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
actor_rollout_ref:
|
| 2 |
+
actor:
|
| 3 |
+
optim:
|
| 4 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 5 |
+
lr: 1.0e-06
|
| 6 |
+
lr_warmup_steps_ratio: 0.0
|
| 7 |
+
total_training_steps: -1
|
| 8 |
+
weight_decay: 0.01
|
| 9 |
+
lr_warmup_steps: -1
|
| 10 |
+
betas:
|
| 11 |
+
- 0.9
|
| 12 |
+
- 0.999
|
| 13 |
+
clip_grad: 1.0
|
| 14 |
+
min_lr_ratio: 0.0
|
| 15 |
+
num_cycles: 0.5
|
| 16 |
+
warmup_style: constant
|
| 17 |
+
fsdp_config:
|
| 18 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 19 |
+
wrap_policy:
|
| 20 |
+
min_num_params: 0
|
| 21 |
+
param_offload: false
|
| 22 |
+
optimizer_offload: false
|
| 23 |
+
offload_policy: false
|
| 24 |
+
reshard_after_forward: true
|
| 25 |
+
fsdp_size: -1
|
| 26 |
+
forward_prefetch: false
|
| 27 |
+
model_dtype: fp32
|
| 28 |
+
use_orig_params: false
|
| 29 |
+
ulysses_sequence_parallel_size: 1
|
| 30 |
+
entropy_from_logits_with_chunking: false
|
| 31 |
+
use_torch_compile: true
|
| 32 |
+
entropy_checkpointing: false
|
| 33 |
+
forward_only: false
|
| 34 |
+
strategy: fsdp
|
| 35 |
+
_target_: verl.workers.config.FSDPActorConfig
|
| 36 |
+
strategy: fsdp
|
| 37 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 38 |
+
ppo_micro_batch_size: null
|
| 39 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 40 |
+
use_dynamic_bsz: false
|
| 41 |
+
ppo_max_token_len_per_gpu: 16384
|
| 42 |
+
clip_ratio: 0.2
|
| 43 |
+
clip_ratio_low: 0.2
|
| 44 |
+
clip_ratio_high: 0.28
|
| 45 |
+
freeze_vision_tower: false
|
| 46 |
+
policy_loss:
|
| 47 |
+
_target_: verl.workers.config.PolicyLossConfig
|
| 48 |
+
loss_mode: vanilla
|
| 49 |
+
clip_cov_ratio: 0.0002
|
| 50 |
+
clip_cov_lb: 1.0
|
| 51 |
+
clip_cov_ub: 5.0
|
| 52 |
+
kl_cov_ratio: 0.0002
|
| 53 |
+
ppo_kl_coef: 0.1
|
| 54 |
+
clip_ratio_c: 3.0
|
| 55 |
+
loss_agg_mode: token-mean
|
| 56 |
+
entropy_coeff: 0.001
|
| 57 |
+
tis_imp_ratio_cap: -1
|
| 58 |
+
use_kl_loss: false
|
| 59 |
+
use_torch_compile: true
|
| 60 |
+
kl_loss_coef: 0.0
|
| 61 |
+
kl_loss_type: kl
|
| 62 |
+
ppo_epochs: 1
|
| 63 |
+
shuffle: false
|
| 64 |
+
checkpoint:
|
| 65 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 66 |
+
save_contents:
|
| 67 |
+
- model
|
| 68 |
+
- optimizer
|
| 69 |
+
- extra
|
| 70 |
+
load_contents: ${.save_contents}
|
| 71 |
+
async_save: false
|
| 72 |
+
use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
|
| 73 |
+
profiler:
|
| 74 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 75 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 76 |
+
enable: false
|
| 77 |
+
all_ranks: false
|
| 78 |
+
ranks: []
|
| 79 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 80 |
+
tool_config:
|
| 81 |
+
nsys:
|
| 82 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 83 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 84 |
+
npu:
|
| 85 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 86 |
+
contents: []
|
| 87 |
+
level: level1
|
| 88 |
+
analysis: true
|
| 89 |
+
discrete: false
|
| 90 |
+
torch:
|
| 91 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 92 |
+
step_start: 0
|
| 93 |
+
step_end: null
|
| 94 |
+
torch_memory:
|
| 95 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 96 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 97 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 98 |
+
grad_clip: 1.0
|
| 99 |
+
ulysses_sequence_parallel_size: 1
|
| 100 |
+
entropy_from_logits_with_chunking: false
|
| 101 |
+
entropy_checkpointing: false
|
| 102 |
+
use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
|
| 103 |
+
use_ref: true
|
| 104 |
+
grpo_advantage_length_weight: ${grpo_advantage_length_weight}
|
| 105 |
+
filter_loss_scaling: none
|
| 106 |
+
ref:
|
| 107 |
+
strategy: ${actor_rollout_ref.actor.strategy}
|
| 108 |
+
use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
|
| 109 |
+
log_prob_micro_batch_size: null
|
| 110 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 111 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 112 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 113 |
+
profiler:
|
| 114 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 115 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 116 |
+
enable: false
|
| 117 |
+
all_ranks: false
|
| 118 |
+
ranks: []
|
| 119 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 120 |
+
tool_config:
|
| 121 |
+
nsys:
|
| 122 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 123 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 124 |
+
npu:
|
| 125 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 126 |
+
contents: []
|
| 127 |
+
level: level1
|
| 128 |
+
analysis: true
|
| 129 |
+
discrete: false
|
| 130 |
+
torch:
|
| 131 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 132 |
+
step_start: 0
|
| 133 |
+
step_end: null
|
| 134 |
+
torch_memory:
|
| 135 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 136 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 137 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 138 |
+
fsdp_config:
|
| 139 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 140 |
+
wrap_policy:
|
| 141 |
+
min_num_params: 0
|
| 142 |
+
param_offload: false
|
| 143 |
+
optimizer_offload: false
|
| 144 |
+
offload_policy: false
|
| 145 |
+
reshard_after_forward: true
|
| 146 |
+
fsdp_size: -1
|
| 147 |
+
forward_prefetch: false
|
| 148 |
+
model_dtype: fp32
|
| 149 |
+
use_orig_params: false
|
| 150 |
+
ulysses_sequence_parallel_size: 1
|
| 151 |
+
entropy_from_logits_with_chunking: false
|
| 152 |
+
use_torch_compile: true
|
| 153 |
+
entropy_checkpointing: false
|
| 154 |
+
forward_only: false
|
| 155 |
+
strategy: fsdp
|
| 156 |
+
model: null
|
| 157 |
+
ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
|
| 158 |
+
entropy_from_logits_with_chunking: false
|
| 159 |
+
entropy_checkpointing: false
|
| 160 |
+
rollout:
|
| 161 |
+
_target_: verl.workers.config.RolloutConfig
|
| 162 |
+
name: vllm
|
| 163 |
+
mode: sync
|
| 164 |
+
temperature: 1
|
| 165 |
+
top_k: -1
|
| 166 |
+
top_p: 1
|
| 167 |
+
prompt_length: 1
|
| 168 |
+
response_length: 400
|
| 169 |
+
dtype: bfloat16
|
| 170 |
+
gpu_memory_utilization: 0.7
|
| 171 |
+
ignore_eos: false
|
| 172 |
+
enforce_eager: true
|
| 173 |
+
cudagraph_capture_sizes: null
|
| 174 |
+
free_cache_engine: true
|
| 175 |
+
tensor_model_parallel_size: 1
|
| 176 |
+
data_parallel_size: 1
|
| 177 |
+
expert_parallel_size: 1
|
| 178 |
+
max_num_batched_tokens: 16384
|
| 179 |
+
max_model_len: 16384
|
| 180 |
+
max_num_seqs: 1024
|
| 181 |
+
enable_chunked_prefill: true
|
| 182 |
+
enable_prefix_caching: true
|
| 183 |
+
load_format: auto
|
| 184 |
+
log_prob_micro_batch_size: null
|
| 185 |
+
log_prob_micro_batch_size_per_gpu: ${log_prob_micro_batch_size_per_gpu}
|
| 186 |
+
log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 187 |
+
log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
|
| 188 |
+
disable_log_stats: true
|
| 189 |
+
do_sample: true
|
| 190 |
+
'n': 1
|
| 191 |
+
over_sample_rate: 0
|
| 192 |
+
multi_stage_wake_up: false
|
| 193 |
+
engine_kwargs:
|
| 194 |
+
vllm: {}
|
| 195 |
+
sglang: {}
|
| 196 |
+
val_kwargs:
|
| 197 |
+
_target_: verl.workers.config.SamplingConfig
|
| 198 |
+
top_k: -1
|
| 199 |
+
top_p: 1.0
|
| 200 |
+
temperature: 0.5
|
| 201 |
+
'n': 1
|
| 202 |
+
do_sample: true
|
| 203 |
+
multi_turn:
|
| 204 |
+
_target_: verl.workers.config.MultiTurnConfig
|
| 205 |
+
enable: false
|
| 206 |
+
max_assistant_turns: null
|
| 207 |
+
tool_config_path: null
|
| 208 |
+
max_user_turns: null
|
| 209 |
+
max_parallel_calls: 1
|
| 210 |
+
max_tool_response_length: 256
|
| 211 |
+
tool_response_truncate_side: middle
|
| 212 |
+
interaction_config_path: null
|
| 213 |
+
use_inference_chat_template: false
|
| 214 |
+
tokenization_sanity_check_mode: strict
|
| 215 |
+
format: hermes
|
| 216 |
+
num_repeat_rollouts: null
|
| 217 |
+
calculate_log_probs: false
|
| 218 |
+
agent:
|
| 219 |
+
_target_: verl.workers.config.AgentLoopConfig
|
| 220 |
+
num_workers: 8
|
| 221 |
+
agent_loop_config_path: null
|
| 222 |
+
custom_async_server:
|
| 223 |
+
_target_: verl.workers.config.CustomAsyncServerConfig
|
| 224 |
+
path: null
|
| 225 |
+
name: null
|
| 226 |
+
update_weights_bucket_megabytes: 512
|
| 227 |
+
trace:
|
| 228 |
+
_target_: verl.workers.config.TraceConfig
|
| 229 |
+
backend: null
|
| 230 |
+
token2text: false
|
| 231 |
+
skip_rollout: false
|
| 232 |
+
skip_dump_dir: /tmp/rollout_dump
|
| 233 |
+
skip_tokenizer_init: true
|
| 234 |
+
profiler:
|
| 235 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 236 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 237 |
+
enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
|
| 238 |
+
all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
|
| 239 |
+
ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
|
| 240 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 241 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 242 |
+
layered_summon: false
|
| 243 |
+
rollout_filter_value: 0.9
|
| 244 |
+
rollout_filter_strategy: top_p
|
| 245 |
+
rollout_filter_type: largest
|
| 246 |
+
rollout_filter_include_zero: true
|
| 247 |
+
rollout_filter_top_p_prob_mode: linear
|
| 248 |
+
rollout_filter_selection_eps: 0.01
|
| 249 |
+
rollout_filter_empty_stop_steps: 5
|
| 250 |
+
rollout_filter_metric: reward_variance
|
| 251 |
+
gradient_analysis_num_buckets: 6
|
| 252 |
+
gradient_analysis_bucket_mode: quantile
|
| 253 |
+
model:
|
| 254 |
+
_target_: verl.workers.config.HFModelConfig
|
| 255 |
+
path: ${model_path}
|
| 256 |
+
hf_config_path: null
|
| 257 |
+
tokenizer_path: null
|
| 258 |
+
use_shm: false
|
| 259 |
+
trust_remote_code: false
|
| 260 |
+
custom_chat_template: null
|
| 261 |
+
external_lib: null
|
| 262 |
+
override_config: {}
|
| 263 |
+
enable_gradient_checkpointing: true
|
| 264 |
+
enable_activation_offload: false
|
| 265 |
+
use_remove_padding: false
|
| 266 |
+
lora_rank: ${lora.rank}
|
| 267 |
+
lora_alpha: ${lora.alpha}
|
| 268 |
+
target_modules: ${lora.target_modules}
|
| 269 |
+
exclude_modules: null
|
| 270 |
+
use_liger: false
|
| 271 |
+
use_fused_kernels: false
|
| 272 |
+
fused_kernel_options:
|
| 273 |
+
impl_backend: torch
|
| 274 |
+
hybrid_engine: true
|
| 275 |
+
nccl_timeout: 600
|
| 276 |
+
data:
|
| 277 |
+
tokenizer: null
|
| 278 |
+
use_shm: false
|
| 279 |
+
train_files: ~/data/rlhf/gsm8k/train.parquet
|
| 280 |
+
val_files: ~/data/rlhf/gsm8k/test.parquet
|
| 281 |
+
prompt_key: prompt
|
| 282 |
+
reward_fn_key: data_source
|
| 283 |
+
max_prompt_length: null
|
| 284 |
+
max_response_length: null
|
| 285 |
+
train_batch_size: null
|
| 286 |
+
val_batch_size: null
|
| 287 |
+
return_raw_input_ids: false
|
| 288 |
+
return_raw_chat: false
|
| 289 |
+
return_full_prompt: false
|
| 290 |
+
shuffle: true
|
| 291 |
+
dataloader_num_workers: 8
|
| 292 |
+
validation_shuffle: false
|
| 293 |
+
filter_overlong_prompts: false
|
| 294 |
+
filter_overlong_prompts_workers: 1
|
| 295 |
+
truncation: error
|
| 296 |
+
image_key: images
|
| 297 |
+
video_key: videos
|
| 298 |
+
trust_remote_code: false
|
| 299 |
+
custom_cls:
|
| 300 |
+
path: null
|
| 301 |
+
name: null
|
| 302 |
+
return_multi_modal_inputs: true
|
| 303 |
+
sampler:
|
| 304 |
+
class_path: null
|
| 305 |
+
class_name: null
|
| 306 |
+
datagen:
|
| 307 |
+
path: null
|
| 308 |
+
name: null
|
| 309 |
+
apply_chat_template_kwargs: {}
|
| 310 |
+
critic:
|
| 311 |
+
optim:
|
| 312 |
+
_target_: verl.workers.config.FSDPOptimizerConfig
|
| 313 |
+
lr: 1.0e-05
|
| 314 |
+
lr_warmup_steps_ratio: 0.0
|
| 315 |
+
total_training_steps: -1
|
| 316 |
+
weight_decay: 0.01
|
| 317 |
+
lr_warmup_steps: -1
|
| 318 |
+
betas:
|
| 319 |
+
- 0.9
|
| 320 |
+
- 0.999
|
| 321 |
+
clip_grad: 1.0
|
| 322 |
+
min_lr_ratio: 0.0
|
| 323 |
+
num_cycles: 0.5
|
| 324 |
+
warmup_style: constant
|
| 325 |
+
model:
|
| 326 |
+
fsdp_config:
|
| 327 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 328 |
+
wrap_policy:
|
| 329 |
+
min_num_params: 0
|
| 330 |
+
param_offload: false
|
| 331 |
+
optimizer_offload: false
|
| 332 |
+
offload_policy: false
|
| 333 |
+
reshard_after_forward: true
|
| 334 |
+
fsdp_size: -1
|
| 335 |
+
forward_prefetch: false
|
| 336 |
+
model_dtype: fp32
|
| 337 |
+
use_orig_params: false
|
| 338 |
+
ulysses_sequence_parallel_size: 1
|
| 339 |
+
entropy_from_logits_with_chunking: false
|
| 340 |
+
use_torch_compile: true
|
| 341 |
+
entropy_checkpointing: false
|
| 342 |
+
forward_only: false
|
| 343 |
+
strategy: fsdp
|
| 344 |
+
path: ${model_path}
|
| 345 |
+
tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
|
| 346 |
+
override_config: {}
|
| 347 |
+
external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
|
| 348 |
+
trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
|
| 349 |
+
_target_: verl.workers.config.FSDPCriticModelCfg
|
| 350 |
+
use_shm: false
|
| 351 |
+
enable_gradient_checkpointing: true
|
| 352 |
+
enable_activation_offload: false
|
| 353 |
+
use_remove_padding: false
|
| 354 |
+
lora_rank: ${lora.rank}
|
| 355 |
+
lora_alpha: ${lora.alpha}
|
| 356 |
+
target_modules: ${lora.target_modules}
|
| 357 |
+
_target_: verl.workers.config.FSDPCriticConfig
|
| 358 |
+
rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
|
| 359 |
+
strategy: fsdp
|
| 360 |
+
enable: null
|
| 361 |
+
ppo_mini_batch_size: ${ppo_mini_batch_size}
|
| 362 |
+
ppo_micro_batch_size: null
|
| 363 |
+
ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 364 |
+
use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
|
| 365 |
+
ppo_max_token_len_per_gpu: 32768
|
| 366 |
+
forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
|
| 367 |
+
ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
|
| 368 |
+
shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
|
| 369 |
+
cliprange_value: 0.5
|
| 370 |
+
loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
|
| 371 |
+
checkpoint:
|
| 372 |
+
_target_: verl.trainer.config.CheckpointConfig
|
| 373 |
+
save_contents:
|
| 374 |
+
- model
|
| 375 |
+
- optimizer
|
| 376 |
+
- extra
|
| 377 |
+
load_contents: ${.save_contents}
|
| 378 |
+
async_save: false
|
| 379 |
+
profiler:
|
| 380 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 381 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 382 |
+
enable: false
|
| 383 |
+
all_ranks: false
|
| 384 |
+
ranks: []
|
| 385 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 386 |
+
tool_config:
|
| 387 |
+
nsys:
|
| 388 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 389 |
+
discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
|
| 390 |
+
npu:
|
| 391 |
+
_target_: verl.utils.profiler.config.NPUToolConfig
|
| 392 |
+
contents: []
|
| 393 |
+
level: level1
|
| 394 |
+
analysis: true
|
| 395 |
+
discrete: false
|
| 396 |
+
torch:
|
| 397 |
+
_target_: verl.utils.profiler.config.TorchProfilerToolConfig
|
| 398 |
+
step_start: 0
|
| 399 |
+
step_end: null
|
| 400 |
+
torch_memory:
|
| 401 |
+
_target_: verl.utils.profiler.config.TorchMemoryToolConfig
|
| 402 |
+
trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
|
| 403 |
+
stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
|
| 404 |
+
forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
|
| 405 |
+
forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
|
| 406 |
+
ulysses_sequence_parallel_size: 1
|
| 407 |
+
grad_clip: 1.0
|
| 408 |
+
reward_model:
|
| 409 |
+
enable: false
|
| 410 |
+
enable_resource_pool: false
|
| 411 |
+
n_gpus_per_node: 0
|
| 412 |
+
nnodes: 0
|
| 413 |
+
strategy: fsdp
|
| 414 |
+
model:
|
| 415 |
+
input_tokenizer: ${actor_rollout_ref.model.path}
|
| 416 |
+
path: ~/models/FsfairX-LLaMA3-RM-v0.1
|
| 417 |
+
external_lib: ${actor_rollout_ref.model.external_lib}
|
| 418 |
+
trust_remote_code: false
|
| 419 |
+
use_shm: false
|
| 420 |
+
use_remove_padding: false
|
| 421 |
+
use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
|
| 422 |
+
fsdp_config:
|
| 423 |
+
_target_: verl.workers.config.FSDPEngineConfig
|
| 424 |
+
wrap_policy:
|
| 425 |
+
min_num_params: 0
|
| 426 |
+
param_offload: false
|
| 427 |
+
reshard_after_forward: true
|
| 428 |
+
fsdp_size: -1
|
| 429 |
+
forward_prefetch: false
|
| 430 |
+
micro_batch_size: null
|
| 431 |
+
micro_batch_size_per_gpu: null
|
| 432 |
+
max_length: null
|
| 433 |
+
use_dynamic_bsz: ${critic.use_dynamic_bsz}
|
| 434 |
+
forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
|
| 435 |
+
reward_manager: naive
|
| 436 |
+
launch_reward_fn_async: false
|
| 437 |
+
sandbox_fusion:
|
| 438 |
+
url: null
|
| 439 |
+
max_concurrent: 64
|
| 440 |
+
memory_limit_mb: 1024
|
| 441 |
+
profiler:
|
| 442 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 443 |
+
tool: ${oc.select:global_profiler.tool,null}
|
| 444 |
+
enable: false
|
| 445 |
+
all_ranks: false
|
| 446 |
+
ranks: []
|
| 447 |
+
save_path: ${oc.select:global_profiler.save_path,null}
|
| 448 |
+
tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
|
| 449 |
+
ulysses_sequence_parallel_size: 1
|
| 450 |
+
custom_reward_function:
|
| 451 |
+
path: null
|
| 452 |
+
name: compute_score
|
| 453 |
+
algorithm:
|
| 454 |
+
_target_: verl.trainer.config.AlgoConfig
|
| 455 |
+
gamma: 1.0
|
| 456 |
+
lam: 1.0
|
| 457 |
+
adv_estimator: gae
|
| 458 |
+
norm_adv_by_std_in_grpo: true
|
| 459 |
+
use_kl_in_reward: false
|
| 460 |
+
kl_penalty: kl
|
| 461 |
+
kl_ctrl:
|
| 462 |
+
_target_: verl.trainer.config.KLControlConfig
|
| 463 |
+
type: fixed
|
| 464 |
+
kl_coef: 0.0
|
| 465 |
+
horizon: 10000
|
| 466 |
+
target_kl: 0.1
|
| 467 |
+
use_pf_ppo: false
|
| 468 |
+
pf_ppo:
|
| 469 |
+
reweight_method: pow
|
| 470 |
+
weight_pow: 2.0
|
| 471 |
+
high_level_gamma: 0.95
|
| 472 |
+
bi_level_gae: false
|
| 473 |
+
zero_task_advantage: false
|
| 474 |
+
soft_advantage_reweight: false
|
| 475 |
+
trainer:
|
| 476 |
+
balance_batch: true
|
| 477 |
+
total_epochs: 30
|
| 478 |
+
total_training_steps: 1000
|
| 479 |
+
project_name: ragen
|
| 480 |
+
experiment_name: sokoban-main
|
| 481 |
+
logger:
|
| 482 |
+
- console
|
| 483 |
+
- wandb
|
| 484 |
+
log_val_generations: 0
|
| 485 |
+
rollout_data_dir: null
|
| 486 |
+
validation_data_dir: null
|
| 487 |
+
nnodes: 1
|
| 488 |
+
n_gpus_per_node: 8
|
| 489 |
+
save_freq: -1
|
| 490 |
+
esi_redundant_time: 0
|
| 491 |
+
resume_mode: auto
|
| 492 |
+
resume_from_path: null
|
| 493 |
+
val_before_train: true
|
| 494 |
+
val_only: false
|
| 495 |
+
test_freq: 10
|
| 496 |
+
critic_warmup: 0
|
| 497 |
+
default_hdfs_dir: null
|
| 498 |
+
del_local_ckpt_after_load: false
|
| 499 |
+
default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
|
| 500 |
+
max_actor_ckpt_to_keep: 1
|
| 501 |
+
max_critic_ckpt_to_keep: 1
|
| 502 |
+
ray_wait_register_center_timeout: 300
|
| 503 |
+
device: cuda
|
| 504 |
+
use_legacy_worker_impl: auto
|
| 505 |
+
local_log_dir: results/
|
| 506 |
+
validation_steps: 1
|
| 507 |
+
generations_to_log_to_wandb:
|
| 508 |
+
val: 20
|
| 509 |
+
log_group_rv_table: false
|
| 510 |
+
gradient_analysis_mode: false
|
| 511 |
+
gradient_analysis_every: 50
|
| 512 |
+
gradient_analysis_env_groups: null
|
| 513 |
+
gradient_analysis_group_size: null
|
| 514 |
+
gradient_analysis_log_prefilter: false
|
| 515 |
+
gradient_analysis_only: false
|
| 516 |
+
exit_after_gradient_analysis: false
|
| 517 |
+
global_profiler:
|
| 518 |
+
_target_: verl.utils.profiler.ProfilerConfig
|
| 519 |
+
tool: null
|
| 520 |
+
steps: null
|
| 521 |
+
profile_continuous_steps: false
|
| 522 |
+
save_path: outputs/profile
|
| 523 |
+
global_tool_config:
|
| 524 |
+
nsys:
|
| 525 |
+
_target_: verl.utils.profiler.config.NsightToolConfig
|
| 526 |
+
discrete: false
|
| 527 |
+
controller_nsight_options:
|
| 528 |
+
trace: cuda,nvtx,cublas,ucx
|
| 529 |
+
cuda-memory-usage: 'true'
|
| 530 |
+
cuda-graph-trace: graph
|
| 531 |
+
worker_nsight_options:
|
| 532 |
+
trace: cuda,nvtx,cublas,ucx
|
| 533 |
+
cuda-memory-usage: 'true'
|
| 534 |
+
cuda-graph-trace: graph
|
| 535 |
+
capture-range: cudaProfilerApi
|
| 536 |
+
capture-range-end: null
|
| 537 |
+
kill: none
|
| 538 |
+
torch_memory:
|
| 539 |
+
trace_alloc_max_entries: 100000
|
| 540 |
+
stack_depth: 32
|
| 541 |
+
context: all
|
| 542 |
+
stacks: all
|
| 543 |
+
kw_args: {}
|
| 544 |
+
ray_kwargs:
|
| 545 |
+
ray_init:
|
| 546 |
+
num_cpus: null
|
| 547 |
+
timeline_json_file: null
|
| 548 |
+
custom_envs:
|
| 549 |
+
SimpleSokoban:
|
| 550 |
+
env_type: sokoban
|
| 551 |
+
max_actions_per_traj: 10
|
| 552 |
+
env_instruction: "You are a careful Sokoban solver. Use these reusable abstractions\
|
| 553 |
+
\ when reasoning:\n1. First compare the box position with the target position;\
|
| 554 |
+
\ the useful push directions are usually the directions that reduce their row/column\
|
| 555 |
+
\ distance.\n2. Before pushing, move the player to the square opposite the intended\
|
| 556 |
+
\ push direction. A move that only repositions the player can be useful if it\
|
| 557 |
+
\ sets up the next push.\n3. Never push a box into a wall, corner, or narrow\
|
| 558 |
+
\ dead end unless that square is the target or clearly on the only path to the\
|
| 559 |
+
\ target.\n4. Prefer short plans that move the single box steadily toward the\
|
| 560 |
+
\ target; avoid wandering moves that do not improve player position or box position.\n\
|
| 561 |
+
5. If the box and target are aligned in the same row or column, try to keep\
|
| 562 |
+
\ the box on that line and push along it.\n6. If they are not aligned, first\
|
| 563 |
+
\ push to fix one coordinate, then reposition and push to fix the other coordinate.\n\
|
| 564 |
+
7. Check that after each push, the player can still reach the next required\
|
| 565 |
+
\ pushing side of the box.\n8. Output only the required XML-like format and\
|
| 566 |
+
\ choose valid Sokoban actions.\n\nYou are the player and you need to push all\
|
| 567 |
+
\ boxes to targets. \nWhen you are right next to a box, you can push it by moving\
|
| 568 |
+
\ in the same direction. \nYou cannot push a box through a wall, and you cannot\
|
| 569 |
+
\ pull a box. \nThe answer should be a sequence of actions, like <answer>Right\
|
| 570 |
+
\ || Right || Up</answer>\n"
|
| 571 |
+
max_tokens: 100
|
| 572 |
+
parallel_friendly: false
|
| 573 |
+
max_workers: 32
|
| 574 |
+
env_config:
|
| 575 |
+
dim_x: 6
|
| 576 |
+
dim_y: 6
|
| 577 |
+
num_boxes: 1
|
| 578 |
+
max_steps: 100
|
| 579 |
+
LargerSokoban:
|
| 580 |
+
env_type: sokoban
|
| 581 |
+
max_actions_per_traj: 10
|
| 582 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 583 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 584 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 585 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 586 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 587 |
+
max_tokens: 100
|
| 588 |
+
parallel_friendly: false
|
| 589 |
+
max_workers: 32
|
| 590 |
+
env_config:
|
| 591 |
+
dim_x: 8
|
| 592 |
+
dim_y: 8
|
| 593 |
+
num_boxes: 2
|
| 594 |
+
max_steps: 100
|
| 595 |
+
search_depth: 10
|
| 596 |
+
SokobanDifferentGridVocab:
|
| 597 |
+
env_type: sokoban
|
| 598 |
+
max_actions_per_traj: 10
|
| 599 |
+
env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
|
| 600 |
+
\ you need to push all boxes to targets. \nWhen you are right next to a box,\
|
| 601 |
+
\ you can push it by moving in the same direction. \nYou cannot push a box through\
|
| 602 |
+
\ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
|
| 603 |
+
\ like <answer>Right || Right || Up</answer>\n"
|
| 604 |
+
max_tokens: 100
|
| 605 |
+
parallel_friendly: false
|
| 606 |
+
max_workers: 32
|
| 607 |
+
env_config:
|
| 608 |
+
search_depth: 30
|
| 609 |
+
dim_x: 6
|
| 610 |
+
dim_y: 6
|
| 611 |
+
num_boxes: 1
|
| 612 |
+
max_steps: 100
|
| 613 |
+
grid_lookup:
|
| 614 |
+
0: W
|
| 615 |
+
1: .
|
| 616 |
+
2: G
|
| 617 |
+
3: C
|
| 618 |
+
4: B
|
| 619 |
+
5: A
|
| 620 |
+
6: '@'
|
| 621 |
+
grid_vocab:
|
| 622 |
+
W: wall
|
| 623 |
+
.: empty
|
| 624 |
+
G: target
|
| 625 |
+
C: box on target
|
| 626 |
+
B: box
|
| 627 |
+
A: player
|
| 628 |
+
'@': player on target
|
| 629 |
+
CoordSokoban:
|
| 630 |
+
env_type: sokoban
|
| 631 |
+
max_actions_per_traj: 10
|
| 632 |
+
env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
|
| 633 |
+
\ need to push all boxes to targets.\nYou are provided with a symbol grid and\
|
| 634 |
+
\ the zero-indexed coordinates of the player, each box, and each target. \n\
|
| 635 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
|
| 636 |
+
\ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
|
| 637 |
+
\ the same direction. \nYou cannot push a box through a wall, and you cannot\
|
| 638 |
+
\ pull a box.\nThe answer should be a sequence of actions, like <answer>Right\
|
| 639 |
+
\ || Right || Up</answer>.\n"
|
| 640 |
+
max_tokens: 120
|
| 641 |
+
parallel_friendly: false
|
| 642 |
+
max_workers: 32
|
| 643 |
+
env_config:
|
| 644 |
+
dim_x: 6
|
| 645 |
+
dim_y: 6
|
| 646 |
+
num_boxes: 1
|
| 647 |
+
max_steps: 100
|
| 648 |
+
observation_format: grid_coord
|
| 649 |
+
VisualSimpleSokoban:
|
| 650 |
+
env_type: sokoban
|
| 651 |
+
max_actions_per_traj: 10
|
| 652 |
+
env_instruction: You are solving the Sokoban puzzle. You are the player and you
|
| 653 |
+
need to push all boxes to targets. When you are right next to a box, you can
|
| 654 |
+
push it by moving in the same direction. You cannot push a box through a wall,
|
| 655 |
+
and you cannot pull a box. The answer should be a sequence of actions, like
|
| 656 |
+
<answer>Right || Right || Up</answer>
|
| 657 |
+
max_tokens: 100
|
| 658 |
+
parallel_friendly: false
|
| 659 |
+
max_workers: 32
|
| 660 |
+
env_config:
|
| 661 |
+
dim_x: 6
|
| 662 |
+
dim_y: 6
|
| 663 |
+
num_boxes: 1
|
| 664 |
+
max_steps: 100
|
| 665 |
+
render_mode: rgb_array
|
| 666 |
+
Alfworld:
|
| 667 |
+
env_type: alfworld
|
| 668 |
+
max_actions_per_traj: 50
|
| 669 |
+
parallel_friendly: false
|
| 670 |
+
max_workers: 1
|
| 671 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 672 |
+
|
| 673 |
+
Complete household tasks by navigating and interacting with objects.
|
| 674 |
+
|
| 675 |
+
|
| 676 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 677 |
+
process MUST be enclosed within <think> </think> tags.
|
| 678 |
+
|
| 679 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 680 |
+
for current step and present it within <answer>...</answer> tags.
|
| 681 |
+
|
| 682 |
+
'
|
| 683 |
+
max_tokens: 512
|
| 684 |
+
env_config:
|
| 685 |
+
eval_dataset: eval_in_distribution
|
| 686 |
+
AlfworldOOD:
|
| 687 |
+
env_type: alfworld
|
| 688 |
+
max_actions_per_traj: 50
|
| 689 |
+
parallel_friendly: false
|
| 690 |
+
max_workers: 1
|
| 691 |
+
env_instruction: 'You are an expert agent in the ALFRED Embodied Environment.
|
| 692 |
+
|
| 693 |
+
Complete household tasks by navigating and interacting with objects.
|
| 694 |
+
|
| 695 |
+
|
| 696 |
+
You should first reason step-by-step about the current situation. This reasoning
|
| 697 |
+
process MUST be enclosed within <think> </think> tags.
|
| 698 |
+
|
| 699 |
+
Once you''ve finished your reasoning, you should choose an admissible action
|
| 700 |
+
for current step and present it within <answer>...</answer> tags.
|
| 701 |
+
|
| 702 |
+
'
|
| 703 |
+
max_tokens: 512
|
| 704 |
+
env_config:
|
| 705 |
+
eval_dataset: eval_out_of_distribution
|
| 706 |
+
Countdown:
|
| 707 |
+
env_type: countdown
|
| 708 |
+
max_actions_per_traj: 1
|
| 709 |
+
env_instruction: 'You are solving the Countdown puzzle. You should use the num
|
| 710 |
+
list to create an equation that equals the target. Example answer format: <think>
|
| 711 |
+
To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
|
| 712 |
+
= 4. So the answer is 2 + 5 - 3 = 4. </think><answer>2 + 5 - 3</answer>'
|
| 713 |
+
max_tokens: 100
|
| 714 |
+
parallel_friendly: false
|
| 715 |
+
max_workers: 32
|
| 716 |
+
env_config: null
|
| 717 |
+
Bandit:
|
| 718 |
+
env_type: bandit
|
| 719 |
+
max_actions_per_traj: 1
|
| 720 |
+
env_instruction: ''
|
| 721 |
+
max_tokens: 100
|
| 722 |
+
parallel_friendly: false
|
| 723 |
+
max_workers: 32
|
| 724 |
+
env_config:
|
| 725 |
+
split: train
|
| 726 |
+
BanditTest:
|
| 727 |
+
env_type: bandit
|
| 728 |
+
max_actions_per_traj: 1
|
| 729 |
+
env_instruction: ''
|
| 730 |
+
max_tokens: 100
|
| 731 |
+
parallel_friendly: false
|
| 732 |
+
max_workers: 32
|
| 733 |
+
env_config:
|
| 734 |
+
split: test
|
| 735 |
+
DeepCoder:
|
| 736 |
+
env_type: deepcoder
|
| 737 |
+
max_actions_per_traj: 1
|
| 738 |
+
env_instruction: 'You are solving a coding task. Provide a complete Python function
|
| 739 |
+
solution only. Format: <answer>...</answer>'
|
| 740 |
+
max_tokens: 8000
|
| 741 |
+
parallel_friendly: true
|
| 742 |
+
max_workers: 32
|
| 743 |
+
env_config:
|
| 744 |
+
max_steps: 1
|
| 745 |
+
FrozenLake:
|
| 746 |
+
env_type: frozen_lake
|
| 747 |
+
max_actions_per_traj: 10
|
| 748 |
+
env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
|
| 749 |
+
go to the target. You may move to the unintended direction due to the slippery
|
| 750 |
+
ice. Example answer format: <think>To forbid the hole and go to the target,
|
| 751 |
+
I should go left then go up.</think><answer>Left || Up</answer>'
|
| 752 |
+
max_tokens: 100
|
| 753 |
+
parallel_friendly: false
|
| 754 |
+
max_workers: 32
|
| 755 |
+
env_config:
|
| 756 |
+
success_rate: 0.8
|
| 757 |
+
CoordFrozenLake:
|
| 758 |
+
env_type: frozen_lake
|
| 759 |
+
max_actions_per_traj: 10
|
| 760 |
+
env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
|
| 761 |
+
both a symbol grid and zero-indexed coordinates for the start, goal, player,
|
| 762 |
+
and any holes.
|
| 763 |
+
|
| 764 |
+
Coordinates range from the top-left corner (0, 0) to the bottom-right corner
|
| 765 |
+
(5, 5).
|
| 766 |
+
|
| 767 |
+
Beware that the ice is slippery, so the agent might slide and end up in an unintended
|
| 768 |
+
tile.
|
| 769 |
+
|
| 770 |
+
Respond with a sequence of actions such as <answer>Left || Up || Up</answer>.
|
| 771 |
+
|
| 772 |
+
'
|
| 773 |
+
max_tokens: 120
|
| 774 |
+
parallel_friendly: false
|
| 775 |
+
max_workers: 32
|
| 776 |
+
env_config:
|
| 777 |
+
observation_format: grid_coord
|
| 778 |
+
success_rate: 0.8
|
| 779 |
+
MetamathQA:
|
| 780 |
+
env_type: metamathqa
|
| 781 |
+
max_actions_per_traj: 1
|
| 782 |
+
env_instruction: 'You are solving Math problems. '
|
| 783 |
+
max_tokens: 100
|
| 784 |
+
env_config: null
|
| 785 |
+
WebShopFull:
|
| 786 |
+
env_type: webshop
|
| 787 |
+
max_actions_per_traj: 15
|
| 788 |
+
env_instruction: You are an expert autonomous agent operating in the WebShop e‑commerce
|
| 789 |
+
environment.
|
| 790 |
+
max_tokens: 200
|
| 791 |
+
env_config:
|
| 792 |
+
dataset: full
|
| 793 |
+
WebShop:
|
| 794 |
+
env_type: webshop
|
| 795 |
+
max_actions_per_traj: 9
|
| 796 |
+
env_instruction: 'You are browsing an online shop. Based on the instruction, buy
|
| 797 |
+
a product that close to the production description. You need to search, read
|
| 798 |
+
the search results, pick a product, choose the size and color and buy. You should
|
| 799 |
+
only choose action from the available actions list provided later. Example
|
| 800 |
+
process: I need a gingko light and 20x20 pillow cover that is hand painted.
|
| 801 |
+
First search[gingko light 20x20 pillow cover hand painted], answer format: <answer>search[blanket
|
| 802 |
+
with fleece throw]</answer>. Valid answer is search[<keywords>] or click[<clickable>].'
|
| 803 |
+
max_tokens: 200
|
| 804 |
+
env_config:
|
| 805 |
+
dataset: small
|
| 806 |
+
Lean:
|
| 807 |
+
env_type: lean
|
| 808 |
+
max_actions_per_traj: 30
|
| 809 |
+
env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
|
| 810 |
+
propose a sequence of tactics that completes the proof. Think step by step about
|
| 811 |
+
which tactics to apply next. Provide tactics separated by '||', for example
|
| 812 |
+
<answer>intro || simp || rfl</answer>.
|
| 813 |
+
max_tokens: 512
|
| 814 |
+
parallel_friendly: true
|
| 815 |
+
max_workers: 32
|
| 816 |
+
env_config: null
|
| 817 |
+
SimpleSudoku:
|
| 818 |
+
env_type: sudoku
|
| 819 |
+
max_actions_per_traj: 20
|
| 820 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 821 |
+
row, column, and 2x2 box contains the numbers 1-4 without repetition.
|
| 822 |
+
|
| 823 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 824 |
+
shown as dots (.).
|
| 825 |
+
|
| 826 |
+
Place numbers one at a time using the format: <answer>place 1 at row 2 col 3</answer>
|
| 827 |
+
or <answer>1,2,3</answer>
|
| 828 |
+
|
| 829 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 830 |
+
if any occur.
|
| 831 |
+
|
| 832 |
+
'
|
| 833 |
+
max_tokens: 150
|
| 834 |
+
parallel_friendly: false
|
| 835 |
+
max_workers: 32
|
| 836 |
+
env_config:
|
| 837 |
+
grid_size: 4
|
| 838 |
+
difficulty: easy
|
| 839 |
+
render_format: with_feedback
|
| 840 |
+
show_conflicts: false
|
| 841 |
+
show_valid_numbers: false
|
| 842 |
+
max_steps: 20
|
| 843 |
+
MediumSudoku:
|
| 844 |
+
env_type: sudoku
|
| 845 |
+
max_actions_per_traj: 30
|
| 846 |
+
env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
|
| 847 |
+
row, column, and 3x3 box contains the numbers 1-9 without repetition.
|
| 848 |
+
|
| 849 |
+
Initial cells are shown in [brackets] and cannot be modified. Empty cells are
|
| 850 |
+
shown as dots (.).
|
| 851 |
+
|
| 852 |
+
Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
|
| 853 |
+
or <answer>2,3,5</answer>
|
| 854 |
+
|
| 855 |
+
The environment will provide feedback on valid/invalid moves and show conflicts
|
| 856 |
+
if any occur.
|
| 857 |
+
|
| 858 |
+
'
|
| 859 |
+
max_tokens: 150
|
| 860 |
+
parallel_friendly: false
|
| 861 |
+
max_workers: 32
|
| 862 |
+
env_config:
|
| 863 |
+
grid_size: 9
|
| 864 |
+
difficulty: medium
|
| 865 |
+
render_format: with_feedback
|
| 866 |
+
show_conflicts: true
|
| 867 |
+
show_valid_numbers: true
|
| 868 |
+
max_steps: 81
|
| 869 |
+
SearchQA:
|
| 870 |
+
env_type: search
|
| 871 |
+
max_actions_per_traj: 10
|
| 872 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 873 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 874 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 875 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 876 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 877 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 878 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 879 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 880 |
+
\ Platt]</answer>\n"
|
| 881 |
+
max_tokens: 300
|
| 882 |
+
parallel_friendly: true
|
| 883 |
+
max_workers: 32
|
| 884 |
+
env_config:
|
| 885 |
+
max_steps: 10
|
| 886 |
+
max_search_results: 5
|
| 887 |
+
SearchQAMock:
|
| 888 |
+
env_type: search
|
| 889 |
+
max_actions_per_traj: 10
|
| 890 |
+
env_instruction: "You are a search agent answering questions by searching for\
|
| 891 |
+
\ information.\nUse search[your query] to find relevant documents, and finish[your\
|
| 892 |
+
\ answer] to submit your final answer.\n\nYou should first reason step-by-step\
|
| 893 |
+
\ about the current situation. This reasoning process MUST be enclosed within\
|
| 894 |
+
\ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
|
| 895 |
+
\ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
|
| 896 |
+
\ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
|
| 897 |
+
\ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
|
| 898 |
+
\ Platt]</answer>\n"
|
| 899 |
+
max_tokens: 300
|
| 900 |
+
parallel_friendly: true
|
| 901 |
+
max_workers: 32
|
| 902 |
+
env_config:
|
| 903 |
+
max_steps: 10
|
| 904 |
+
max_search_results: 5
|
| 905 |
+
mock_mode: true
|
| 906 |
+
game_2048:
|
| 907 |
+
env_type: game_2048
|
| 908 |
+
max_actions_per_traj: 700
|
| 909 |
+
env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
|
| 910 |
+
by sliding Up, Right, Down, or Left.
|
| 911 |
+
|
| 912 |
+
If a move is invalid (no tiles move), a small penalty is applied. Respond with
|
| 913 |
+
a single action.
|
| 914 |
+
|
| 915 |
+
Example: <answer>Up</answer>
|
| 916 |
+
|
| 917 |
+
'
|
| 918 |
+
max_tokens: 8192
|
| 919 |
+
env_config: null
|
| 920 |
+
rubikscube:
|
| 921 |
+
env_type: rubikscube
|
| 922 |
+
max_actions_per_traj: 20
|
| 923 |
+
env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
|
| 924 |
+
is to restore the cube so that each of the faces consists of a single, unique
|
| 925 |
+
color.
|
| 926 |
+
|
| 927 |
+
Available actions use standard Singmaster notation for face rotations: U, U'',
|
| 928 |
+
D, D'', L, L'', R, R'', F, F'', B, B''.
|
| 929 |
+
|
| 930 |
+
- Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
|
| 931 |
+
|
| 932 |
+
- Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
|
| 933 |
+
prime ('') means 90° counter-clockwise (e.g., "R''").
|
| 934 |
+
|
| 935 |
+
Respond with a sequence of actions separated by "||".
|
| 936 |
+
|
| 937 |
+
Example: <answer>U</answer>
|
| 938 |
+
|
| 939 |
+
'
|
| 940 |
+
max_tokens: 96
|
| 941 |
+
env_config:
|
| 942 |
+
scramble_depth: 1
|
| 943 |
+
max_steps: 20
|
| 944 |
+
render_mode: text
|
| 945 |
+
system:
|
| 946 |
+
CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
|
| 947 |
+
seed:
|
| 948 |
+
train: 10000
|
| 949 |
+
val: 123
|
| 950 |
+
micro_batch_size_per_gpu: 1
|
| 951 |
+
log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
|
| 952 |
+
ppo_mini_batch_size: 32
|
| 953 |
+
model_path: /mnt/general/share/model/Qwen/Qwen2.5-7B-Instruct
|
| 954 |
+
enable_response_mask: true
|
| 955 |
+
grpo_advantage_length_weight: false
|
| 956 |
+
lora:
|
| 957 |
+
rank: 0
|
| 958 |
+
alpha: 64
|
| 959 |
+
target_modules: all-linear
|
| 960 |
+
agent_proxy:
|
| 961 |
+
context_window_mode: full
|
| 962 |
+
max_context_window: -1
|
| 963 |
+
batch_adjust_mode: copy
|
| 964 |
+
max_turn: 15
|
| 965 |
+
action_sep: '||'
|
| 966 |
+
max_actions_per_turn: 1
|
| 967 |
+
use_turn_scores: false
|
| 968 |
+
enable_think: true
|
| 969 |
+
reward_normalization:
|
| 970 |
+
grouping: state
|
| 971 |
+
method: identity
|
| 972 |
+
collapse_detection:
|
| 973 |
+
compute_freq: 5
|
| 974 |
+
micro_batch_size: 128
|
| 975 |
+
first_turn_enabled: true
|
| 976 |
+
multi_turn_enabled: true
|
| 977 |
+
num_samples: 64
|
| 978 |
+
es_manager:
|
| 979 |
+
format_penalty: -0.1
|
| 980 |
+
train:
|
| 981 |
+
env_groups: 8
|
| 982 |
+
group_size: 16
|
| 983 |
+
env_configs:
|
| 984 |
+
tags:
|
| 985 |
+
- SimpleSokoban
|
| 986 |
+
n_groups:
|
| 987 |
+
- 8
|
| 988 |
+
val:
|
| 989 |
+
env_groups: 512
|
| 990 |
+
group_size: 1
|
| 991 |
+
env_configs:
|
| 992 |
+
tags:
|
| 993 |
+
- SimpleSokoban
|
| 994 |
+
n_groups:
|
| 995 |
+
- 512
|
| 996 |
+
ctx_manager:
|
| 997 |
+
generation:
|
| 998 |
+
gen_config:
|
| 999 |
+
response_length: ${actor_rollout_ref.rollout.response_length}
|
| 1000 |
+
temperature: ${actor_rollout_ref.rollout.temperature}
|
| 1001 |
+
top_p: ${actor_rollout_ref.rollout.top_p}
|
| 1002 |
+
top_k: ${actor_rollout_ref.rollout.top_k}
|
| 1003 |
+
kwargs: null
|
outputs/2026-05-22/21-57-02/.hydra/hydra.yaml
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
hydra:
|
| 2 |
+
run:
|
| 3 |
+
dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 4 |
+
sweep:
|
| 5 |
+
dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 6 |
+
subdir: ${hydra.job.num}
|
| 7 |
+
launcher:
|
| 8 |
+
_target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
|
| 9 |
+
sweeper:
|
| 10 |
+
_target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
|
| 11 |
+
max_batch_size: null
|
| 12 |
+
params: null
|
| 13 |
+
help:
|
| 14 |
+
app_name: ${hydra.job.name}
|
| 15 |
+
header: '${hydra.help.app_name} is powered by Hydra.
|
| 16 |
+
|
| 17 |
+
'
|
| 18 |
+
footer: 'Powered by Hydra (https://hydra.cc)
|
| 19 |
+
|
| 20 |
+
Use --hydra-help to view Hydra specific help
|
| 21 |
+
|
| 22 |
+
'
|
| 23 |
+
template: '${hydra.help.header}
|
| 24 |
+
|
| 25 |
+
== Configuration groups ==
|
| 26 |
+
|
| 27 |
+
Compose your configuration from those groups (group=option)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
$APP_CONFIG_GROUPS
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
== Config ==
|
| 34 |
+
|
| 35 |
+
Override anything in the config (foo.bar=value)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
$CONFIG
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
${hydra.help.footer}
|
| 42 |
+
|
| 43 |
+
'
|
| 44 |
+
hydra_help:
|
| 45 |
+
template: 'Hydra (${hydra.runtime.version})
|
| 46 |
+
|
| 47 |
+
See https://hydra.cc for more info.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
== Flags ==
|
| 51 |
+
|
| 52 |
+
$FLAGS_HELP
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
== Configuration groups ==
|
| 56 |
+
|
| 57 |
+
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
|
| 58 |
+
to command line)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
$HYDRA_CONFIG_GROUPS
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
Use ''--cfg hydra'' to Show the Hydra config.
|
| 65 |
+
|
| 66 |
+
'
|
| 67 |
+
hydra_help: ???
|
| 68 |
+
hydra_logging:
|
| 69 |
+
version: 1
|
| 70 |
+
formatters:
|
| 71 |
+
simple:
|
| 72 |
+
format: '[%(asctime)s][HYDRA] %(message)s'
|
| 73 |
+
handlers:
|
| 74 |
+
console:
|
| 75 |
+
class: logging.StreamHandler
|
| 76 |
+
formatter: simple
|
| 77 |
+
stream: ext://sys.stdout
|
| 78 |
+
root:
|
| 79 |
+
level: INFO
|
| 80 |
+
handlers:
|
| 81 |
+
- console
|
| 82 |
+
loggers:
|
| 83 |
+
logging_example:
|
| 84 |
+
level: DEBUG
|
| 85 |
+
disable_existing_loggers: false
|
| 86 |
+
job_logging:
|
| 87 |
+
version: 1
|
| 88 |
+
formatters:
|
| 89 |
+
simple:
|
| 90 |
+
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
|
| 91 |
+
handlers:
|
| 92 |
+
console:
|
| 93 |
+
class: logging.StreamHandler
|
| 94 |
+
formatter: simple
|
| 95 |
+
stream: ext://sys.stdout
|
| 96 |
+
file:
|
| 97 |
+
class: logging.FileHandler
|
| 98 |
+
formatter: simple
|
| 99 |
+
filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
|
| 100 |
+
root:
|
| 101 |
+
level: INFO
|
| 102 |
+
handlers:
|
| 103 |
+
- console
|
| 104 |
+
- file
|
| 105 |
+
disable_existing_loggers: false
|
| 106 |
+
env: {}
|
| 107 |
+
mode: RUN
|
| 108 |
+
searchpath:
|
| 109 |
+
- pkg://verl.trainer.config
|
| 110 |
+
callbacks: {}
|
| 111 |
+
output_subdir: .hydra
|
| 112 |
+
overrides:
|
| 113 |
+
hydra:
|
| 114 |
+
- hydra.mode=RUN
|
| 115 |
+
task:
|
| 116 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 117 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 118 |
+
- trainer.total_training_steps=1000
|
| 119 |
+
- model_path=/mnt/general/share/model/Qwen/Qwen2.5-7B-Instruct
|
| 120 |
+
job:
|
| 121 |
+
name: train
|
| 122 |
+
chdir: null
|
| 123 |
+
override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,model_path=/mnt/general/share/model/Qwen/Qwen2.5-7B-Instruct,trainer.total_training_steps=1000
|
| 124 |
+
id: ???
|
| 125 |
+
num: ???
|
| 126 |
+
config_name: _2_sokoban
|
| 127 |
+
env_set: {}
|
| 128 |
+
env_copy: []
|
| 129 |
+
config:
|
| 130 |
+
override_dirname:
|
| 131 |
+
kv_sep: '='
|
| 132 |
+
item_sep: ','
|
| 133 |
+
exclude_keys: []
|
| 134 |
+
runtime:
|
| 135 |
+
version: 1.3.2
|
| 136 |
+
version_base: '1.3'
|
| 137 |
+
cwd: /mnt/general/wanghy/RAGEN_v2
|
| 138 |
+
config_sources:
|
| 139 |
+
- path: hydra.conf
|
| 140 |
+
schema: pkg
|
| 141 |
+
provider: hydra
|
| 142 |
+
- path: /mnt/general/wanghy/RAGEN_v2/config
|
| 143 |
+
schema: file
|
| 144 |
+
provider: main
|
| 145 |
+
- path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
|
| 146 |
+
schema: file
|
| 147 |
+
provider: command-line
|
| 148 |
+
- path: verl.trainer.config
|
| 149 |
+
schema: pkg
|
| 150 |
+
provider: hydra.searchpath in main
|
| 151 |
+
- path: ''
|
| 152 |
+
schema: structured
|
| 153 |
+
provider: schema
|
| 154 |
+
output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-05-22/21-57-02
|
| 155 |
+
choices:
|
| 156 |
+
reward_model: dp_reward_model
|
| 157 |
+
critic: dp_critic
|
| 158 |
+
critic/../engine@critic.model.fsdp_config: fsdp
|
| 159 |
+
critic/../optim@critic.optim: fsdp
|
| 160 |
+
model@actor_rollout_ref.model: hf_model
|
| 161 |
+
rollout@actor_rollout_ref.rollout: rollout
|
| 162 |
+
ref@actor_rollout_ref.ref: dp_ref
|
| 163 |
+
ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
|
| 164 |
+
data: legacy_data
|
| 165 |
+
actor@actor_rollout_ref.actor: dp_actor
|
| 166 |
+
actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
|
| 167 |
+
actor/../optim@actor_rollout_ref.actor.optim: fsdp
|
| 168 |
+
hydra/env: default
|
| 169 |
+
hydra/callbacks: null
|
| 170 |
+
hydra/job_logging: default
|
| 171 |
+
hydra/hydra_logging: default
|
| 172 |
+
hydra/hydra_help: default
|
| 173 |
+
hydra/help: default
|
| 174 |
+
hydra/sweeper: basic
|
| 175 |
+
hydra/launcher: basic
|
| 176 |
+
hydra/output: default
|
| 177 |
+
verbose: false
|
outputs/2026-05-22/21-57-02/.hydra/overrides.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- actor_rollout_ref.rollout.rollout_filter_strategy=top_p
|
| 2 |
+
- actor_rollout_ref.rollout.rollout_filter_value=0.9
|
| 3 |
+
- trainer.total_training_steps=1000
|
| 4 |
+
- model_path=/mnt/general/share/model/Qwen/Qwen2.5-7B-Instruct
|
outputs/2026-05-22/21-57-02/train.log
ADDED
|
File without changes
|