Harryis commited on
Commit
98184dd
·
verified ·
1 Parent(s): e4bc2c3

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. outputs/2026-06-01/23-08-51/.hydra/config.yaml +1005 -0
  2. outputs/2026-06-07/23-18-01/.hydra/hydra.yaml +178 -0
  3. outputs/2026-06-09/00-36-11/.hydra/hydra.yaml +177 -0
  4. outputs/2026-06-09/02-32-07/.hydra/config.yaml +1003 -0
  5. outputs/2026-06-09/02-32-07/.hydra/hydra.yaml +177 -0
  6. outputs/2026-06-09/02-32-07/.hydra/overrides.yaml +8 -0
  7. outputs/2026-06-09/02-32-07/train.log +0 -0
  8. outputs/2026-06-09/05-39-33/.hydra/config.yaml +1003 -0
  9. outputs/2026-06-09/05-39-33/train.log +0 -0
  10. outputs/2026-06-09/11-20-05/train.log +0 -0
  11. outputs/2026-06-09/11-58-39/train.log +0 -0
  12. outputs/2026-06-09/13-00-35/.hydra/overrides.yaml +8 -0
  13. outputs/2026-06-09/13-00-35/train.log +0 -0
  14. outputs/2026-06-09/16-00-04/.hydra/config.yaml +1003 -0
  15. outputs/2026-06-09/16-05-29/.hydra/config.yaml +1048 -0
  16. outputs/2026-06-09/16-05-29/.hydra/hydra.yaml +178 -0
  17. outputs/2026-06-09/16-05-29/.hydra/overrides.yaml +5 -0
  18. outputs/2026-06-09/17-01-43/.hydra/config.yaml +1048 -0
  19. outputs/2026-06-09/17-01-43/.hydra/overrides.yaml +5 -0
  20. outputs/2026-06-09/17-01-43/train.log +0 -0
  21. outputs/2026-06-09/20-37-55/.hydra/hydra.yaml +178 -0
  22. outputs/2026-06-09/20-37-55/.hydra/overrides.yaml +5 -0
  23. outputs/2026-06-09/20-37-55/train.log +0 -0
  24. outputs/2026-06-12/14-59-00/.hydra/config.yaml +1048 -0
  25. outputs/2026-06-12/14-59-00/.hydra/hydra.yaml +177 -0
  26. outputs/2026-06-12/14-59-00/train.log +0 -0
  27. outputs/2026-06-15/10-55-43/.hydra/config.yaml +1048 -0
  28. outputs/2026-06-15/10-55-43/.hydra/hydra.yaml +177 -0
  29. outputs/2026-06-15/10-55-43/.hydra/overrides.yaml +8 -0
  30. outputs/2026-06-15/10-56-06/.hydra/config.yaml +1048 -0
  31. outputs/2026-06-15/10-56-06/.hydra/hydra.yaml +177 -0
  32. outputs/2026-06-15/10-56-06/.hydra/overrides.yaml +8 -0
  33. outputs/2026-06-15/10-56-06/train.log +0 -0
  34. outputs/2026-06-15/17-29-15/.hydra/config.yaml +1048 -0
  35. outputs/2026-06-15/17-29-15/.hydra/hydra.yaml +177 -0
  36. outputs/2026-06-15/17-29-15/.hydra/overrides.yaml +8 -0
  37. outputs/2026-06-16/13-25-02/.hydra/hydra.yaml +177 -0
  38. outputs/2026-06-16/13-25-02/.hydra/overrides.yaml +8 -0
  39. outputs/2026-06-16/17-30-16/.hydra/config.yaml +1048 -0
  40. outputs/2026-06-16/17-30-16/.hydra/hydra.yaml +177 -0
  41. outputs/2026-06-16/17-30-16/.hydra/overrides.yaml +8 -0
  42. outputs/2026-06-16/17-30-16/train.log +0 -0
  43. outputs/2026-06-16/18-42-33/.hydra/config.yaml +1048 -0
  44. outputs/2026-06-16/18-42-33/.hydra/hydra.yaml +177 -0
  45. outputs/2026-06-16/18-42-33/.hydra/overrides.yaml +8 -0
  46. outputs/2026-06-16/18-42-33/train.log +0 -0
  47. outputs/2026-06-18/11-52-39/.hydra/config.yaml +1048 -0
  48. outputs/2026-06-18/11-52-39/.hydra/hydra.yaml +179 -0
  49. outputs/2026-06-18/11-52-39/.hydra/overrides.yaml +10 -0
  50. outputs/2026-06-18/11-52-39/train.log +0 -0
outputs/2026-06-01/23-08-51/.hydra/config.yaml ADDED
@@ -0,0 +1,1005 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_3b_baseline
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: 20
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: 2
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
+
828
+ Always output: <think> [brief constraint-based reasoning] </think> <answer>
829
+ [one placement] </answer>
830
+
831
+ The environment will provide feedback on valid/invalid moves and show conflicts
832
+ if any occur.
833
+
834
+ '
835
+ max_tokens: 150
836
+ parallel_friendly: false
837
+ max_workers: 32
838
+ env_config:
839
+ grid_size: 4
840
+ difficulty: easy
841
+ render_format: with_feedback
842
+ show_conflicts: false
843
+ show_valid_numbers: false
844
+ max_steps: 20
845
+ MediumSudoku:
846
+ env_type: sudoku
847
+ max_actions_per_traj: 30
848
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
849
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
850
+
851
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
852
+ shown as dots (.).
853
+
854
+ Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
855
+ or <answer>2,3,5</answer>
856
+
857
+ The environment will provide feedback on valid/invalid moves and show conflicts
858
+ if any occur.
859
+
860
+ '
861
+ max_tokens: 150
862
+ parallel_friendly: false
863
+ max_workers: 32
864
+ env_config:
865
+ grid_size: 9
866
+ difficulty: medium
867
+ render_format: with_feedback
868
+ show_conflicts: true
869
+ show_valid_numbers: true
870
+ max_steps: 81
871
+ SearchQA:
872
+ env_type: search
873
+ max_actions_per_traj: 10
874
+ env_instruction: "You are a search agent answering questions by searching for\
875
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
876
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
877
+ \ about the current situation. This reasoning process MUST be enclosed within\
878
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
879
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
880
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
881
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
882
+ \ Platt]</answer>\n"
883
+ max_tokens: 300
884
+ parallel_friendly: true
885
+ max_workers: 32
886
+ env_config:
887
+ max_steps: 10
888
+ max_search_results: 5
889
+ SearchQAMock:
890
+ env_type: search
891
+ max_actions_per_traj: 10
892
+ env_instruction: "You are a search agent answering questions by searching for\
893
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
894
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
895
+ \ about the current situation. This reasoning process MUST be enclosed within\
896
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
897
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
898
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
899
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
900
+ \ Platt]</answer>\n"
901
+ max_tokens: 300
902
+ parallel_friendly: true
903
+ max_workers: 32
904
+ env_config:
905
+ max_steps: 10
906
+ max_search_results: 5
907
+ mock_mode: true
908
+ game_2048:
909
+ env_type: game_2048
910
+ max_actions_per_traj: 700
911
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
912
+ by sliding Up, Right, Down, or Left.
913
+
914
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
915
+ a single action.
916
+
917
+ Example: <answer>Up</answer>
918
+
919
+ '
920
+ max_tokens: 8192
921
+ env_config: null
922
+ rubikscube:
923
+ env_type: rubikscube
924
+ max_actions_per_traj: 20
925
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
926
+ is to restore the cube so that each of the faces consists of a single, unique
927
+ color.
928
+
929
+ Available actions use standard Singmaster notation for face rotations: U, U'',
930
+ D, D'', L, L'', R, R'', F, F'', B, B''.
931
+
932
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
933
+
934
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
935
+ prime ('') means 90° counter-clockwise (e.g., "R''").
936
+
937
+ Respond with a sequence of actions separated by "||".
938
+
939
+ Example: <answer>U</answer>
940
+
941
+ '
942
+ max_tokens: 96
943
+ env_config:
944
+ scramble_depth: 1
945
+ max_steps: 20
946
+ render_mode: text
947
+ system:
948
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
949
+ seed:
950
+ train: 10000
951
+ val: 123
952
+ micro_batch_size_per_gpu: 1
953
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
954
+ ppo_mini_batch_size: 32
955
+ model_path: /mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
956
+ enable_response_mask: true
957
+ grpo_advantage_length_weight: false
958
+ lora:
959
+ rank: 0
960
+ alpha: 64
961
+ target_modules: all-linear
962
+ agent_proxy:
963
+ context_window_mode: full
964
+ max_context_window: -1
965
+ batch_adjust_mode: copy
966
+ max_turn: 20
967
+ action_sep: '||'
968
+ max_actions_per_turn: 3
969
+ use_turn_scores: false
970
+ enable_think: true
971
+ reward_normalization:
972
+ grouping: state
973
+ method: identity
974
+ collapse_detection:
975
+ compute_freq: 5
976
+ micro_batch_size: 128
977
+ first_turn_enabled: true
978
+ multi_turn_enabled: true
979
+ num_samples: 64
980
+ es_manager:
981
+ format_penalty: -0.1
982
+ train:
983
+ env_groups: 8
984
+ group_size: 16
985
+ env_configs:
986
+ tags:
987
+ - SimpleSudoku
988
+ n_groups:
989
+ - 8
990
+ val:
991
+ env_groups: 32
992
+ group_size: 16
993
+ env_configs:
994
+ tags:
995
+ - SimpleSudoku
996
+ n_groups:
997
+ - 32
998
+ ctx_manager:
999
+ generation:
1000
+ gen_config:
1001
+ response_length: ${actor_rollout_ref.rollout.response_length}
1002
+ temperature: ${actor_rollout_ref.rollout.temperature}
1003
+ top_p: ${actor_rollout_ref.rollout.top_p}
1004
+ top_k: ${actor_rollout_ref.rollout.top_k}
1005
+ kwargs: null
outputs/2026-06-07/23-18-01/.hydra/hydra.yaml ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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=200
119
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box2_withthink_sas
120
+ - trainer.experiment_name=sokoban_3b_box2_withthink_sas
121
+ job:
122
+ name: train
123
+ chdir: null
124
+ 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_box2_withthink_sas,trainer.experiment_name=sokoban_3b_box2_withthink_sas,trainer.total_training_steps=200
125
+ id: ???
126
+ num: ???
127
+ config_name: _2_sokoban
128
+ env_set: {}
129
+ env_copy: []
130
+ config:
131
+ override_dirname:
132
+ kv_sep: '='
133
+ item_sep: ','
134
+ exclude_keys: []
135
+ runtime:
136
+ version: 1.3.2
137
+ version_base: '1.3'
138
+ cwd: /mnt/general/wanghy/RAGEN_v2
139
+ config_sources:
140
+ - path: hydra.conf
141
+ schema: pkg
142
+ provider: hydra
143
+ - path: /mnt/general/wanghy/RAGEN_v2/config
144
+ schema: file
145
+ provider: main
146
+ - path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
147
+ schema: file
148
+ provider: command-line
149
+ - path: verl.trainer.config
150
+ schema: pkg
151
+ provider: hydra.searchpath in main
152
+ - path: ''
153
+ schema: structured
154
+ provider: schema
155
+ output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-06-07/23-18-01
156
+ choices:
157
+ reward_model: dp_reward_model
158
+ critic: dp_critic
159
+ critic/../engine@critic.model.fsdp_config: fsdp
160
+ critic/../optim@critic.optim: fsdp
161
+ model@actor_rollout_ref.model: hf_model
162
+ rollout@actor_rollout_ref.rollout: rollout
163
+ ref@actor_rollout_ref.ref: dp_ref
164
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
165
+ data: legacy_data
166
+ actor@actor_rollout_ref.actor: dp_actor
167
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
168
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
169
+ hydra/env: default
170
+ hydra/callbacks: null
171
+ hydra/job_logging: default
172
+ hydra/hydra_logging: default
173
+ hydra/hydra_help: default
174
+ hydra/help: default
175
+ hydra/sweeper: basic
176
+ hydra/launcher: basic
177
+ hydra/output: default
178
+ verbose: false
outputs/2026-06-09/00-36-11/.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
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
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=200
119
+ - trainer.n_gpus_per_node=8
120
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube1_withthink_sas
121
+ - custom_envs.rubikscube.env_config.scramble_depth=1
122
+ - trainer.experiment_name=rubikscube1_withthink_sas
123
+ job:
124
+ name: train
125
+ chdir: null
126
+ override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,custom_envs.rubikscube.env_config.scramble_depth=1,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube1_withthink_sas,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=rubikscube1_withthink_sas,trainer.n_gpus_per_node=8,trainer.total_training_steps=200
127
+ id: ???
128
+ num: ???
129
+ config_name: _10_rubikscube
130
+ env_set: {}
131
+ env_copy: []
132
+ config:
133
+ override_dirname:
134
+ kv_sep: '='
135
+ item_sep: ','
136
+ exclude_keys: []
137
+ runtime:
138
+ version: 1.3.2
139
+ version_base: '1.3'
140
+ cwd: /mnt/general/wanghy/RAGEN_v2
141
+ config_sources:
142
+ - path: hydra.conf
143
+ schema: pkg
144
+ provider: hydra
145
+ - path: /mnt/general/wanghy/RAGEN_v2/config
146
+ schema: file
147
+ provider: main
148
+ - path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
149
+ schema: file
150
+ provider: command-line
151
+ - path: ''
152
+ schema: structured
153
+ provider: schema
154
+ output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-06-09/00-36-11
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-06-09/02-32-07/.hydra/config.yaml ADDED
@@ -0,0 +1,1003 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 500
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: 200
479
+ project_name: ragen
480
+ experiment_name: rubikscube2_withthink_sas
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: 20
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: 2
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: 20
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: 2
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, for example: <answer>place 1 at
827
+ row 2 col 3</answer> 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: 10
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: 2
943
+ max_steps: 10
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/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_sas
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: 5
963
+ batch_adjust_mode: copy
964
+ max_turn: 25
965
+ action_sep: '||'
966
+ max_actions_per_turn: 4
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
+ - rubikscube
986
+ n_groups:
987
+ - 8
988
+ val:
989
+ env_groups: 512
990
+ group_size: 1
991
+ env_configs:
992
+ tags:
993
+ - rubikscube
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-06-09/02-32-07/.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
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
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=200
119
+ - trainer.n_gpus_per_node=8
120
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_sas
121
+ - custom_envs.rubikscube.env_config.scramble_depth=2
122
+ - trainer.experiment_name=rubikscube2_withthink_sas
123
+ job:
124
+ name: train
125
+ chdir: null
126
+ override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,custom_envs.rubikscube.env_config.scramble_depth=2,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_sas,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=rubikscube2_withthink_sas,trainer.n_gpus_per_node=8,trainer.total_training_steps=200
127
+ id: ???
128
+ num: ???
129
+ config_name: _10_rubikscube
130
+ env_set: {}
131
+ env_copy: []
132
+ config:
133
+ override_dirname:
134
+ kv_sep: '='
135
+ item_sep: ','
136
+ exclude_keys: []
137
+ runtime:
138
+ version: 1.3.2
139
+ version_base: '1.3'
140
+ cwd: /mnt/general/wanghy/RAGEN_v2
141
+ config_sources:
142
+ - path: hydra.conf
143
+ schema: pkg
144
+ provider: hydra
145
+ - path: /mnt/general/wanghy/RAGEN_v2/config
146
+ schema: file
147
+ provider: main
148
+ - path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
149
+ schema: file
150
+ provider: command-line
151
+ - path: ''
152
+ schema: structured
153
+ provider: schema
154
+ output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-06-09/02-32-07
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-06-09/02-32-07/.hydra/overrides.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
2
+ - actor_rollout_ref.rollout.rollout_filter_strategy=top_p
3
+ - actor_rollout_ref.rollout.rollout_filter_value=0.9
4
+ - trainer.total_training_steps=200
5
+ - trainer.n_gpus_per_node=8
6
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_sas
7
+ - custom_envs.rubikscube.env_config.scramble_depth=2
8
+ - trainer.experiment_name=rubikscube2_withthink_sas
outputs/2026-06-09/02-32-07/train.log ADDED
File without changes
outputs/2026-06-09/05-39-33/.hydra/config.yaml ADDED
@@ -0,0 +1,1003 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 500
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: 200
479
+ project_name: ragen
480
+ experiment_name: rubikscube3_withthink_sas
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: 20
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: 2
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: 20
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: 2
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, for example: <answer>place 1 at
827
+ row 2 col 3</answer> 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: 10
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: 3
943
+ max_steps: 10
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/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube3_withthink_sas
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: 5
963
+ batch_adjust_mode: copy
964
+ max_turn: 25
965
+ action_sep: '||'
966
+ max_actions_per_turn: 4
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
+ - rubikscube
986
+ n_groups:
987
+ - 8
988
+ val:
989
+ env_groups: 512
990
+ group_size: 1
991
+ env_configs:
992
+ tags:
993
+ - rubikscube
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-06-09/05-39-33/train.log ADDED
File without changes
outputs/2026-06-09/11-20-05/train.log ADDED
File without changes
outputs/2026-06-09/11-58-39/train.log ADDED
File without changes
outputs/2026-06-09/13-00-35/.hydra/overrides.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
2
+ - actor_rollout_ref.rollout.rollout_filter_strategy=top_p
3
+ - actor_rollout_ref.rollout.rollout_filter_value=0.9
4
+ - trainer.total_training_steps=200
5
+ - trainer.n_gpus_per_node=8
6
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube3_withthink_sas
7
+ - custom_envs.rubikscube.env_config.scramble_depth=3
8
+ - trainer.experiment_name=rubikscube3_withthink_sas
outputs/2026-06-09/13-00-35/train.log ADDED
File without changes
outputs/2026-06-09/16-00-04/.hydra/config.yaml ADDED
@@ -0,0 +1,1003 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 200
479
+ project_name: ragen
480
+ experiment_name: sudoku_3b_action1_baseline
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: 20
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: 2
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: 20
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: 2
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, for example: <answer>place 1 at
827
+ row 2 col 3</answer> 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: 10
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: 7
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-3B-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: 20
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
+ - SimpleSudoku
986
+ n_groups:
987
+ - 8
988
+ val:
989
+ env_groups: 32
990
+ group_size: 16
991
+ env_configs:
992
+ tags:
993
+ - SimpleSudoku
994
+ n_groups:
995
+ - 32
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-06-09/16-05-29/.hydra/config.yaml ADDED
@@ -0,0 +1,1048 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 200
479
+ project_name: ragen
480
+ experiment_name: sudoku_3b_action1_abstraction
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: 20
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: 2
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: 20
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: 2
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 a careful 4x4 Sudoku solver. Use these reusable abstractions
821
+ when reasoning:
822
+
823
+ 1. In <think>, explain the constraint logic behind the move, not just the final
824
+ placement. Mention which row, column, or 2x2 box makes the move safe or forced.
825
+
826
+ 2. Treat each move as a constraint-preserving placement: place a number only
827
+ if it does not already appear in the same row, column, or 2x2 box.
828
+
829
+ 3. First look for highly forced cells. If an empty cell has only one legal candidate
830
+ after checking its row, column, and box, fill it immediately and explain why
831
+ other numbers are excluded.
832
+
833
+ 4. If no cell is obviously forced, scan each row, column, and 2x2 box for missing
834
+ numbers. If a missing number can go in only one empty position within that unit,
835
+ place it there and state that unit-level reason.
836
+
837
+ 5. Prefer moves that reduce uncertainty and create new forced cells for the
838
+ next turn. A good move should make the remaining puzzle more constrained, not
839
+ more ambiguous.
840
+
841
+ 6. Solve incrementally: choose exactly one placement, explain it briefly in
842
+ <think>, then output that one move in <answer>.
843
+
844
+ 7. Never modify bracketed initial cells or already-filled cells. Only place
845
+ numbers into dots.
846
+
847
+ 8. Avoid exploratory guesses when a forced move exists. In this environment,
848
+ reliable progress usually comes from constraint propagation rather than trial-and-error.
849
+
850
+ 9. If a previous move was invalid or the board did not change, do not repeat
851
+ the same placement. Recompute legal candidates and explain the corrected constraint-consistent
852
+ choice.
853
+
854
+ 10. Use row, column, and box agreement as confidence: the strongest placements
855
+ are those supported by multiple constraints at once.
856
+
857
+ 11. Keep <think> concise but meaningful: identify the target cell, list or compare
858
+ its legal candidates, and give the decisive constraint.
859
+
860
+ 12. Output only the required XML-like format and choose valid Sudoku placements.
861
+
862
+
863
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column,
864
+ and 2x2 box contains the numbers 1-4 without repetition.
865
+
866
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
867
+ shown as dots (.).
868
+
869
+ Place numbers one at a time using the format: <answer>place 1 at row 2 col 3</answer>
870
+
871
+ Always output: <think> [brief constraint-based reasoning] </think> <answer>
872
+ [one placement] </answer>
873
+
874
+ The environment will provide feedback on valid/invalid moves and show conflicts
875
+ if any occur.
876
+
877
+ '
878
+ max_tokens: 150
879
+ parallel_friendly: false
880
+ max_workers: 32
881
+ env_config:
882
+ grid_size: 4
883
+ difficulty: easy
884
+ render_format: with_feedback
885
+ show_conflicts: false
886
+ show_valid_numbers: false
887
+ max_steps: 20
888
+ MediumSudoku:
889
+ env_type: sudoku
890
+ max_actions_per_traj: 30
891
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
892
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
893
+
894
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
895
+ shown as dots (.).
896
+
897
+ Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
898
+ or <answer>2,3,5</answer>
899
+
900
+ The environment will provide feedback on valid/invalid moves and show conflicts
901
+ if any occur.
902
+
903
+ '
904
+ max_tokens: 150
905
+ parallel_friendly: false
906
+ max_workers: 32
907
+ env_config:
908
+ grid_size: 9
909
+ difficulty: medium
910
+ render_format: with_feedback
911
+ show_conflicts: true
912
+ show_valid_numbers: true
913
+ max_steps: 81
914
+ SearchQA:
915
+ env_type: search
916
+ max_actions_per_traj: 10
917
+ env_instruction: "You are a search agent answering questions by searching for\
918
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
919
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
920
+ \ about the current situation. This reasoning process MUST be enclosed within\
921
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
922
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
923
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
924
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
925
+ \ Platt]</answer>\n"
926
+ max_tokens: 300
927
+ parallel_friendly: true
928
+ max_workers: 32
929
+ env_config:
930
+ max_steps: 10
931
+ max_search_results: 5
932
+ SearchQAMock:
933
+ env_type: search
934
+ max_actions_per_traj: 10
935
+ env_instruction: "You are a search agent answering questions by searching for\
936
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
937
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
938
+ \ about the current situation. This reasoning process MUST be enclosed within\
939
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
940
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
941
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
942
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
943
+ \ Platt]</answer>\n"
944
+ max_tokens: 300
945
+ parallel_friendly: true
946
+ max_workers: 32
947
+ env_config:
948
+ max_steps: 10
949
+ max_search_results: 5
950
+ mock_mode: true
951
+ game_2048:
952
+ env_type: game_2048
953
+ max_actions_per_traj: 700
954
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
955
+ by sliding Up, Right, Down, or Left.
956
+
957
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
958
+ a single action.
959
+
960
+ Example: <answer>Up</answer>
961
+
962
+ '
963
+ max_tokens: 8192
964
+ env_config: null
965
+ rubikscube:
966
+ env_type: rubikscube
967
+ max_actions_per_traj: 10
968
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
969
+ is to restore the cube so that each of the faces consists of a single, unique
970
+ color.
971
+
972
+ Available actions use standard Singmaster notation for face rotations: U, U'',
973
+ D, D'', L, L'', R, R'', F, F'', B, B''.
974
+
975
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
976
+
977
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
978
+ prime ('') means 90° counter-clockwise (e.g., "R''").
979
+
980
+ Respond with a sequence of actions separated by "||".
981
+
982
+ Example: <answer>U</answer>
983
+
984
+ '
985
+ max_tokens: 96
986
+ env_config:
987
+ scramble_depth: 1
988
+ max_steps: 7
989
+ render_mode: text
990
+ system:
991
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
992
+ seed:
993
+ train: 10000
994
+ val: 123
995
+ micro_batch_size_per_gpu: 1
996
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
997
+ ppo_mini_batch_size: 32
998
+ model_path: /mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
999
+ enable_response_mask: true
1000
+ grpo_advantage_length_weight: false
1001
+ lora:
1002
+ rank: 0
1003
+ alpha: 64
1004
+ target_modules: all-linear
1005
+ agent_proxy:
1006
+ context_window_mode: full
1007
+ max_context_window: -1
1008
+ batch_adjust_mode: copy
1009
+ max_turn: 20
1010
+ action_sep: '||'
1011
+ max_actions_per_turn: 1
1012
+ use_turn_scores: false
1013
+ enable_think: true
1014
+ reward_normalization:
1015
+ grouping: state
1016
+ method: identity
1017
+ collapse_detection:
1018
+ compute_freq: 5
1019
+ micro_batch_size: 128
1020
+ first_turn_enabled: true
1021
+ multi_turn_enabled: true
1022
+ num_samples: 64
1023
+ es_manager:
1024
+ format_penalty: -0.1
1025
+ train:
1026
+ env_groups: 8
1027
+ group_size: 16
1028
+ env_configs:
1029
+ tags:
1030
+ - SimpleSudoku
1031
+ n_groups:
1032
+ - 8
1033
+ val:
1034
+ env_groups: 32
1035
+ group_size: 16
1036
+ env_configs:
1037
+ tags:
1038
+ - SimpleSudoku
1039
+ n_groups:
1040
+ - 32
1041
+ ctx_manager:
1042
+ generation:
1043
+ gen_config:
1044
+ response_length: ${actor_rollout_ref.rollout.response_length}
1045
+ temperature: ${actor_rollout_ref.rollout.temperature}
1046
+ top_p: ${actor_rollout_ref.rollout.top_p}
1047
+ top_k: ${actor_rollout_ref.rollout.top_k}
1048
+ kwargs: null
outputs/2026-06-09/16-05-29/.hydra/hydra.yaml ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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=200
119
+ - model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
120
+ - trainer.experiment_name=sudoku_3b_action1_abstraction
121
+ job:
122
+ name: train
123
+ chdir: null
124
+ 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.experiment_name=sudoku_3b_action1_abstraction,trainer.total_training_steps=200
125
+ id: ???
126
+ num: ???
127
+ config_name: _8_sudoku
128
+ env_set: {}
129
+ env_copy: []
130
+ config:
131
+ override_dirname:
132
+ kv_sep: '='
133
+ item_sep: ','
134
+ exclude_keys: []
135
+ runtime:
136
+ version: 1.3.2
137
+ version_base: '1.3'
138
+ cwd: /mnt/general/wanghy/RAGEN_v2
139
+ config_sources:
140
+ - path: hydra.conf
141
+ schema: pkg
142
+ provider: hydra
143
+ - path: /mnt/general/wanghy/RAGEN_v2/config
144
+ schema: file
145
+ provider: main
146
+ - path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
147
+ schema: file
148
+ provider: command-line
149
+ - path: verl.trainer.config
150
+ schema: pkg
151
+ provider: hydra.searchpath in main
152
+ - path: ''
153
+ schema: structured
154
+ provider: schema
155
+ output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-06-09/16-05-29
156
+ choices:
157
+ reward_model: dp_reward_model
158
+ critic: dp_critic
159
+ critic/../engine@critic.model.fsdp_config: fsdp
160
+ critic/../optim@critic.optim: fsdp
161
+ model@actor_rollout_ref.model: hf_model
162
+ rollout@actor_rollout_ref.rollout: rollout
163
+ ref@actor_rollout_ref.ref: dp_ref
164
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
165
+ data: legacy_data
166
+ actor@actor_rollout_ref.actor: dp_actor
167
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
168
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
169
+ hydra/env: default
170
+ hydra/callbacks: null
171
+ hydra/job_logging: default
172
+ hydra/hydra_logging: default
173
+ hydra/hydra_help: default
174
+ hydra/help: default
175
+ hydra/sweeper: basic
176
+ hydra/launcher: basic
177
+ hydra/output: default
178
+ verbose: false
outputs/2026-06-09/16-05-29/.hydra/overrides.yaml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
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=200
4
+ - model_path=/mnt/general/share/model/Qwen/Qwen2.5-3B-Instruct
5
+ - trainer.experiment_name=sudoku_3b_action1_abstraction
outputs/2026-06-09/17-01-43/.hydra/config.yaml ADDED
@@ -0,0 +1,1048 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 200
479
+ project_name: ragen
480
+ experiment_name: sokoban_3b_box1_withthink_sa
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: 20
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: 2
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: 20
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 a careful 4x4 Sudoku solver. Use these reusable abstractions
821
+ when reasoning:
822
+
823
+ 1. In <think>, explain the constraint logic behind the move, not just the final
824
+ placement. Mention which row, column, or 2x2 box makes the move safe or forced.
825
+
826
+ 2. Treat each move as a constraint-preserving placement: place a number only
827
+ if it does not already appear in the same row, column, or 2x2 box.
828
+
829
+ 3. First look for highly forced cells. If an empty cell has only one legal candidate
830
+ after checking its row, column, and box, fill it immediately and explain why
831
+ other numbers are excluded.
832
+
833
+ 4. If no cell is obviously forced, scan each row, column, and 2x2 box for missing
834
+ numbers. If a missing number can go in only one empty position within that unit,
835
+ place it there and state that unit-level reason.
836
+
837
+ 5. Prefer moves that reduce uncertainty and create new forced cells for the
838
+ next turn. A good move should make the remaining puzzle more constrained, not
839
+ more ambiguous.
840
+
841
+ 6. Solve incrementally: choose exactly one placement, explain it briefly in
842
+ <think>, then output that one move in <answer>.
843
+
844
+ 7. Never modify bracketed initial cells or already-filled cells. Only place
845
+ numbers into dots.
846
+
847
+ 8. Avoid exploratory guesses when a forced move exists. In this environment,
848
+ reliable progress usually comes from constraint propagation rather than trial-and-error.
849
+
850
+ 9. If a previous move was invalid or the board did not change, do not repeat
851
+ the same placement. Recompute legal candidates and explain the corrected constraint-consistent
852
+ choice.
853
+
854
+ 10. Use row, column, and box agreement as confidence: the strongest placements
855
+ are those supported by multiple constraints at once.
856
+
857
+ 11. Keep <think> concise but meaningful: identify the target cell, list or compare
858
+ its legal candidates, and give the decisive constraint.
859
+
860
+ 12. Output only the required XML-like format and choose valid Sudoku placements.
861
+
862
+
863
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column,
864
+ and 2x2 box contains the numbers 1-4 without repetition.
865
+
866
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
867
+ shown as dots (.).
868
+
869
+ Place numbers one at a time using the format: <answer>place 1 at row 2 col 3</answer>
870
+
871
+ Always output: <think> [brief constraint-based reasoning] </think> <answer>
872
+ [one placement] </answer>
873
+
874
+ The environment will provide feedback on valid/invalid moves and show conflicts
875
+ if any occur.
876
+
877
+ '
878
+ max_tokens: 150
879
+ parallel_friendly: false
880
+ max_workers: 32
881
+ env_config:
882
+ grid_size: 4
883
+ difficulty: easy
884
+ render_format: with_feedback
885
+ show_conflicts: false
886
+ show_valid_numbers: false
887
+ max_steps: 20
888
+ MediumSudoku:
889
+ env_type: sudoku
890
+ max_actions_per_traj: 30
891
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
892
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
893
+
894
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
895
+ shown as dots (.).
896
+
897
+ Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
898
+ or <answer>2,3,5</answer>
899
+
900
+ The environment will provide feedback on valid/invalid moves and show conflicts
901
+ if any occur.
902
+
903
+ '
904
+ max_tokens: 150
905
+ parallel_friendly: false
906
+ max_workers: 32
907
+ env_config:
908
+ grid_size: 9
909
+ difficulty: medium
910
+ render_format: with_feedback
911
+ show_conflicts: true
912
+ show_valid_numbers: true
913
+ max_steps: 81
914
+ SearchQA:
915
+ env_type: search
916
+ max_actions_per_traj: 10
917
+ env_instruction: "You are a search agent answering questions by searching for\
918
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
919
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
920
+ \ about the current situation. This reasoning process MUST be enclosed within\
921
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
922
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
923
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
924
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
925
+ \ Platt]</answer>\n"
926
+ max_tokens: 300
927
+ parallel_friendly: true
928
+ max_workers: 32
929
+ env_config:
930
+ max_steps: 10
931
+ max_search_results: 5
932
+ SearchQAMock:
933
+ env_type: search
934
+ max_actions_per_traj: 10
935
+ env_instruction: "You are a search agent answering questions by searching for\
936
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
937
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
938
+ \ about the current situation. This reasoning process MUST be enclosed within\
939
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
940
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
941
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
942
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
943
+ \ Platt]</answer>\n"
944
+ max_tokens: 300
945
+ parallel_friendly: true
946
+ max_workers: 32
947
+ env_config:
948
+ max_steps: 10
949
+ max_search_results: 5
950
+ mock_mode: true
951
+ game_2048:
952
+ env_type: game_2048
953
+ max_actions_per_traj: 700
954
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
955
+ by sliding Up, Right, Down, or Left.
956
+
957
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
958
+ a single action.
959
+
960
+ Example: <answer>Up</answer>
961
+
962
+ '
963
+ max_tokens: 8192
964
+ env_config: null
965
+ rubikscube:
966
+ env_type: rubikscube
967
+ max_actions_per_traj: 10
968
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
969
+ is to restore the cube so that each of the faces consists of a single, unique
970
+ color.
971
+
972
+ Available actions use standard Singmaster notation for face rotations: U, U'',
973
+ D, D'', L, L'', R, R'', F, F'', B, B''.
974
+
975
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
976
+
977
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
978
+ prime ('') means 90° counter-clockwise (e.g., "R''").
979
+
980
+ Respond with a sequence of actions separated by "||".
981
+
982
+ Example: <answer>U</answer>
983
+
984
+ '
985
+ max_tokens: 96
986
+ env_config:
987
+ scramble_depth: 1
988
+ max_steps: 7
989
+ render_mode: text
990
+ system:
991
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
992
+ seed:
993
+ train: 10000
994
+ val: 123
995
+ micro_batch_size_per_gpu: 1
996
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
997
+ ppo_mini_batch_size: 32
998
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box2_withthink_sa
999
+ enable_response_mask: true
1000
+ grpo_advantage_length_weight: false
1001
+ lora:
1002
+ rank: 0
1003
+ alpha: 64
1004
+ target_modules: all-linear
1005
+ agent_proxy:
1006
+ context_window_mode: full
1007
+ max_context_window: -1
1008
+ batch_adjust_mode: copy
1009
+ max_turn: 20
1010
+ action_sep: '||'
1011
+ max_actions_per_turn: 1
1012
+ use_turn_scores: false
1013
+ enable_think: true
1014
+ reward_normalization:
1015
+ grouping: state
1016
+ method: identity
1017
+ collapse_detection:
1018
+ compute_freq: 5
1019
+ micro_batch_size: 128
1020
+ first_turn_enabled: true
1021
+ multi_turn_enabled: true
1022
+ num_samples: 64
1023
+ es_manager:
1024
+ format_penalty: -0.1
1025
+ train:
1026
+ env_groups: 8
1027
+ group_size: 16
1028
+ env_configs:
1029
+ tags:
1030
+ - CoordSokoban
1031
+ n_groups:
1032
+ - 8
1033
+ val:
1034
+ env_groups: 512
1035
+ group_size: 1
1036
+ env_configs:
1037
+ tags:
1038
+ - CoordSokoban
1039
+ n_groups:
1040
+ - 512
1041
+ ctx_manager:
1042
+ generation:
1043
+ gen_config:
1044
+ response_length: ${actor_rollout_ref.rollout.response_length}
1045
+ temperature: ${actor_rollout_ref.rollout.temperature}
1046
+ top_p: ${actor_rollout_ref.rollout.top_p}
1047
+ top_k: ${actor_rollout_ref.rollout.top_k}
1048
+ kwargs: null
outputs/2026-06-09/17-01-43/.hydra/overrides.yaml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
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=200
4
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box2_withthink_sa
5
+ - trainer.experiment_name=sokoban_3b_box1_withthink_sa
outputs/2026-06-09/17-01-43/train.log ADDED
File without changes
outputs/2026-06-09/20-37-55/.hydra/hydra.yaml ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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=200
119
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box2_withthink_sas
120
+ - trainer.experiment_name=sokoban_3b_box1_withthink_sas
121
+ job:
122
+ name: train
123
+ chdir: null
124
+ 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_box2_withthink_sas,trainer.experiment_name=sokoban_3b_box1_withthink_sas,trainer.total_training_steps=200
125
+ id: ???
126
+ num: ???
127
+ config_name: _2_sokoban
128
+ env_set: {}
129
+ env_copy: []
130
+ config:
131
+ override_dirname:
132
+ kv_sep: '='
133
+ item_sep: ','
134
+ exclude_keys: []
135
+ runtime:
136
+ version: 1.3.2
137
+ version_base: '1.3'
138
+ cwd: /mnt/general/wanghy/RAGEN_v2
139
+ config_sources:
140
+ - path: hydra.conf
141
+ schema: pkg
142
+ provider: hydra
143
+ - path: /mnt/general/wanghy/RAGEN_v2/config
144
+ schema: file
145
+ provider: main
146
+ - path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
147
+ schema: file
148
+ provider: command-line
149
+ - path: verl.trainer.config
150
+ schema: pkg
151
+ provider: hydra.searchpath in main
152
+ - path: ''
153
+ schema: structured
154
+ provider: schema
155
+ output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-06-09/20-37-55
156
+ choices:
157
+ reward_model: dp_reward_model
158
+ critic: dp_critic
159
+ critic/../engine@critic.model.fsdp_config: fsdp
160
+ critic/../optim@critic.optim: fsdp
161
+ model@actor_rollout_ref.model: hf_model
162
+ rollout@actor_rollout_ref.rollout: rollout
163
+ ref@actor_rollout_ref.ref: dp_ref
164
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
165
+ data: legacy_data
166
+ actor@actor_rollout_ref.actor: dp_actor
167
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
168
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
169
+ hydra/env: default
170
+ hydra/callbacks: null
171
+ hydra/job_logging: default
172
+ hydra/hydra_logging: default
173
+ hydra/hydra_help: default
174
+ hydra/help: default
175
+ hydra/sweeper: basic
176
+ hydra/launcher: basic
177
+ hydra/output: default
178
+ verbose: false
outputs/2026-06-09/20-37-55/.hydra/overrides.yaml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
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=200
4
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box2_withthink_sas
5
+ - trainer.experiment_name=sokoban_3b_box1_withthink_sas
outputs/2026-06-09/20-37-55/train.log ADDED
File without changes
outputs/2026-06-12/14-59-00/.hydra/config.yaml ADDED
@@ -0,0 +1,1048 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 500
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: 200
479
+ project_name: ragen
480
+ experiment_name: rubikscube2_withthink_fulltrajc_sa
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: 20
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: 2
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: 20
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 a careful 4x4 Sudoku solver. Use these reusable abstractions
821
+ when reasoning:
822
+
823
+ 1. In <think>, explain the constraint logic behind the move, not just the final
824
+ placement. Mention which row, column, or 2x2 box makes the move safe or forced.
825
+
826
+ 2. Treat each move as a constraint-preserving placement: place a number only
827
+ if it does not already appear in the same row, column, or 2x2 box.
828
+
829
+ 3. First look for highly forced cells. If an empty cell has only one legal candidate
830
+ after checking its row, column, and box, fill it immediately and explain why
831
+ other numbers are excluded.
832
+
833
+ 4. If no cell is obviously forced, scan each row, column, and 2x2 box for missing
834
+ numbers. If a missing number can go in only one empty position within that unit,
835
+ place it there and state that unit-level reason.
836
+
837
+ 5. Prefer moves that reduce uncertainty and create new forced cells for the
838
+ next turn. A good move should make the remaining puzzle more constrained, not
839
+ more ambiguous.
840
+
841
+ 6. Solve incrementally: choose exactly one placement, explain it briefly in
842
+ <think>, then output that one move in <answer>.
843
+
844
+ 7. Never modify bracketed initial cells or already-filled cells. Only place
845
+ numbers into dots.
846
+
847
+ 8. Avoid exploratory guesses when a forced move exists. In this environment,
848
+ reliable progress usually comes from constraint propagation rather than trial-and-error.
849
+
850
+ 9. If a previous move was invalid or the board did not change, do not repeat
851
+ the same placement. Recompute legal candidates and explain the corrected constraint-consistent
852
+ choice.
853
+
854
+ 10. Use row, column, and box agreement as confidence: the strongest placements
855
+ are those supported by multiple constraints at once.
856
+
857
+ 11. Keep <think> concise but meaningful: identify the target cell, list or compare
858
+ its legal candidates, and give the decisive constraint.
859
+
860
+ 12. Output only the required XML-like format and choose valid Sudoku placements.
861
+
862
+
863
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column,
864
+ and 2x2 box contains the numbers 1-4 without repetition.
865
+
866
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
867
+ shown as dots (.).
868
+
869
+ Place numbers one at a time using the format: <answer>place 1 at row 2 col 3</answer>
870
+
871
+ Always output: <think> [brief constraint-based reasoning] </think> <answer>
872
+ [one placement] </answer>
873
+
874
+ The environment will provide feedback on valid/invalid moves and show conflicts
875
+ if any occur.
876
+
877
+ '
878
+ max_tokens: 150
879
+ parallel_friendly: false
880
+ max_workers: 32
881
+ env_config:
882
+ grid_size: 4
883
+ difficulty: easy
884
+ render_format: with_feedback
885
+ show_conflicts: false
886
+ show_valid_numbers: false
887
+ max_steps: 20
888
+ MediumSudoku:
889
+ env_type: sudoku
890
+ max_actions_per_traj: 30
891
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
892
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
893
+
894
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
895
+ shown as dots (.).
896
+
897
+ Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
898
+ or <answer>2,3,5</answer>
899
+
900
+ The environment will provide feedback on valid/invalid moves and show conflicts
901
+ if any occur.
902
+
903
+ '
904
+ max_tokens: 150
905
+ parallel_friendly: false
906
+ max_workers: 32
907
+ env_config:
908
+ grid_size: 9
909
+ difficulty: medium
910
+ render_format: with_feedback
911
+ show_conflicts: true
912
+ show_valid_numbers: true
913
+ max_steps: 81
914
+ SearchQA:
915
+ env_type: search
916
+ max_actions_per_traj: 10
917
+ env_instruction: "You are a search agent answering questions by searching for\
918
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
919
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
920
+ \ about the current situation. This reasoning process MUST be enclosed within\
921
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
922
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
923
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
924
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
925
+ \ Platt]</answer>\n"
926
+ max_tokens: 300
927
+ parallel_friendly: true
928
+ max_workers: 32
929
+ env_config:
930
+ max_steps: 10
931
+ max_search_results: 5
932
+ SearchQAMock:
933
+ env_type: search
934
+ max_actions_per_traj: 10
935
+ env_instruction: "You are a search agent answering questions by searching for\
936
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
937
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
938
+ \ about the current situation. This reasoning process MUST be enclosed within\
939
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
940
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
941
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
942
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
943
+ \ Platt]</answer>\n"
944
+ max_tokens: 300
945
+ parallel_friendly: true
946
+ max_workers: 32
947
+ env_config:
948
+ max_steps: 10
949
+ max_search_results: 5
950
+ mock_mode: true
951
+ game_2048:
952
+ env_type: game_2048
953
+ max_actions_per_traj: 700
954
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
955
+ by sliding Up, Right, Down, or Left.
956
+
957
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
958
+ a single action.
959
+
960
+ Example: <answer>Up</answer>
961
+
962
+ '
963
+ max_tokens: 8192
964
+ env_config: null
965
+ rubikscube:
966
+ env_type: rubikscube
967
+ max_actions_per_traj: 10
968
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
969
+ is to restore the cube so that each of the faces consists of a single, unique
970
+ color.
971
+
972
+ Available actions use standard Singmaster notation for face rotations: U, U'',
973
+ D, D'', L, L'', R, R'', F, F'', B, B''.
974
+
975
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
976
+
977
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
978
+ prime ('') means 90° counter-clockwise (e.g., "R''").
979
+
980
+ Respond with a sequence of actions separated by "||".
981
+
982
+ Example: <answer>U</answer>
983
+
984
+ '
985
+ max_tokens: 96
986
+ env_config:
987
+ scramble_depth: 2
988
+ max_steps: 7
989
+ render_mode: text
990
+ system:
991
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
992
+ seed:
993
+ train: 10000
994
+ val: 123
995
+ micro_batch_size_per_gpu: 1
996
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
997
+ ppo_mini_batch_size: 32
998
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sa
999
+ enable_response_mask: true
1000
+ grpo_advantage_length_weight: false
1001
+ lora:
1002
+ rank: 0
1003
+ alpha: 64
1004
+ target_modules: all-linear
1005
+ agent_proxy:
1006
+ context_window_mode: full
1007
+ max_context_window: 5
1008
+ batch_adjust_mode: copy
1009
+ max_turn: 25
1010
+ action_sep: '||'
1011
+ max_actions_per_turn: 4
1012
+ use_turn_scores: false
1013
+ enable_think: true
1014
+ reward_normalization:
1015
+ grouping: state
1016
+ method: identity
1017
+ collapse_detection:
1018
+ compute_freq: 5
1019
+ micro_batch_size: 128
1020
+ first_turn_enabled: true
1021
+ multi_turn_enabled: true
1022
+ num_samples: 64
1023
+ es_manager:
1024
+ format_penalty: -0.1
1025
+ train:
1026
+ env_groups: 8
1027
+ group_size: 16
1028
+ env_configs:
1029
+ tags:
1030
+ - rubikscube
1031
+ n_groups:
1032
+ - 8
1033
+ val:
1034
+ env_groups: 512
1035
+ group_size: 1
1036
+ env_configs:
1037
+ tags:
1038
+ - rubikscube
1039
+ n_groups:
1040
+ - 512
1041
+ ctx_manager:
1042
+ generation:
1043
+ gen_config:
1044
+ response_length: ${actor_rollout_ref.rollout.response_length}
1045
+ temperature: ${actor_rollout_ref.rollout.temperature}
1046
+ top_p: ${actor_rollout_ref.rollout.top_p}
1047
+ top_k: ${actor_rollout_ref.rollout.top_k}
1048
+ kwargs: null
outputs/2026-06-12/14-59-00/.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
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
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=200
119
+ - trainer.n_gpus_per_node=8
120
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sa
121
+ - custom_envs.rubikscube.env_config.scramble_depth=2
122
+ - trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa
123
+ job:
124
+ name: train
125
+ chdir: null
126
+ override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,custom_envs.rubikscube.env_config.scramble_depth=2,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sa,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa,trainer.n_gpus_per_node=8,trainer.total_training_steps=200
127
+ id: ???
128
+ num: ???
129
+ config_name: _10_rubikscube
130
+ env_set: {}
131
+ env_copy: []
132
+ config:
133
+ override_dirname:
134
+ kv_sep: '='
135
+ item_sep: ','
136
+ exclude_keys: []
137
+ runtime:
138
+ version: 1.3.2
139
+ version_base: '1.3'
140
+ cwd: /mnt/general/wanghy/RAGEN_v2
141
+ config_sources:
142
+ - path: hydra.conf
143
+ schema: pkg
144
+ provider: hydra
145
+ - path: /mnt/general/wanghy/RAGEN_v2/config
146
+ schema: file
147
+ provider: main
148
+ - path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
149
+ schema: file
150
+ provider: command-line
151
+ - path: ''
152
+ schema: structured
153
+ provider: schema
154
+ output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-06-12/14-59-00
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-06-12/14-59-00/train.log ADDED
File without changes
outputs/2026-06-15/10-55-43/.hydra/config.yaml ADDED
@@ -0,0 +1,1048 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 500
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: 200
479
+ project_name: ragen
480
+ experiment_name: rubikscube2_withthink_fulltrajc_sa
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: 20
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: 2
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: 20
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 a careful 4x4 Sudoku solver. Use these reusable abstractions
821
+ when reasoning:
822
+
823
+ 1. In <think>, explain the constraint logic behind the move, not just the final
824
+ placement. Mention which row, column, or 2x2 box makes the move safe or forced.
825
+
826
+ 2. Treat each move as a constraint-preserving placement: place a number only
827
+ if it does not already appear in the same row, column, or 2x2 box.
828
+
829
+ 3. First look for highly forced cells. If an empty cell has only one legal candidate
830
+ after checking its row, column, and box, fill it immediately and explain why
831
+ other numbers are excluded.
832
+
833
+ 4. If no cell is obviously forced, scan each row, column, and 2x2 box for missing
834
+ numbers. If a missing number can go in only one empty position within that unit,
835
+ place it there and state that unit-level reason.
836
+
837
+ 5. Prefer moves that reduce uncertainty and create new forced cells for the
838
+ next turn. A good move should make the remaining puzzle more constrained, not
839
+ more ambiguous.
840
+
841
+ 6. Solve incrementally: choose exactly one placement, explain it briefly in
842
+ <think>, then output that one move in <answer>.
843
+
844
+ 7. Never modify bracketed initial cells or already-filled cells. Only place
845
+ numbers into dots.
846
+
847
+ 8. Avoid exploratory guesses when a forced move exists. In this environment,
848
+ reliable progress usually comes from constraint propagation rather than trial-and-error.
849
+
850
+ 9. If a previous move was invalid or the board did not change, do not repeat
851
+ the same placement. Recompute legal candidates and explain the corrected constraint-consistent
852
+ choice.
853
+
854
+ 10. Use row, column, and box agreement as confidence: the strongest placements
855
+ are those supported by multiple constraints at once.
856
+
857
+ 11. Keep <think> concise but meaningful: identify the target cell, list or compare
858
+ its legal candidates, and give the decisive constraint.
859
+
860
+ 12. Output only the required XML-like format and choose valid Sudoku placements.
861
+
862
+
863
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column,
864
+ and 2x2 box contains the numbers 1-4 without repetition.
865
+
866
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
867
+ shown as dots (.).
868
+
869
+ Place numbers one at a time using the format: <answer>place 1 at row 2 col 3</answer>
870
+
871
+ Always output: <think> [brief constraint-based reasoning] </think> <answer>
872
+ [one placement] </answer>
873
+
874
+ The environment will provide feedback on valid/invalid moves and show conflicts
875
+ if any occur.
876
+
877
+ '
878
+ max_tokens: 150
879
+ parallel_friendly: false
880
+ max_workers: 32
881
+ env_config:
882
+ grid_size: 4
883
+ difficulty: easy
884
+ render_format: with_feedback
885
+ show_conflicts: false
886
+ show_valid_numbers: false
887
+ max_steps: 20
888
+ MediumSudoku:
889
+ env_type: sudoku
890
+ max_actions_per_traj: 30
891
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
892
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
893
+
894
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
895
+ shown as dots (.).
896
+
897
+ Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
898
+ or <answer>2,3,5</answer>
899
+
900
+ The environment will provide feedback on valid/invalid moves and show conflicts
901
+ if any occur.
902
+
903
+ '
904
+ max_tokens: 150
905
+ parallel_friendly: false
906
+ max_workers: 32
907
+ env_config:
908
+ grid_size: 9
909
+ difficulty: medium
910
+ render_format: with_feedback
911
+ show_conflicts: true
912
+ show_valid_numbers: true
913
+ max_steps: 81
914
+ SearchQA:
915
+ env_type: search
916
+ max_actions_per_traj: 10
917
+ env_instruction: "You are a search agent answering questions by searching for\
918
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
919
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
920
+ \ about the current situation. This reasoning process MUST be enclosed within\
921
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
922
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
923
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
924
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
925
+ \ Platt]</answer>\n"
926
+ max_tokens: 300
927
+ parallel_friendly: true
928
+ max_workers: 32
929
+ env_config:
930
+ max_steps: 10
931
+ max_search_results: 5
932
+ SearchQAMock:
933
+ env_type: search
934
+ max_actions_per_traj: 10
935
+ env_instruction: "You are a search agent answering questions by searching for\
936
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
937
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
938
+ \ about the current situation. This reasoning process MUST be enclosed within\
939
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
940
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
941
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
942
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
943
+ \ Platt]</answer>\n"
944
+ max_tokens: 300
945
+ parallel_friendly: true
946
+ max_workers: 32
947
+ env_config:
948
+ max_steps: 10
949
+ max_search_results: 5
950
+ mock_mode: true
951
+ game_2048:
952
+ env_type: game_2048
953
+ max_actions_per_traj: 700
954
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
955
+ by sliding Up, Right, Down, or Left.
956
+
957
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
958
+ a single action.
959
+
960
+ Example: <answer>Up</answer>
961
+
962
+ '
963
+ max_tokens: 8192
964
+ env_config: null
965
+ rubikscube:
966
+ env_type: rubikscube
967
+ max_actions_per_traj: 10
968
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
969
+ is to restore the cube so that each of the faces consists of a single, unique
970
+ color.
971
+
972
+ Available actions use standard Singmaster notation for face rotations: U, U'',
973
+ D, D'', L, L'', R, R'', F, F'', B, B''.
974
+
975
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
976
+
977
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
978
+ prime ('') means 90° counter-clockwise (e.g., "R''").
979
+
980
+ Respond with a sequence of actions separated by "||".
981
+
982
+ Example: <answer>U</answer>
983
+
984
+ '
985
+ max_tokens: 96
986
+ env_config:
987
+ scramble_depth: 2
988
+ max_steps: 7
989
+ render_mode: text
990
+ system:
991
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
992
+ seed:
993
+ train: 10000
994
+ val: 123
995
+ micro_batch_size_per_gpu: 1
996
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
997
+ ppo_mini_batch_size: 32
998
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sa
999
+ enable_response_mask: true
1000
+ grpo_advantage_length_weight: false
1001
+ lora:
1002
+ rank: 0
1003
+ alpha: 64
1004
+ target_modules: all-linear
1005
+ agent_proxy:
1006
+ context_window_mode: full
1007
+ max_context_window: 5
1008
+ batch_adjust_mode: copy
1009
+ max_turn: 25
1010
+ action_sep: '||'
1011
+ max_actions_per_turn: 4
1012
+ use_turn_scores: false
1013
+ enable_think: true
1014
+ reward_normalization:
1015
+ grouping: state
1016
+ method: identity
1017
+ collapse_detection:
1018
+ compute_freq: 5
1019
+ micro_batch_size: 128
1020
+ first_turn_enabled: true
1021
+ multi_turn_enabled: true
1022
+ num_samples: 64
1023
+ es_manager:
1024
+ format_penalty: -0.1
1025
+ train:
1026
+ env_groups: 8
1027
+ group_size: 16
1028
+ env_configs:
1029
+ tags:
1030
+ - rubikscube
1031
+ n_groups:
1032
+ - 8
1033
+ val:
1034
+ env_groups: 512
1035
+ group_size: 1
1036
+ env_configs:
1037
+ tags:
1038
+ - rubikscube
1039
+ n_groups:
1040
+ - 512
1041
+ ctx_manager:
1042
+ generation:
1043
+ gen_config:
1044
+ response_length: ${actor_rollout_ref.rollout.response_length}
1045
+ temperature: ${actor_rollout_ref.rollout.temperature}
1046
+ top_p: ${actor_rollout_ref.rollout.top_p}
1047
+ top_k: ${actor_rollout_ref.rollout.top_k}
1048
+ kwargs: null
outputs/2026-06-15/10-55-43/.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
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
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=200
119
+ - trainer.n_gpus_per_node=8
120
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sa
121
+ - custom_envs.rubikscube.env_config.scramble_depth=2
122
+ - trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa
123
+ job:
124
+ name: train
125
+ chdir: null
126
+ override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,custom_envs.rubikscube.env_config.scramble_depth=2,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sa,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa,trainer.n_gpus_per_node=8,trainer.total_training_steps=200
127
+ id: ???
128
+ num: ???
129
+ config_name: _10_rubikscube
130
+ env_set: {}
131
+ env_copy: []
132
+ config:
133
+ override_dirname:
134
+ kv_sep: '='
135
+ item_sep: ','
136
+ exclude_keys: []
137
+ runtime:
138
+ version: 1.3.2
139
+ version_base: '1.3'
140
+ cwd: /mnt/general/wanghy/RAGEN_v2
141
+ config_sources:
142
+ - path: hydra.conf
143
+ schema: pkg
144
+ provider: hydra
145
+ - path: /mnt/general/wanghy/RAGEN_v2/config
146
+ schema: file
147
+ provider: main
148
+ - path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
149
+ schema: file
150
+ provider: command-line
151
+ - path: ''
152
+ schema: structured
153
+ provider: schema
154
+ output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-06-15/10-55-43
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-06-15/10-55-43/.hydra/overrides.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
2
+ - actor_rollout_ref.rollout.rollout_filter_strategy=top_p
3
+ - actor_rollout_ref.rollout.rollout_filter_value=0.9
4
+ - trainer.total_training_steps=200
5
+ - trainer.n_gpus_per_node=8
6
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sa
7
+ - custom_envs.rubikscube.env_config.scramble_depth=2
8
+ - trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa
outputs/2026-06-15/10-56-06/.hydra/config.yaml ADDED
@@ -0,0 +1,1048 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 500
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: 200
479
+ project_name: ragen
480
+ experiment_name: rubikscube3_withthink_fulltrajc_sa
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: 20
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: 2
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: 20
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 a careful 4x4 Sudoku solver. Use these reusable abstractions
821
+ when reasoning:
822
+
823
+ 1. In <think>, explain the constraint logic behind the move, not just the final
824
+ placement. Mention which row, column, or 2x2 box makes the move safe or forced.
825
+
826
+ 2. Treat each move as a constraint-preserving placement: place a number only
827
+ if it does not already appear in the same row, column, or 2x2 box.
828
+
829
+ 3. First look for highly forced cells. If an empty cell has only one legal candidate
830
+ after checking its row, column, and box, fill it immediately and explain why
831
+ other numbers are excluded.
832
+
833
+ 4. If no cell is obviously forced, scan each row, column, and 2x2 box for missing
834
+ numbers. If a missing number can go in only one empty position within that unit,
835
+ place it there and state that unit-level reason.
836
+
837
+ 5. Prefer moves that reduce uncertainty and create new forced cells for the
838
+ next turn. A good move should make the remaining puzzle more constrained, not
839
+ more ambiguous.
840
+
841
+ 6. Solve incrementally: choose exactly one placement, explain it briefly in
842
+ <think>, then output that one move in <answer>.
843
+
844
+ 7. Never modify bracketed initial cells or already-filled cells. Only place
845
+ numbers into dots.
846
+
847
+ 8. Avoid exploratory guesses when a forced move exists. In this environment,
848
+ reliable progress usually comes from constraint propagation rather than trial-and-error.
849
+
850
+ 9. If a previous move was invalid or the board did not change, do not repeat
851
+ the same placement. Recompute legal candidates and explain the corrected constraint-consistent
852
+ choice.
853
+
854
+ 10. Use row, column, and box agreement as confidence: the strongest placements
855
+ are those supported by multiple constraints at once.
856
+
857
+ 11. Keep <think> concise but meaningful: identify the target cell, list or compare
858
+ its legal candidates, and give the decisive constraint.
859
+
860
+ 12. Output only the required XML-like format and choose valid Sudoku placements.
861
+
862
+
863
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column,
864
+ and 2x2 box contains the numbers 1-4 without repetition.
865
+
866
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
867
+ shown as dots (.).
868
+
869
+ Place numbers one at a time using the format: <answer>place 1 at row 2 col 3</answer>
870
+
871
+ Always output: <think> [brief constraint-based reasoning] </think> <answer>
872
+ [one placement] </answer>
873
+
874
+ The environment will provide feedback on valid/invalid moves and show conflicts
875
+ if any occur.
876
+
877
+ '
878
+ max_tokens: 150
879
+ parallel_friendly: false
880
+ max_workers: 32
881
+ env_config:
882
+ grid_size: 4
883
+ difficulty: easy
884
+ render_format: with_feedback
885
+ show_conflicts: false
886
+ show_valid_numbers: false
887
+ max_steps: 20
888
+ MediumSudoku:
889
+ env_type: sudoku
890
+ max_actions_per_traj: 30
891
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
892
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
893
+
894
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
895
+ shown as dots (.).
896
+
897
+ Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
898
+ or <answer>2,3,5</answer>
899
+
900
+ The environment will provide feedback on valid/invalid moves and show conflicts
901
+ if any occur.
902
+
903
+ '
904
+ max_tokens: 150
905
+ parallel_friendly: false
906
+ max_workers: 32
907
+ env_config:
908
+ grid_size: 9
909
+ difficulty: medium
910
+ render_format: with_feedback
911
+ show_conflicts: true
912
+ show_valid_numbers: true
913
+ max_steps: 81
914
+ SearchQA:
915
+ env_type: search
916
+ max_actions_per_traj: 10
917
+ env_instruction: "You are a search agent answering questions by searching for\
918
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
919
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
920
+ \ about the current situation. This reasoning process MUST be enclosed within\
921
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
922
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
923
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
924
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
925
+ \ Platt]</answer>\n"
926
+ max_tokens: 300
927
+ parallel_friendly: true
928
+ max_workers: 32
929
+ env_config:
930
+ max_steps: 10
931
+ max_search_results: 5
932
+ SearchQAMock:
933
+ env_type: search
934
+ max_actions_per_traj: 10
935
+ env_instruction: "You are a search agent answering questions by searching for\
936
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
937
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
938
+ \ about the current situation. This reasoning process MUST be enclosed within\
939
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
940
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
941
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
942
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
943
+ \ Platt]</answer>\n"
944
+ max_tokens: 300
945
+ parallel_friendly: true
946
+ max_workers: 32
947
+ env_config:
948
+ max_steps: 10
949
+ max_search_results: 5
950
+ mock_mode: true
951
+ game_2048:
952
+ env_type: game_2048
953
+ max_actions_per_traj: 700
954
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
955
+ by sliding Up, Right, Down, or Left.
956
+
957
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
958
+ a single action.
959
+
960
+ Example: <answer>Up</answer>
961
+
962
+ '
963
+ max_tokens: 8192
964
+ env_config: null
965
+ rubikscube:
966
+ env_type: rubikscube
967
+ max_actions_per_traj: 10
968
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
969
+ is to restore the cube so that each of the faces consists of a single, unique
970
+ color.
971
+
972
+ Available actions use standard Singmaster notation for face rotations: U, U'',
973
+ D, D'', L, L'', R, R'', F, F'', B, B''.
974
+
975
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
976
+
977
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
978
+ prime ('') means 90° counter-clockwise (e.g., "R''").
979
+
980
+ Respond with a sequence of actions separated by "||".
981
+
982
+ Example: <answer>U</answer>
983
+
984
+ '
985
+ max_tokens: 96
986
+ env_config:
987
+ scramble_depth: 3
988
+ max_steps: 7
989
+ render_mode: text
990
+ system:
991
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
992
+ seed:
993
+ train: 10000
994
+ val: 123
995
+ micro_batch_size_per_gpu: 1
996
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
997
+ ppo_mini_batch_size: 32
998
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube3_withthink_fulltraj_sa
999
+ enable_response_mask: true
1000
+ grpo_advantage_length_weight: false
1001
+ lora:
1002
+ rank: 0
1003
+ alpha: 64
1004
+ target_modules: all-linear
1005
+ agent_proxy:
1006
+ context_window_mode: full
1007
+ max_context_window: 5
1008
+ batch_adjust_mode: copy
1009
+ max_turn: 25
1010
+ action_sep: '||'
1011
+ max_actions_per_turn: 4
1012
+ use_turn_scores: false
1013
+ enable_think: true
1014
+ reward_normalization:
1015
+ grouping: state
1016
+ method: identity
1017
+ collapse_detection:
1018
+ compute_freq: 5
1019
+ micro_batch_size: 128
1020
+ first_turn_enabled: true
1021
+ multi_turn_enabled: true
1022
+ num_samples: 64
1023
+ es_manager:
1024
+ format_penalty: -0.1
1025
+ train:
1026
+ env_groups: 8
1027
+ group_size: 16
1028
+ env_configs:
1029
+ tags:
1030
+ - rubikscube
1031
+ n_groups:
1032
+ - 8
1033
+ val:
1034
+ env_groups: 512
1035
+ group_size: 1
1036
+ env_configs:
1037
+ tags:
1038
+ - rubikscube
1039
+ n_groups:
1040
+ - 512
1041
+ ctx_manager:
1042
+ generation:
1043
+ gen_config:
1044
+ response_length: ${actor_rollout_ref.rollout.response_length}
1045
+ temperature: ${actor_rollout_ref.rollout.temperature}
1046
+ top_p: ${actor_rollout_ref.rollout.top_p}
1047
+ top_k: ${actor_rollout_ref.rollout.top_k}
1048
+ kwargs: null
outputs/2026-06-15/10-56-06/.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
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
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=200
119
+ - trainer.n_gpus_per_node=8
120
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube3_withthink_fulltraj_sa
121
+ - custom_envs.rubikscube.env_config.scramble_depth=3
122
+ - trainer.experiment_name=rubikscube3_withthink_fulltrajc_sa
123
+ job:
124
+ name: train
125
+ chdir: null
126
+ override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,custom_envs.rubikscube.env_config.scramble_depth=3,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube3_withthink_fulltraj_sa,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=rubikscube3_withthink_fulltrajc_sa,trainer.n_gpus_per_node=8,trainer.total_training_steps=200
127
+ id: ???
128
+ num: ???
129
+ config_name: _10_rubikscube
130
+ env_set: {}
131
+ env_copy: []
132
+ config:
133
+ override_dirname:
134
+ kv_sep: '='
135
+ item_sep: ','
136
+ exclude_keys: []
137
+ runtime:
138
+ version: 1.3.2
139
+ version_base: '1.3'
140
+ cwd: /mnt/general/wanghy/RAGEN_v2
141
+ config_sources:
142
+ - path: hydra.conf
143
+ schema: pkg
144
+ provider: hydra
145
+ - path: /mnt/general/wanghy/RAGEN_v2/config
146
+ schema: file
147
+ provider: main
148
+ - path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
149
+ schema: file
150
+ provider: command-line
151
+ - path: ''
152
+ schema: structured
153
+ provider: schema
154
+ output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-06-15/10-56-06
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-06-15/10-56-06/.hydra/overrides.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
2
+ - actor_rollout_ref.rollout.rollout_filter_strategy=top_p
3
+ - actor_rollout_ref.rollout.rollout_filter_value=0.9
4
+ - trainer.total_training_steps=200
5
+ - trainer.n_gpus_per_node=8
6
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube3_withthink_fulltraj_sa
7
+ - custom_envs.rubikscube.env_config.scramble_depth=3
8
+ - trainer.experiment_name=rubikscube3_withthink_fulltrajc_sa
outputs/2026-06-15/10-56-06/train.log ADDED
File without changes
outputs/2026-06-15/17-29-15/.hydra/config.yaml ADDED
@@ -0,0 +1,1048 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 500
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: 200
479
+ project_name: ragen
480
+ experiment_name: rubikscube2_withthink_fulltrajc_sa
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: 20
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: 2
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: 20
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 a careful 4x4 Sudoku solver. Use these reusable abstractions
821
+ when reasoning:
822
+
823
+ 1. In <think>, explain the constraint logic behind the move, not just the final
824
+ placement. Mention which row, column, or 2x2 box makes the move safe or forced.
825
+
826
+ 2. Treat each move as a constraint-preserving placement: place a number only
827
+ if it does not already appear in the same row, column, or 2x2 box.
828
+
829
+ 3. First look for highly forced cells. If an empty cell has only one legal candidate
830
+ after checking its row, column, and box, fill it immediately and explain why
831
+ other numbers are excluded.
832
+
833
+ 4. If no cell is obviously forced, scan each row, column, and 2x2 box for missing
834
+ numbers. If a missing number can go in only one empty position within that unit,
835
+ place it there and state that unit-level reason.
836
+
837
+ 5. Prefer moves that reduce uncertainty and create new forced cells for the
838
+ next turn. A good move should make the remaining puzzle more constrained, not
839
+ more ambiguous.
840
+
841
+ 6. Solve incrementally: choose exactly one placement, explain it briefly in
842
+ <think>, then output that one move in <answer>.
843
+
844
+ 7. Never modify bracketed initial cells or already-filled cells. Only place
845
+ numbers into dots.
846
+
847
+ 8. Avoid exploratory guesses when a forced move exists. In this environment,
848
+ reliable progress usually comes from constraint propagation rather than trial-and-error.
849
+
850
+ 9. If a previous move was invalid or the board did not change, do not repeat
851
+ the same placement. Recompute legal candidates and explain the corrected constraint-consistent
852
+ choice.
853
+
854
+ 10. Use row, column, and box agreement as confidence: the strongest placements
855
+ are those supported by multiple constraints at once.
856
+
857
+ 11. Keep <think> concise but meaningful: identify the target cell, list or compare
858
+ its legal candidates, and give the decisive constraint.
859
+
860
+ 12. Output only the required XML-like format and choose valid Sudoku placements.
861
+
862
+
863
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column,
864
+ and 2x2 box contains the numbers 1-4 without repetition.
865
+
866
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
867
+ shown as dots (.).
868
+
869
+ Place numbers one at a time using the format: <answer>place 1 at row 2 col 3</answer>
870
+
871
+ Always output: <think> [brief constraint-based reasoning] </think> <answer>
872
+ [one placement] </answer>
873
+
874
+ The environment will provide feedback on valid/invalid moves and show conflicts
875
+ if any occur.
876
+
877
+ '
878
+ max_tokens: 150
879
+ parallel_friendly: false
880
+ max_workers: 32
881
+ env_config:
882
+ grid_size: 4
883
+ difficulty: easy
884
+ render_format: with_feedback
885
+ show_conflicts: false
886
+ show_valid_numbers: false
887
+ max_steps: 20
888
+ MediumSudoku:
889
+ env_type: sudoku
890
+ max_actions_per_traj: 30
891
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
892
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
893
+
894
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
895
+ shown as dots (.).
896
+
897
+ Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
898
+ or <answer>2,3,5</answer>
899
+
900
+ The environment will provide feedback on valid/invalid moves and show conflicts
901
+ if any occur.
902
+
903
+ '
904
+ max_tokens: 150
905
+ parallel_friendly: false
906
+ max_workers: 32
907
+ env_config:
908
+ grid_size: 9
909
+ difficulty: medium
910
+ render_format: with_feedback
911
+ show_conflicts: true
912
+ show_valid_numbers: true
913
+ max_steps: 81
914
+ SearchQA:
915
+ env_type: search
916
+ max_actions_per_traj: 10
917
+ env_instruction: "You are a search agent answering questions by searching for\
918
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
919
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
920
+ \ about the current situation. This reasoning process MUST be enclosed within\
921
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
922
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
923
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
924
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
925
+ \ Platt]</answer>\n"
926
+ max_tokens: 300
927
+ parallel_friendly: true
928
+ max_workers: 32
929
+ env_config:
930
+ max_steps: 10
931
+ max_search_results: 5
932
+ SearchQAMock:
933
+ env_type: search
934
+ max_actions_per_traj: 10
935
+ env_instruction: "You are a search agent answering questions by searching for\
936
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
937
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
938
+ \ about the current situation. This reasoning process MUST be enclosed within\
939
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
940
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
941
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
942
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
943
+ \ Platt]</answer>\n"
944
+ max_tokens: 300
945
+ parallel_friendly: true
946
+ max_workers: 32
947
+ env_config:
948
+ max_steps: 10
949
+ max_search_results: 5
950
+ mock_mode: true
951
+ game_2048:
952
+ env_type: game_2048
953
+ max_actions_per_traj: 700
954
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
955
+ by sliding Up, Right, Down, or Left.
956
+
957
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
958
+ a single action.
959
+
960
+ Example: <answer>Up</answer>
961
+
962
+ '
963
+ max_tokens: 8192
964
+ env_config: null
965
+ rubikscube:
966
+ env_type: rubikscube
967
+ max_actions_per_traj: 10
968
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
969
+ is to restore the cube so that each of the faces consists of a single, unique
970
+ color.
971
+
972
+ Available actions use standard Singmaster notation for face rotations: U, U'',
973
+ D, D'', L, L'', R, R'', F, F'', B, B''.
974
+
975
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
976
+
977
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
978
+ prime ('') means 90° counter-clockwise (e.g., "R''").
979
+
980
+ Respond with a sequence of actions separated by "||".
981
+
982
+ Example: <answer>U</answer>
983
+
984
+ '
985
+ max_tokens: 96
986
+ env_config:
987
+ scramble_depth: 2
988
+ max_steps: 7
989
+ render_mode: text
990
+ system:
991
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
992
+ seed:
993
+ train: 10000
994
+ val: 123
995
+ micro_batch_size_per_gpu: 1
996
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
997
+ ppo_mini_batch_size: 32
998
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box2_withthink_fulltracj_sa
999
+ enable_response_mask: true
1000
+ grpo_advantage_length_weight: false
1001
+ lora:
1002
+ rank: 0
1003
+ alpha: 64
1004
+ target_modules: all-linear
1005
+ agent_proxy:
1006
+ context_window_mode: full
1007
+ max_context_window: 5
1008
+ batch_adjust_mode: copy
1009
+ max_turn: 25
1010
+ action_sep: '||'
1011
+ max_actions_per_turn: 4
1012
+ use_turn_scores: false
1013
+ enable_think: true
1014
+ reward_normalization:
1015
+ grouping: state
1016
+ method: identity
1017
+ collapse_detection:
1018
+ compute_freq: 5
1019
+ micro_batch_size: 128
1020
+ first_turn_enabled: true
1021
+ multi_turn_enabled: true
1022
+ num_samples: 64
1023
+ es_manager:
1024
+ format_penalty: -0.1
1025
+ train:
1026
+ env_groups: 8
1027
+ group_size: 16
1028
+ env_configs:
1029
+ tags:
1030
+ - rubikscube
1031
+ n_groups:
1032
+ - 8
1033
+ val:
1034
+ env_groups: 512
1035
+ group_size: 1
1036
+ env_configs:
1037
+ tags:
1038
+ - rubikscube
1039
+ n_groups:
1040
+ - 512
1041
+ ctx_manager:
1042
+ generation:
1043
+ gen_config:
1044
+ response_length: ${actor_rollout_ref.rollout.response_length}
1045
+ temperature: ${actor_rollout_ref.rollout.temperature}
1046
+ top_p: ${actor_rollout_ref.rollout.top_p}
1047
+ top_k: ${actor_rollout_ref.rollout.top_k}
1048
+ kwargs: null
outputs/2026-06-15/17-29-15/.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
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
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=200
119
+ - trainer.n_gpus_per_node=8
120
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box2_withthink_fulltracj_sa
121
+ - custom_envs.rubikscube.env_config.scramble_depth=2
122
+ - trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa
123
+ job:
124
+ name: train
125
+ chdir: null
126
+ override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,custom_envs.rubikscube.env_config.scramble_depth=2,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box2_withthink_fulltracj_sa,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa,trainer.n_gpus_per_node=8,trainer.total_training_steps=200
127
+ id: ???
128
+ num: ???
129
+ config_name: _10_rubikscube
130
+ env_set: {}
131
+ env_copy: []
132
+ config:
133
+ override_dirname:
134
+ kv_sep: '='
135
+ item_sep: ','
136
+ exclude_keys: []
137
+ runtime:
138
+ version: 1.3.2
139
+ version_base: '1.3'
140
+ cwd: /mnt/general/wanghy/RAGEN_v2
141
+ config_sources:
142
+ - path: hydra.conf
143
+ schema: pkg
144
+ provider: hydra
145
+ - path: /mnt/general/wanghy/RAGEN_v2/config
146
+ schema: file
147
+ provider: main
148
+ - path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
149
+ schema: file
150
+ provider: command-line
151
+ - path: ''
152
+ schema: structured
153
+ provider: schema
154
+ output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-06-15/17-29-15
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-06-15/17-29-15/.hydra/overrides.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
2
+ - actor_rollout_ref.rollout.rollout_filter_strategy=top_p
3
+ - actor_rollout_ref.rollout.rollout_filter_value=0.9
4
+ - trainer.total_training_steps=200
5
+ - trainer.n_gpus_per_node=8
6
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box2_withthink_fulltracj_sa
7
+ - custom_envs.rubikscube.env_config.scramble_depth=2
8
+ - trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa
outputs/2026-06-16/13-25-02/.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
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
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=200
119
+ - trainer.n_gpus_per_node=8
120
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box2_withthink_fulltracj_sa
121
+ - custom_envs.rubikscube.env_config.scramble_depth=2
122
+ - trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa
123
+ job:
124
+ name: train
125
+ chdir: null
126
+ override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,custom_envs.rubikscube.env_config.scramble_depth=2,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box2_withthink_fulltracj_sa,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa,trainer.n_gpus_per_node=8,trainer.total_training_steps=200
127
+ id: ???
128
+ num: ???
129
+ config_name: _10_rubikscube
130
+ env_set: {}
131
+ env_copy: []
132
+ config:
133
+ override_dirname:
134
+ kv_sep: '='
135
+ item_sep: ','
136
+ exclude_keys: []
137
+ runtime:
138
+ version: 1.3.2
139
+ version_base: '1.3'
140
+ cwd: /mnt/general/wanghy/RAGEN_v2
141
+ config_sources:
142
+ - path: hydra.conf
143
+ schema: pkg
144
+ provider: hydra
145
+ - path: /mnt/general/wanghy/RAGEN_v2/config
146
+ schema: file
147
+ provider: main
148
+ - path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
149
+ schema: file
150
+ provider: command-line
151
+ - path: ''
152
+ schema: structured
153
+ provider: schema
154
+ output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-06-16/13-25-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-06-16/13-25-02/.hydra/overrides.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
2
+ - actor_rollout_ref.rollout.rollout_filter_strategy=top_p
3
+ - actor_rollout_ref.rollout.rollout_filter_value=0.9
4
+ - trainer.total_training_steps=200
5
+ - trainer.n_gpus_per_node=8
6
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sokoban_box2_withthink_fulltracj_sa
7
+ - custom_envs.rubikscube.env_config.scramble_depth=2
8
+ - trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa
outputs/2026-06-16/17-30-16/.hydra/config.yaml ADDED
@@ -0,0 +1,1048 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 500
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: 200
479
+ project_name: ragen
480
+ experiment_name: rubikscube2_withthink_fulltrajc_sa
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: 20
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: 2
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: 20
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 a careful 4x4 Sudoku solver. Use these reusable abstractions
821
+ when reasoning:
822
+
823
+ 1. In <think>, explain the constraint logic behind the move, not just the final
824
+ placement. Mention which row, column, or 2x2 box makes the move safe or forced.
825
+
826
+ 2. Treat each move as a constraint-preserving placement: place a number only
827
+ if it does not already appear in the same row, column, or 2x2 box.
828
+
829
+ 3. First look for highly forced cells. If an empty cell has only one legal candidate
830
+ after checking its row, column, and box, fill it immediately and explain why
831
+ other numbers are excluded.
832
+
833
+ 4. If no cell is obviously forced, scan each row, column, and 2x2 box for missing
834
+ numbers. If a missing number can go in only one empty position within that unit,
835
+ place it there and state that unit-level reason.
836
+
837
+ 5. Prefer moves that reduce uncertainty and create new forced cells for the
838
+ next turn. A good move should make the remaining puzzle more constrained, not
839
+ more ambiguous.
840
+
841
+ 6. Solve incrementally: choose exactly one placement, explain it briefly in
842
+ <think>, then output that one move in <answer>.
843
+
844
+ 7. Never modify bracketed initial cells or already-filled cells. Only place
845
+ numbers into dots.
846
+
847
+ 8. Avoid exploratory guesses when a forced move exists. In this environment,
848
+ reliable progress usually comes from constraint propagation rather than trial-and-error.
849
+
850
+ 9. If a previous move was invalid or the board did not change, do not repeat
851
+ the same placement. Recompute legal candidates and explain the corrected constraint-consistent
852
+ choice.
853
+
854
+ 10. Use row, column, and box agreement as confidence: the strongest placements
855
+ are those supported by multiple constraints at once.
856
+
857
+ 11. Keep <think> concise but meaningful: identify the target cell, list or compare
858
+ its legal candidates, and give the decisive constraint.
859
+
860
+ 12. Output only the required XML-like format and choose valid Sudoku placements.
861
+
862
+
863
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column,
864
+ and 2x2 box contains the numbers 1-4 without repetition.
865
+
866
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
867
+ shown as dots (.).
868
+
869
+ Place numbers one at a time using the format: <answer>place 1 at row 2 col 3</answer>
870
+
871
+ Always output: <think> [brief constraint-based reasoning] </think> <answer>
872
+ [one placement] </answer>
873
+
874
+ The environment will provide feedback on valid/invalid moves and show conflicts
875
+ if any occur.
876
+
877
+ '
878
+ max_tokens: 150
879
+ parallel_friendly: false
880
+ max_workers: 32
881
+ env_config:
882
+ grid_size: 4
883
+ difficulty: easy
884
+ render_format: with_feedback
885
+ show_conflicts: false
886
+ show_valid_numbers: false
887
+ max_steps: 20
888
+ MediumSudoku:
889
+ env_type: sudoku
890
+ max_actions_per_traj: 30
891
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
892
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
893
+
894
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
895
+ shown as dots (.).
896
+
897
+ Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
898
+ or <answer>2,3,5</answer>
899
+
900
+ The environment will provide feedback on valid/invalid moves and show conflicts
901
+ if any occur.
902
+
903
+ '
904
+ max_tokens: 150
905
+ parallel_friendly: false
906
+ max_workers: 32
907
+ env_config:
908
+ grid_size: 9
909
+ difficulty: medium
910
+ render_format: with_feedback
911
+ show_conflicts: true
912
+ show_valid_numbers: true
913
+ max_steps: 81
914
+ SearchQA:
915
+ env_type: search
916
+ max_actions_per_traj: 10
917
+ env_instruction: "You are a search agent answering questions by searching for\
918
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
919
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
920
+ \ about the current situation. This reasoning process MUST be enclosed within\
921
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
922
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
923
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
924
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
925
+ \ Platt]</answer>\n"
926
+ max_tokens: 300
927
+ parallel_friendly: true
928
+ max_workers: 32
929
+ env_config:
930
+ max_steps: 10
931
+ max_search_results: 5
932
+ SearchQAMock:
933
+ env_type: search
934
+ max_actions_per_traj: 10
935
+ env_instruction: "You are a search agent answering questions by searching for\
936
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
937
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
938
+ \ about the current situation. This reasoning process MUST be enclosed within\
939
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
940
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
941
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
942
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
943
+ \ Platt]</answer>\n"
944
+ max_tokens: 300
945
+ parallel_friendly: true
946
+ max_workers: 32
947
+ env_config:
948
+ max_steps: 10
949
+ max_search_results: 5
950
+ mock_mode: true
951
+ game_2048:
952
+ env_type: game_2048
953
+ max_actions_per_traj: 700
954
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
955
+ by sliding Up, Right, Down, or Left.
956
+
957
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
958
+ a single action.
959
+
960
+ Example: <answer>Up</answer>
961
+
962
+ '
963
+ max_tokens: 8192
964
+ env_config: null
965
+ rubikscube:
966
+ env_type: rubikscube
967
+ max_actions_per_traj: 10
968
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
969
+ is to restore the cube so that each of the faces consists of a single, unique
970
+ color.
971
+
972
+ Available actions use standard Singmaster notation for face rotations: U, U'',
973
+ D, D'', L, L'', R, R'', F, F'', B, B''.
974
+
975
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
976
+
977
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
978
+ prime ('') means 90° counter-clockwise (e.g., "R''").
979
+
980
+ Respond with a sequence of actions separated by "||".
981
+
982
+ Example: <answer>U</answer>
983
+
984
+ '
985
+ max_tokens: 96
986
+ env_config:
987
+ scramble_depth: 2
988
+ max_steps: 7
989
+ render_mode: text
990
+ system:
991
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
992
+ seed:
993
+ train: 10000
994
+ val: 123
995
+ micro_batch_size_per_gpu: 1
996
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
997
+ ppo_mini_batch_size: 32
998
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sas
999
+ enable_response_mask: true
1000
+ grpo_advantage_length_weight: false
1001
+ lora:
1002
+ rank: 0
1003
+ alpha: 64
1004
+ target_modules: all-linear
1005
+ agent_proxy:
1006
+ context_window_mode: full
1007
+ max_context_window: 5
1008
+ batch_adjust_mode: copy
1009
+ max_turn: 10
1010
+ action_sep: '||'
1011
+ max_actions_per_turn: 4
1012
+ use_turn_scores: false
1013
+ enable_think: true
1014
+ reward_normalization:
1015
+ grouping: state
1016
+ method: identity
1017
+ collapse_detection:
1018
+ compute_freq: 5
1019
+ micro_batch_size: 128
1020
+ first_turn_enabled: true
1021
+ multi_turn_enabled: true
1022
+ num_samples: 64
1023
+ es_manager:
1024
+ format_penalty: -0.1
1025
+ train:
1026
+ env_groups: 8
1027
+ group_size: 16
1028
+ env_configs:
1029
+ tags:
1030
+ - rubikscube
1031
+ n_groups:
1032
+ - 8
1033
+ val:
1034
+ env_groups: 512
1035
+ group_size: 1
1036
+ env_configs:
1037
+ tags:
1038
+ - rubikscube
1039
+ n_groups:
1040
+ - 512
1041
+ ctx_manager:
1042
+ generation:
1043
+ gen_config:
1044
+ response_length: ${actor_rollout_ref.rollout.response_length}
1045
+ temperature: ${actor_rollout_ref.rollout.temperature}
1046
+ top_p: ${actor_rollout_ref.rollout.top_p}
1047
+ top_k: ${actor_rollout_ref.rollout.top_k}
1048
+ kwargs: null
outputs/2026-06-16/17-30-16/.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
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
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=200
119
+ - trainer.n_gpus_per_node=8
120
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sas
121
+ - custom_envs.rubikscube.env_config.scramble_depth=2
122
+ - trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa
123
+ job:
124
+ name: train
125
+ chdir: null
126
+ override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,custom_envs.rubikscube.env_config.scramble_depth=2,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sas,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa,trainer.n_gpus_per_node=8,trainer.total_training_steps=200
127
+ id: ???
128
+ num: ???
129
+ config_name: _10_rubikscube
130
+ env_set: {}
131
+ env_copy: []
132
+ config:
133
+ override_dirname:
134
+ kv_sep: '='
135
+ item_sep: ','
136
+ exclude_keys: []
137
+ runtime:
138
+ version: 1.3.2
139
+ version_base: '1.3'
140
+ cwd: /mnt/general/wanghy/RAGEN_v2
141
+ config_sources:
142
+ - path: hydra.conf
143
+ schema: pkg
144
+ provider: hydra
145
+ - path: /mnt/general/wanghy/RAGEN_v2/config
146
+ schema: file
147
+ provider: main
148
+ - path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
149
+ schema: file
150
+ provider: command-line
151
+ - path: ''
152
+ schema: structured
153
+ provider: schema
154
+ output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-06-16/17-30-16
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-06-16/17-30-16/.hydra/overrides.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
2
+ - actor_rollout_ref.rollout.rollout_filter_strategy=top_p
3
+ - actor_rollout_ref.rollout.rollout_filter_value=0.9
4
+ - trainer.total_training_steps=200
5
+ - trainer.n_gpus_per_node=8
6
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sas
7
+ - custom_envs.rubikscube.env_config.scramble_depth=2
8
+ - trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa
outputs/2026-06-16/17-30-16/train.log ADDED
File without changes
outputs/2026-06-16/18-42-33/.hydra/config.yaml ADDED
@@ -0,0 +1,1048 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 500
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: 200
479
+ project_name: ragen
480
+ experiment_name: rubikscube2_withthink_fulltrajc_sa
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: 20
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: 2
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: 20
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 a careful 4x4 Sudoku solver. Use these reusable abstractions
821
+ when reasoning:
822
+
823
+ 1. In <think>, explain the constraint logic behind the move, not just the final
824
+ placement. Mention which row, column, or 2x2 box makes the move safe or forced.
825
+
826
+ 2. Treat each move as a constraint-preserving placement: place a number only
827
+ if it does not already appear in the same row, column, or 2x2 box.
828
+
829
+ 3. First look for highly forced cells. If an empty cell has only one legal candidate
830
+ after checking its row, column, and box, fill it immediately and explain why
831
+ other numbers are excluded.
832
+
833
+ 4. If no cell is obviously forced, scan each row, column, and 2x2 box for missing
834
+ numbers. If a missing number can go in only one empty position within that unit,
835
+ place it there and state that unit-level reason.
836
+
837
+ 5. Prefer moves that reduce uncertainty and create new forced cells for the
838
+ next turn. A good move should make the remaining puzzle more constrained, not
839
+ more ambiguous.
840
+
841
+ 6. Solve incrementally: choose exactly one placement, explain it briefly in
842
+ <think>, then output that one move in <answer>.
843
+
844
+ 7. Never modify bracketed initial cells or already-filled cells. Only place
845
+ numbers into dots.
846
+
847
+ 8. Avoid exploratory guesses when a forced move exists. In this environment,
848
+ reliable progress usually comes from constraint propagation rather than trial-and-error.
849
+
850
+ 9. If a previous move was invalid or the board did not change, do not repeat
851
+ the same placement. Recompute legal candidates and explain the corrected constraint-consistent
852
+ choice.
853
+
854
+ 10. Use row, column, and box agreement as confidence: the strongest placements
855
+ are those supported by multiple constraints at once.
856
+
857
+ 11. Keep <think> concise but meaningful: identify the target cell, list or compare
858
+ its legal candidates, and give the decisive constraint.
859
+
860
+ 12. Output only the required XML-like format and choose valid Sudoku placements.
861
+
862
+
863
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column,
864
+ and 2x2 box contains the numbers 1-4 without repetition.
865
+
866
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
867
+ shown as dots (.).
868
+
869
+ Place numbers one at a time using the format: <answer>place 1 at row 2 col 3</answer>
870
+
871
+ Always output: <think> [brief constraint-based reasoning] </think> <answer>
872
+ [one placement] </answer>
873
+
874
+ The environment will provide feedback on valid/invalid moves and show conflicts
875
+ if any occur.
876
+
877
+ '
878
+ max_tokens: 150
879
+ parallel_friendly: false
880
+ max_workers: 32
881
+ env_config:
882
+ grid_size: 4
883
+ difficulty: easy
884
+ render_format: with_feedback
885
+ show_conflicts: false
886
+ show_valid_numbers: false
887
+ max_steps: 20
888
+ MediumSudoku:
889
+ env_type: sudoku
890
+ max_actions_per_traj: 30
891
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
892
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
893
+
894
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
895
+ shown as dots (.).
896
+
897
+ Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
898
+ or <answer>2,3,5</answer>
899
+
900
+ The environment will provide feedback on valid/invalid moves and show conflicts
901
+ if any occur.
902
+
903
+ '
904
+ max_tokens: 150
905
+ parallel_friendly: false
906
+ max_workers: 32
907
+ env_config:
908
+ grid_size: 9
909
+ difficulty: medium
910
+ render_format: with_feedback
911
+ show_conflicts: true
912
+ show_valid_numbers: true
913
+ max_steps: 81
914
+ SearchQA:
915
+ env_type: search
916
+ max_actions_per_traj: 10
917
+ env_instruction: "You are a search agent answering questions by searching for\
918
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
919
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
920
+ \ about the current situation. This reasoning process MUST be enclosed within\
921
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
922
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
923
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
924
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
925
+ \ Platt]</answer>\n"
926
+ max_tokens: 300
927
+ parallel_friendly: true
928
+ max_workers: 32
929
+ env_config:
930
+ max_steps: 10
931
+ max_search_results: 5
932
+ SearchQAMock:
933
+ env_type: search
934
+ max_actions_per_traj: 10
935
+ env_instruction: "You are a search agent answering questions by searching for\
936
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
937
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
938
+ \ about the current situation. This reasoning process MUST be enclosed within\
939
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
940
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
941
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
942
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
943
+ \ Platt]</answer>\n"
944
+ max_tokens: 300
945
+ parallel_friendly: true
946
+ max_workers: 32
947
+ env_config:
948
+ max_steps: 10
949
+ max_search_results: 5
950
+ mock_mode: true
951
+ game_2048:
952
+ env_type: game_2048
953
+ max_actions_per_traj: 700
954
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
955
+ by sliding Up, Right, Down, or Left.
956
+
957
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
958
+ a single action.
959
+
960
+ Example: <answer>Up</answer>
961
+
962
+ '
963
+ max_tokens: 8192
964
+ env_config: null
965
+ rubikscube:
966
+ env_type: rubikscube
967
+ max_actions_per_traj: 10
968
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
969
+ is to restore the cube so that each of the faces consists of a single, unique
970
+ color.
971
+
972
+ Available actions use standard Singmaster notation for face rotations: U, U'',
973
+ D, D'', L, L'', R, R'', F, F'', B, B''.
974
+
975
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
976
+
977
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
978
+ prime ('') means 90° counter-clockwise (e.g., "R''").
979
+
980
+ Respond with a sequence of actions separated by "||".
981
+
982
+ Example: <answer>U</answer>
983
+
984
+ '
985
+ max_tokens: 96
986
+ env_config:
987
+ scramble_depth: 2
988
+ max_steps: 7
989
+ render_mode: text
990
+ system:
991
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
992
+ seed:
993
+ train: 10000
994
+ val: 123
995
+ micro_batch_size_per_gpu: 1
996
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
997
+ ppo_mini_batch_size: 32
998
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sas
999
+ enable_response_mask: true
1000
+ grpo_advantage_length_weight: false
1001
+ lora:
1002
+ rank: 0
1003
+ alpha: 64
1004
+ target_modules: all-linear
1005
+ agent_proxy:
1006
+ context_window_mode: full
1007
+ max_context_window: 5
1008
+ batch_adjust_mode: copy
1009
+ max_turn: 10
1010
+ action_sep: '||'
1011
+ max_actions_per_turn: 4
1012
+ use_turn_scores: false
1013
+ enable_think: true
1014
+ reward_normalization:
1015
+ grouping: state
1016
+ method: identity
1017
+ collapse_detection:
1018
+ compute_freq: 5
1019
+ micro_batch_size: 128
1020
+ first_turn_enabled: true
1021
+ multi_turn_enabled: true
1022
+ num_samples: 64
1023
+ es_manager:
1024
+ format_penalty: -0.1
1025
+ train:
1026
+ env_groups: 8
1027
+ group_size: 16
1028
+ env_configs:
1029
+ tags:
1030
+ - rubikscube
1031
+ n_groups:
1032
+ - 8
1033
+ val:
1034
+ env_groups: 512
1035
+ group_size: 1
1036
+ env_configs:
1037
+ tags:
1038
+ - rubikscube
1039
+ n_groups:
1040
+ - 512
1041
+ ctx_manager:
1042
+ generation:
1043
+ gen_config:
1044
+ response_length: ${actor_rollout_ref.rollout.response_length}
1045
+ temperature: ${actor_rollout_ref.rollout.temperature}
1046
+ top_p: ${actor_rollout_ref.rollout.top_p}
1047
+ top_k: ${actor_rollout_ref.rollout.top_k}
1048
+ kwargs: null
outputs/2026-06-16/18-42-33/.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
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
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=200
119
+ - trainer.n_gpus_per_node=8
120
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sas
121
+ - custom_envs.rubikscube.env_config.scramble_depth=2
122
+ - trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa
123
+ job:
124
+ name: train
125
+ chdir: null
126
+ override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,custom_envs.rubikscube.env_config.scramble_depth=2,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sas,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa,trainer.n_gpus_per_node=8,trainer.total_training_steps=200
127
+ id: ???
128
+ num: ???
129
+ config_name: _10_rubikscube
130
+ env_set: {}
131
+ env_copy: []
132
+ config:
133
+ override_dirname:
134
+ kv_sep: '='
135
+ item_sep: ','
136
+ exclude_keys: []
137
+ runtime:
138
+ version: 1.3.2
139
+ version_base: '1.3'
140
+ cwd: /mnt/general/wanghy/RAGEN_v2
141
+ config_sources:
142
+ - path: hydra.conf
143
+ schema: pkg
144
+ provider: hydra
145
+ - path: /mnt/general/wanghy/RAGEN_v2/config
146
+ schema: file
147
+ provider: main
148
+ - path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
149
+ schema: file
150
+ provider: command-line
151
+ - path: ''
152
+ schema: structured
153
+ provider: schema
154
+ output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-06-16/18-42-33
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-06-16/18-42-33/.hydra/overrides.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
2
+ - actor_rollout_ref.rollout.rollout_filter_strategy=top_p
3
+ - actor_rollout_ref.rollout.rollout_filter_value=0.9
4
+ - trainer.total_training_steps=200
5
+ - trainer.n_gpus_per_node=8
6
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube2_withthink_fulltraj_sas
7
+ - custom_envs.rubikscube.env_config.scramble_depth=2
8
+ - trainer.experiment_name=rubikscube2_withthink_fulltrajc_sa
outputs/2026-06-16/18-42-33/train.log ADDED
File without changes
outputs/2026-06-18/11-52-39/.hydra/config.yaml ADDED
@@ -0,0 +1,1048 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 500
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: 200
479
+ project_name: ragen
480
+ experiment_name: rubikscube1_withthink_fulltrajc_sa
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: 200
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: /mnt/general/wanghy/RAGEN_v2/saves/qwen2.5_3B_it_rubikscube1_withthink_fulltraj_sa_rl
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: 20
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: 2
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: 20
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 a careful 4x4 Sudoku solver. Use these reusable abstractions
821
+ when reasoning:
822
+
823
+ 1. In <think>, explain the constraint logic behind the move, not just the final
824
+ placement. Mention which row, column, or 2x2 box makes the move safe or forced.
825
+
826
+ 2. Treat each move as a constraint-preserving placement: place a number only
827
+ if it does not already appear in the same row, column, or 2x2 box.
828
+
829
+ 3. First look for highly forced cells. If an empty cell has only one legal candidate
830
+ after checking its row, column, and box, fill it immediately and explain why
831
+ other numbers are excluded.
832
+
833
+ 4. If no cell is obviously forced, scan each row, column, and 2x2 box for missing
834
+ numbers. If a missing number can go in only one empty position within that unit,
835
+ place it there and state that unit-level reason.
836
+
837
+ 5. Prefer moves that reduce uncertainty and create new forced cells for the
838
+ next turn. A good move should make the remaining puzzle more constrained, not
839
+ more ambiguous.
840
+
841
+ 6. Solve incrementally: choose exactly one placement, explain it briefly in
842
+ <think>, then output that one move in <answer>.
843
+
844
+ 7. Never modify bracketed initial cells or already-filled cells. Only place
845
+ numbers into dots.
846
+
847
+ 8. Avoid exploratory guesses when a forced move exists. In this environment,
848
+ reliable progress usually comes from constraint propagation rather than trial-and-error.
849
+
850
+ 9. If a previous move was invalid or the board did not change, do not repeat
851
+ the same placement. Recompute legal candidates and explain the corrected constraint-consistent
852
+ choice.
853
+
854
+ 10. Use row, column, and box agreement as confidence: the strongest placements
855
+ are those supported by multiple constraints at once.
856
+
857
+ 11. Keep <think> concise but meaningful: identify the target cell, list or compare
858
+ its legal candidates, and give the decisive constraint.
859
+
860
+ 12. Output only the required XML-like format and choose valid Sudoku placements.
861
+
862
+
863
+ You are solving a Sudoku puzzle. Fill in the grid so that every row, column,
864
+ and 2x2 box contains the numbers 1-4 without repetition.
865
+
866
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
867
+ shown as dots (.).
868
+
869
+ Place numbers one at a time using the format: <answer>place 1 at row 2 col 3</answer>
870
+
871
+ Always output: <think> [brief constraint-based reasoning] </think> <answer>
872
+ [one placement] </answer>
873
+
874
+ The environment will provide feedback on valid/invalid moves and show conflicts
875
+ if any occur.
876
+
877
+ '
878
+ max_tokens: 150
879
+ parallel_friendly: false
880
+ max_workers: 32
881
+ env_config:
882
+ grid_size: 4
883
+ difficulty: easy
884
+ render_format: with_feedback
885
+ show_conflicts: false
886
+ show_valid_numbers: false
887
+ max_steps: 20
888
+ MediumSudoku:
889
+ env_type: sudoku
890
+ max_actions_per_traj: 30
891
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
892
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
893
+
894
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
895
+ shown as dots (.).
896
+
897
+ Place numbers one at a time using the format: <answer>place 5 at row 2 col 3</answer>
898
+ or <answer>2,3,5</answer>
899
+
900
+ The environment will provide feedback on valid/invalid moves and show conflicts
901
+ if any occur.
902
+
903
+ '
904
+ max_tokens: 150
905
+ parallel_friendly: false
906
+ max_workers: 32
907
+ env_config:
908
+ grid_size: 9
909
+ difficulty: medium
910
+ render_format: with_feedback
911
+ show_conflicts: true
912
+ show_valid_numbers: true
913
+ max_steps: 81
914
+ SearchQA:
915
+ env_type: search
916
+ max_actions_per_traj: 10
917
+ env_instruction: "You are a search agent answering questions by searching for\
918
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
919
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
920
+ \ about the current situation. This reasoning process MUST be enclosed within\
921
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
922
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
923
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
924
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
925
+ \ Platt]</answer>\n"
926
+ max_tokens: 300
927
+ parallel_friendly: true
928
+ max_workers: 32
929
+ env_config:
930
+ max_steps: 10
931
+ max_search_results: 5
932
+ SearchQAMock:
933
+ env_type: search
934
+ max_actions_per_traj: 10
935
+ env_instruction: "You are a search agent answering questions by searching for\
936
+ \ information.\nUse search[your query] to find relevant documents, and finish[your\
937
+ \ answer] to submit your final answer.\n\nYou should first reason step-by-step\
938
+ \ about the current situation. This reasoning process MUST be enclosed within\
939
+ \ <think> </think> tags.\nThen provide your action within <answer>...</answer>\
940
+ \ tags.\n\nExamples:\n <think>I need to find information about Ben Platt's\
941
+ \ father.</think><answer>search[Ben Platt father parent]</answer>\n <think>Based\
942
+ \ on the search results, Ben Platt's father is Henry Platt.</think><answer>finish[Henry\
943
+ \ Platt]</answer>\n"
944
+ max_tokens: 300
945
+ parallel_friendly: true
946
+ max_workers: 32
947
+ env_config:
948
+ max_steps: 10
949
+ max_search_results: 5
950
+ mock_mode: true
951
+ game_2048:
952
+ env_type: game_2048
953
+ max_actions_per_traj: 700
954
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
955
+ by sliding Up, Right, Down, or Left.
956
+
957
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
958
+ a single action.
959
+
960
+ Example: <answer>Up</answer>
961
+
962
+ '
963
+ max_tokens: 8192
964
+ env_config: null
965
+ rubikscube:
966
+ env_type: rubikscube
967
+ max_actions_per_traj: 10
968
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
969
+ is to restore the cube so that each of the faces consists of a single, unique
970
+ color.
971
+
972
+ Available actions use standard Singmaster notation for face rotations: U, U'',
973
+ D, D'', L, L'', R, R'', F, F'', B, B''.
974
+
975
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
976
+
977
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
978
+ prime ('') means 90° counter-clockwise (e.g., "R''").
979
+
980
+ Respond with a sequence of actions separated by "||".
981
+
982
+ Example: <answer>U</answer>
983
+
984
+ '
985
+ max_tokens: 96
986
+ env_config:
987
+ scramble_depth: 1
988
+ max_steps: 7
989
+ render_mode: text
990
+ system:
991
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
992
+ seed:
993
+ train: 10000
994
+ val: 123
995
+ micro_batch_size_per_gpu: 1
996
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
997
+ ppo_mini_batch_size: 32
998
+ model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube1_withthink_fulltraj_sa
999
+ enable_response_mask: true
1000
+ grpo_advantage_length_weight: false
1001
+ lora:
1002
+ rank: 0
1003
+ alpha: 64
1004
+ target_modules: all-linear
1005
+ agent_proxy:
1006
+ context_window_mode: full
1007
+ max_context_window: 5
1008
+ batch_adjust_mode: copy
1009
+ max_turn: 10
1010
+ action_sep: '||'
1011
+ max_actions_per_turn: 4
1012
+ use_turn_scores: false
1013
+ enable_think: true
1014
+ reward_normalization:
1015
+ grouping: state
1016
+ method: identity
1017
+ collapse_detection:
1018
+ compute_freq: 5
1019
+ micro_batch_size: 128
1020
+ first_turn_enabled: true
1021
+ multi_turn_enabled: true
1022
+ num_samples: 64
1023
+ es_manager:
1024
+ format_penalty: -0.1
1025
+ train:
1026
+ env_groups: 8
1027
+ group_size: 16
1028
+ env_configs:
1029
+ tags:
1030
+ - rubikscube
1031
+ n_groups:
1032
+ - 8
1033
+ val:
1034
+ env_groups: 512
1035
+ group_size: 1
1036
+ env_configs:
1037
+ tags:
1038
+ - rubikscube
1039
+ n_groups:
1040
+ - 512
1041
+ ctx_manager:
1042
+ generation:
1043
+ gen_config:
1044
+ response_length: ${actor_rollout_ref.rollout.response_length}
1045
+ temperature: ${actor_rollout_ref.rollout.temperature}
1046
+ top_p: ${actor_rollout_ref.rollout.top_p}
1047
+ top_k: ${actor_rollout_ref.rollout.top_k}
1048
+ kwargs: null
outputs/2026-06-18/11-52-39/.hydra/hydra.yaml ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
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=200
119
+ - trainer.n_gpus_per_node=8
120
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube1_withthink_fulltraj_sa
121
+ - custom_envs.rubikscube.env_config.scramble_depth=1
122
+ - trainer.experiment_name=rubikscube1_withthink_fulltrajc_sa
123
+ - trainer.save_freq=200
124
+ - trainer.default_local_dir=/mnt/general/wanghy/RAGEN_v2/saves/qwen2.5_3B_it_rubikscube1_withthink_fulltraj_sa_rl
125
+ job:
126
+ name: train
127
+ chdir: null
128
+ override_dirname: actor_rollout_ref.rollout.rollout_filter_strategy=top_p,actor_rollout_ref.rollout.rollout_filter_value=0.9,custom_envs.rubikscube.env_config.scramble_depth=1,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube1_withthink_fulltraj_sa,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.default_local_dir=/mnt/general/wanghy/RAGEN_v2/saves/qwen2.5_3B_it_rubikscube1_withthink_fulltraj_sa_rl,trainer.experiment_name=rubikscube1_withthink_fulltrajc_sa,trainer.n_gpus_per_node=8,trainer.save_freq=200,trainer.total_training_steps=200
129
+ id: ???
130
+ num: ???
131
+ config_name: _10_rubikscube
132
+ env_set: {}
133
+ env_copy: []
134
+ config:
135
+ override_dirname:
136
+ kv_sep: '='
137
+ item_sep: ','
138
+ exclude_keys: []
139
+ runtime:
140
+ version: 1.3.2
141
+ version_base: '1.3'
142
+ cwd: /mnt/general/wanghy/RAGEN_v2
143
+ config_sources:
144
+ - path: hydra.conf
145
+ schema: pkg
146
+ provider: hydra
147
+ - path: /mnt/general/wanghy/RAGEN_v2/config
148
+ schema: file
149
+ provider: main
150
+ - path: /mnt/general/wanghy/RAGEN_v2/verl/verl/trainer/config
151
+ schema: file
152
+ provider: command-line
153
+ - path: ''
154
+ schema: structured
155
+ provider: schema
156
+ output_dir: /mnt/general/wanghy/RAGEN_v2/outputs/2026-06-18/11-52-39
157
+ choices:
158
+ reward_model: dp_reward_model
159
+ critic: dp_critic
160
+ critic/../engine@critic.model.fsdp_config: fsdp
161
+ critic/../optim@critic.optim: fsdp
162
+ model@actor_rollout_ref.model: hf_model
163
+ rollout@actor_rollout_ref.rollout: rollout
164
+ ref@actor_rollout_ref.ref: dp_ref
165
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
166
+ data: legacy_data
167
+ actor@actor_rollout_ref.actor: dp_actor
168
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
169
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
170
+ hydra/env: default
171
+ hydra/callbacks: null
172
+ hydra/job_logging: default
173
+ hydra/hydra_logging: default
174
+ hydra/hydra_help: default
175
+ hydra/help: default
176
+ hydra/sweeper: basic
177
+ hydra/launcher: basic
178
+ hydra/output: default
179
+ verbose: false
outputs/2026-06-18/11-52-39/.hydra/overrides.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
2
+ - actor_rollout_ref.rollout.rollout_filter_strategy=top_p
3
+ - actor_rollout_ref.rollout.rollout_filter_value=0.9
4
+ - trainer.total_training_steps=200
5
+ - trainer.n_gpus_per_node=8
6
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube1_withthink_fulltraj_sa
7
+ - custom_envs.rubikscube.env_config.scramble_depth=1
8
+ - trainer.experiment_name=rubikscube1_withthink_fulltrajc_sa
9
+ - trainer.save_freq=200
10
+ - trainer.default_local_dir=/mnt/general/wanghy/RAGEN_v2/saves/qwen2.5_3B_it_rubikscube1_withthink_fulltraj_sa_rl
outputs/2026-06-18/11-52-39/train.log ADDED
File without changes