diff --git a/outputs/2025-11-24/12-15-43/.hydra/config.yaml b/outputs/2025-11-24/12-15-43/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..99a371108b39c87e5d97db54c3cdd2ab42787580
--- /dev/null
+++ b/outputs/2025-11-24/12-15-43/.hydra/config.yaml
@@ -0,0 +1,753 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest
+ experiment_name: sokoban-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: 100
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 2
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_frozen_lake_subagent_newenv_slippery_splitsingleturn
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-11-24/12-18-38/.hydra/overrides.yaml b/outputs/2025-11-24/12-18-38/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..df78aa5d804e1412811fd4f85e86c66d55b91756
--- /dev/null
+++ b/outputs/2025-11-24/12-18-38/.hydra/overrides.yaml
@@ -0,0 +1,7 @@
+- system.CUDA_VISIBLE_DEVICES=2
+- trainer.experiment_name=sokoban-ppo
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-11-24/14-30-33/.hydra/config.yaml b/outputs/2025-11-24/14-30-33/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3c3e0cef2141ba1392e3e5ff610bfe9130d2fd0b
--- /dev/null
+++ b/outputs/2025-11-24/14-30-33/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: 100
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-11-24/17-05-35/.hydra/hydra.yaml b/outputs/2025-11-24/17-05-35/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8bfbd6af886fefe11bdf8f28d831a0fa81e5f59f
--- /dev/null
+++ b/outputs/2025-11-24/17-05-35/.hydra/hydra.yaml
@@ -0,0 +1,176 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES=2
+ - trainer.experiment_name=sokoban-ppo
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES=2,trainer.experiment_name=sokoban-ppo
+ id: ???
+ num: ???
+ config_name: _2_sokoban
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-24/17-05-35
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-11-27/22-21-59/.hydra/overrides.yaml b/outputs/2025-11-27/22-21-59/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2c489d70e1de695a91635f9027b5be0a9e7e962d
--- /dev/null
+++ b/outputs/2025-11-27/22-21-59/.hydra/overrides.yaml
@@ -0,0 +1,7 @@
+- system.CUDA_VISIBLE_DEVICES=0
+- trainer.experiment_name=bandit-ppo
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-11-28/01-07-11/.hydra/overrides.yaml b/outputs/2025-11-28/01-07-11/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..05bdf3e48ccdd844c0d515bd01f49544bc1aaef5
--- /dev/null
+++ b/outputs/2025-11-28/01-07-11/.hydra/overrides.yaml
@@ -0,0 +1,7 @@
+- system.CUDA_VISIBLE_DEVICES=2
+- trainer.experiment_name=frozen_lake-ppo-multitask-slippery
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-11-28/01-30-10/.hydra/overrides.yaml b/outputs/2025-11-28/01-30-10/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..82267f100340837444266dff04347c7342497f3c
--- /dev/null
+++ b/outputs/2025-11-28/01-30-10/.hydra/overrides.yaml
@@ -0,0 +1,8 @@
+- system.CUDA_VISIBLE_DEVICES=3
+- trainer.experiment_name=bandit-ppo-multitask
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
+ilter_ratio=1
diff --git a/outputs/2025-11-28/01-30-10/train.log b/outputs/2025-11-28/01-30-10/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-11-28/02-19-11/.hydra/overrides.yaml b/outputs/2025-11-28/02-19-11/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..05bdf3e48ccdd844c0d515bd01f49544bc1aaef5
--- /dev/null
+++ b/outputs/2025-11-28/02-19-11/.hydra/overrides.yaml
@@ -0,0 +1,7 @@
+- system.CUDA_VISIBLE_DEVICES=2
+- trainer.experiment_name=frozen_lake-ppo-multitask-slippery
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-11-28/10-45-12/.hydra/hydra.yaml b/outputs/2025-11-28/10-45-12/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..08ae37d107e47d2d06a9e69e9280caaa02bd21d1
--- /dev/null
+++ b/outputs/2025-11-28/10-45-12/.hydra/hydra.yaml
@@ -0,0 +1,176 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES=3
+ - trainer.experiment_name=bandit-ppo-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES=3,trainer.experiment_name=bandit-ppo-frommlp
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-28/10-45-12
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-11-28/10-45-12/train.log b/outputs/2025-11-28/10-45-12/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-11-28/11-13-34/.hydra/overrides.yaml b/outputs/2025-11-28/11-13-34/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7b01644feb05a86becb7797f5b3d601ffba97175
--- /dev/null
+++ b/outputs/2025-11-28/11-13-34/.hydra/overrides.yaml
@@ -0,0 +1,7 @@
+- system.CUDA_VISIBLE_DEVICES=3
+- trainer.experiment_name=bandit-ppo-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-11-28/14-19-49/.hydra/config.yaml b/outputs/2025-11-28/14-19-49/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ceb23dd4821239f06d7d92393a587f84cbb1f8e1
--- /dev/null
+++ b/outputs/2025-11-28/14-19-49/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: 100
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-3B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-11-28/14-19-49/.hydra/overrides.yaml b/outputs/2025-11-28/14-19-49/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2c489d70e1de695a91635f9027b5be0a9e7e962d
--- /dev/null
+++ b/outputs/2025-11-28/14-19-49/.hydra/overrides.yaml
@@ -0,0 +1,7 @@
+- system.CUDA_VISIBLE_DEVICES=0
+- trainer.experiment_name=bandit-ppo
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-11-28/14-24-14/.hydra/config.yaml b/outputs/2025-11-28/14-24-14/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e6ac7c1a47b92700525396f0067cc5c57c773563
--- /dev/null
+++ b/outputs/2025-11-28/14-24-14/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: 100
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0,1
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-3B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-11-28/14-24-14/.hydra/overrides.yaml b/outputs/2025-11-28/14-24-14/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6ce7e01b3646aca0e308bde77bc3e99244ec6cae
--- /dev/null
+++ b/outputs/2025-11-28/14-24-14/.hydra/overrides.yaml
@@ -0,0 +1,8 @@
+- system.CUDA_VISIBLE_DEVICES='0,1'
+- trainer.n_gpus_per_node=2
+- trainer.experiment_name=bandit-ppo
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-11-28/14-24-14/train.log b/outputs/2025-11-28/14-24-14/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-11-28/14-26-21/.hydra/overrides.yaml b/outputs/2025-11-28/14-26-21/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6ce7e01b3646aca0e308bde77bc3e99244ec6cae
--- /dev/null
+++ b/outputs/2025-11-28/14-26-21/.hydra/overrides.yaml
@@ -0,0 +1,8 @@
+- system.CUDA_VISIBLE_DEVICES='0,1'
+- trainer.n_gpus_per_node=2
+- trainer.experiment_name=bandit-ppo
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-11-28/16-14-49/.hydra/config.yaml b/outputs/2025-11-28/16-14-49/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..772144fe1297a77a2a3f0cdb235672136fd51697
--- /dev/null
+++ b/outputs/2025-11-28/16-14-49/.hydra/config.yaml
@@ -0,0 +1,753 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: sokoban-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: 100
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-3B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-11-28/16-14-49/.hydra/hydra.yaml b/outputs/2025-11-28/16-14-49/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ce8146317d9f7c53c18cb368b366c8b5e86f4dc9
--- /dev/null
+++ b/outputs/2025-11-28/16-14-49/.hydra/hydra.yaml
@@ -0,0 +1,177 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='2,3'
+ - trainer.n_gpus_per_node=2
+ - trainer.experiment_name=sokoban-ppo
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES='2,3',trainer.experiment_name=sokoban-ppo,trainer.n_gpus_per_node=2
+ id: ???
+ num: ???
+ config_name: _2_sokoban
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-28/16-14-49
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-11-28/16-14-50/.hydra/config.yaml b/outputs/2025-11-28/16-14-50/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8df154ece496c6acbfbadca9bcef40f9fbedb728
--- /dev/null
+++ b/outputs/2025-11-28/16-14-50/.hydra/config.yaml
@@ -0,0 +1,753 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: frozen_lake-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: 100
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 4,5
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-3B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordFrozenLake
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordFrozenLake
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-11-28/16-14-50/.hydra/hydra.yaml b/outputs/2025-11-28/16-14-50/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e75bf476794b8490836844e3b7d80347f4abd1c3
--- /dev/null
+++ b/outputs/2025-11-28/16-14-50/.hydra/hydra.yaml
@@ -0,0 +1,177 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5'
+ - trainer.n_gpus_per_node=2
+ - trainer.experiment_name=frozen_lake-ppo
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES='4,5',trainer.experiment_name=frozen_lake-ppo,trainer.n_gpus_per_node=2
+ id: ???
+ num: ???
+ config_name: _3_frozen_lake
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-28/16-14-50
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-11-28/16-14-50/.hydra/overrides.yaml b/outputs/2025-11-28/16-14-50/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..33da5949eb50839c857562b221304607233f4f27
--- /dev/null
+++ b/outputs/2025-11-28/16-14-50/.hydra/overrides.yaml
@@ -0,0 +1,8 @@
+- system.CUDA_VISIBLE_DEVICES='4,5'
+- trainer.n_gpus_per_node=2
+- trainer.experiment_name=frozen_lake-ppo
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-11-28/16-20-19/.hydra/config.yaml b/outputs/2025-11-28/16-20-19/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..cc41213dff6405e4613e152b29e358d97cb30786
--- /dev/null
+++ b/outputs/2025-11-28/16-20-19/.hydra/config.yaml
@@ -0,0 +1,754 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: sokoban-ppo-box1
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: 100
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-3B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
+ kwargs: null
diff --git a/outputs/2025-11-28/16-20-19/.hydra/overrides.yaml b/outputs/2025-11-28/16-20-19/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2a80bbb860b3cbf76a04725d403f6dab3829d60c
--- /dev/null
+++ b/outputs/2025-11-28/16-20-19/.hydra/overrides.yaml
@@ -0,0 +1,8 @@
+- system.CUDA_VISIBLE_DEVICES='4,5'
+- trainer.n_gpus_per_node=2
+- trainer.experiment_name=frozen_lake-ppo-slippery
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-11-28/16-20-19/train.log b/outputs/2025-11-28/16-20-19/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-11-28/16-58-54/.hydra/hydra.yaml b/outputs/2025-11-28/16-58-54/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..056e53281b4c893298b03191c80f85e1d329deed
--- /dev/null
+++ b/outputs/2025-11-28/16-58-54/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='2,3'
+ - trainer.n_gpus_per_node=2
+ - trainer.experiment_name=sokoban-ppo-box1
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,system.CUDA_VISIBLE_DEVICES='2,3',trainer.experiment_name=sokoban-ppo-box1,trainer.n_gpus_per_node=2
+ id: ???
+ num: ???
+ config_name: _2_sokoban
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-11-28/16-58-54
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
+lt
+ verbose: false
diff --git a/outputs/2025-11-28/16-58-54/.hydra/overrides.yaml b/outputs/2025-11-28/16-58-54/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c3e592b9a949e70b41e7edc76838033061b293a7
--- /dev/null
+++ b/outputs/2025-11-28/16-58-54/.hydra/overrides.yaml
@@ -0,0 +1,9 @@
+- system.CUDA_VISIBLE_DEVICES='2,3'
+- trainer.n_gpus_per_node=2
+- trainer.experiment_name=sokoban-ppo-box1
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
+ratio=1
diff --git a/outputs/2025-12-02/00-06-34/.hydra/config.yaml b/outputs/2025-12-02/00-06-34/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..928bc77fcc84835b2fc44d26bb96952ffbd9be9a
--- /dev/null
+++ b/outputs/2025-12-02/00-06-34/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: bandit-ppo-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: '7'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_bandit
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/00-06-34/.hydra/overrides.yaml b/outputs/2025-12-02/00-06-34/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..65005e83bf34670c1a4fc564fc354da7c29daf82
--- /dev/null
+++ b/outputs/2025-12-02/00-06-34/.hydra/overrides.yaml
@@ -0,0 +1,3 @@
+- system.CUDA_VISIBLE_DEVICES='7'
+- trainer.n_gpus_per_node=1
+- trainer.experiment_name=bandit-ppo-frommlp
diff --git a/outputs/2025-12-02/00-50-08/.hydra/config.yaml b/outputs/2025-12-02/00-50-08/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..928bc77fcc84835b2fc44d26bb96952ffbd9be9a
--- /dev/null
+++ b/outputs/2025-12-02/00-50-08/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: bandit-ppo-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: '7'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_bandit
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/00-50-08/.hydra/hydra.yaml b/outputs/2025-12-02/00-50-08/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d0f786a44559e3336637ff4f28ad5f0196bb8434
--- /dev/null
+++ b/outputs/2025-12-02/00-50-08/.hydra/hydra.yaml
@@ -0,0 +1,172 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='7'
+ - trainer.n_gpus_per_node=1
+ - trainer.experiment_name=bandit-ppo-frommlp
+ job:
+ name: train
+ chdir: null
+ override_dirname: system.CUDA_VISIBLE_DEVICES='7',trainer.experiment_name=bandit-ppo-frommlp,trainer.n_gpus_per_node=1
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/00-50-08
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/00-50-08/train.log b/outputs/2025-12-02/00-50-08/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/09-21-16/.hydra/config.yaml b/outputs/2025-12-02/09-21-16/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..dc4011c3aa5ba2099bcdbe3bb487868aaf0bf90e
--- /dev/null
+++ b/outputs/2025-12-02/09-21-16/.hydra/config.yaml
@@ -0,0 +1,753 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: sokoban-ppo-box2
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/09-21-16/.hydra/hydra.yaml b/outputs/2025-12-02/09-21-16/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0ca2a5bcb65790b87d72baada0716ee5b164495b
--- /dev/null
+++ b/outputs/2025-12-02/09-21-16/.hydra/hydra.yaml
@@ -0,0 +1,178 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='2,3'
+ - trainer.n_gpus_per_node=2
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask
+ - trainer.experiment_name=sokoban-ppo-box2
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask,system.CUDA_VISIBLE_DEVICES='2,3',trainer.experiment_name=sokoban-ppo-box2,trainer.n_gpus_per_node=2
+ id: ???
+ num: ???
+ config_name: _2_sokoban
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/09-21-16
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/09-21-16/.hydra/overrides.yaml b/outputs/2025-12-02/09-21-16/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..87b79fdae0a221bc40e33b28fc6860c20bfa4065
--- /dev/null
+++ b/outputs/2025-12-02/09-21-16/.hydra/overrides.yaml
@@ -0,0 +1,9 @@
+- system.CUDA_VISIBLE_DEVICES='2,3'
+- trainer.n_gpus_per_node=2
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask
+- trainer.experiment_name=sokoban-ppo-box2
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-02/09-21-16/train.log b/outputs/2025-12-02/09-21-16/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/09-26-07/.hydra/config.yaml b/outputs/2025-12-02/09-26-07/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fcb6955b1a6ad74e3849470754739391fd5f1137
--- /dev/null
+++ b/outputs/2025-12-02/09-26-07/.hydra/config.yaml
@@ -0,0 +1,754 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: sokoban-ppo-box2
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
+ kwargs: null
diff --git a/outputs/2025-12-02/09-26-07/.hydra/hydra.yaml b/outputs/2025-12-02/09-26-07/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fde9da3e214764d5457ecd279e7283643016defd
--- /dev/null
+++ b/outputs/2025-12-02/09-26-07/.hydra/hydra.yaml
@@ -0,0 +1,178 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='2,3'
+ - trainer.n_gpus_per_node=2
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask
+ - trainer.experiment_name=sokoban-ppo-box2
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask,system.CUDA_VISIBLE_DEVICES='2,3',trainer.experiment_name=sokoban-ppo-box2,trainer.n_gpus_per_node=2
+ id: ???
+ num: ???
+ config_name: _2_sokoban
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/09-26-07
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/09-26-07/.hydra/overrides.yaml b/outputs/2025-12-02/09-26-07/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..87b79fdae0a221bc40e33b28fc6860c20bfa4065
--- /dev/null
+++ b/outputs/2025-12-02/09-26-07/.hydra/overrides.yaml
@@ -0,0 +1,9 @@
+- system.CUDA_VISIBLE_DEVICES='2,3'
+- trainer.n_gpus_per_node=2
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask
+- trainer.experiment_name=sokoban-ppo-box2
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-02/09-26-07/train.log b/outputs/2025-12-02/09-26-07/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/10-20-22/.hydra/config.yaml b/outputs/2025-12-02/10-20-22/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..075235a278c79883510842fe708f6d6e160716ad
--- /dev/null
+++ b/outputs/2025-12-02/10-20-22/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0,1
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/10-20-22/.hydra/hydra.yaml b/outputs/2025-12-02/10-20-22/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0e702caf1467f5facadf4bc5c4475f8dd3c9f1c0
--- /dev/null
+++ b/outputs/2025-12-02/10-20-22/.hydra/hydra.yaml
@@ -0,0 +1,178 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1'
+ - trainer.n_gpus_per_node=2
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask
+ - trainer.experiment_name=bandit-ppo
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask,system.CUDA_VISIBLE_DEVICES='0,1',trainer.experiment_name=bandit-ppo,trainer.n_gpus_per_node=2
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/10-20-22
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/10-20-22/.hydra/overrides.yaml b/outputs/2025-12-02/10-20-22/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..cd636a171016689ea31749641d807fbf3eba3525
--- /dev/null
+++ b/outputs/2025-12-02/10-20-22/.hydra/overrides.yaml
@@ -0,0 +1,9 @@
+- system.CUDA_VISIBLE_DEVICES='0,1'
+- trainer.n_gpus_per_node=2
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask
+- trainer.experiment_name=bandit-ppo
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-02/10-28-44/.hydra/config.yaml b/outputs/2025-12-02/10-28-44/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f63b9dce0be052ddaeba2bfae4c620775ae33d43
--- /dev/null
+++ b/outputs/2025-12-02/10-28-44/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: null
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/10-28-44/.hydra/hydra.yaml b/outputs/2025-12-02/10-28-44/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..08e54b229cf479d0d57bcbc826a86a0903a2cf12
--- /dev/null
+++ b/outputs/2025-12-02/10-28-44/.hydra/hydra.yaml
@@ -0,0 +1,171 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES=0
+ - trainer.experiment_name=bandit-ppo
+ job:
+ name: train
+ chdir: null
+ override_dirname: system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=bandit-ppo
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/10-28-44
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/10-28-44/.hydra/overrides.yaml b/outputs/2025-12-02/10-28-44/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..39bb5871ab345f104c0f9af211f19552dc5ad0cf
--- /dev/null
+++ b/outputs/2025-12-02/10-28-44/.hydra/overrides.yaml
@@ -0,0 +1,2 @@
+- system.CUDA_VISIBLE_DEVICES=0
+- trainer.experiment_name=bandit-ppo
diff --git a/outputs/2025-12-02/10-28-44/train.log b/outputs/2025-12-02/10-28-44/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/10-29-10/.hydra/config.yaml b/outputs/2025-12-02/10-29-10/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..138ae611a858662404c1430bf6beaaef3f7cf5f2
--- /dev/null
+++ b/outputs/2025-12-02/10-29-10/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/10-29-10/.hydra/hydra.yaml b/outputs/2025-12-02/10-29-10/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..bd4b0512ff38145de6f4fa286777adbb42277112
--- /dev/null
+++ b/outputs/2025-12-02/10-29-10/.hydra/hydra.yaml
@@ -0,0 +1,172 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES=0
+ - trainer.experiment_name=bandit-ppo
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask
+ job:
+ name: train
+ chdir: null
+ override_dirname: model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask,system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=bandit-ppo
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/10-29-10
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/10-29-10/train.log b/outputs/2025-12-02/10-29-10/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/10-30-01/.hydra/overrides.yaml b/outputs/2025-12-02/10-30-01/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..70a5731b7b3e9a0ba410c07cc2e16ba08e560817
--- /dev/null
+++ b/outputs/2025-12-02/10-30-01/.hydra/overrides.yaml
@@ -0,0 +1,3 @@
+- system.CUDA_VISIBLE_DEVICES=0
+- trainer.experiment_name=bandit-ppo
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
diff --git a/outputs/2025-12-02/10-30-01/train.log b/outputs/2025-12-02/10-30-01/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/10-31-16/.hydra/config.yaml b/outputs/2025-12-02/10-31-16/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..48840bf5b7fcf91b28480ab27bfa907f8ef39cc0
--- /dev/null
+++ b/outputs/2025-12-02/10-31-16/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/10-31-16/.hydra/hydra.yaml b/outputs/2025-12-02/10-31-16/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9fcd1399be05dc52382e2d5427ef624f4de9018f
--- /dev/null
+++ b/outputs/2025-12-02/10-31-16/.hydra/hydra.yaml
@@ -0,0 +1,171 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES=0
+ - trainer.experiment_name=bandit-ppo
+ job:
+ name: train
+ chdir: null
+ override_dirname: system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=bandit-ppo
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/10-31-16
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/10-31-16/.hydra/overrides.yaml b/outputs/2025-12-02/10-31-16/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..39bb5871ab345f104c0f9af211f19552dc5ad0cf
--- /dev/null
+++ b/outputs/2025-12-02/10-31-16/.hydra/overrides.yaml
@@ -0,0 +1,2 @@
+- system.CUDA_VISIBLE_DEVICES=0
+- trainer.experiment_name=bandit-ppo
diff --git a/outputs/2025-12-02/10-31-16/train.log b/outputs/2025-12-02/10-31-16/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/10-36-25/.hydra/config.yaml b/outputs/2025-12-02/10-36-25/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..48840bf5b7fcf91b28480ab27bfa907f8ef39cc0
--- /dev/null
+++ b/outputs/2025-12-02/10-36-25/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/10-36-25/.hydra/hydra.yaml b/outputs/2025-12-02/10-36-25/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6e3c1259c1fe4252dc905b29913cd30b954b678f
--- /dev/null
+++ b/outputs/2025-12-02/10-36-25/.hydra/hydra.yaml
@@ -0,0 +1,171 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES=0
+ - trainer.experiment_name=bandit-ppo
+ job:
+ name: train
+ chdir: null
+ override_dirname: system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=bandit-ppo
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/10-36-25
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/10-36-25/.hydra/overrides.yaml b/outputs/2025-12-02/10-36-25/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..39bb5871ab345f104c0f9af211f19552dc5ad0cf
--- /dev/null
+++ b/outputs/2025-12-02/10-36-25/.hydra/overrides.yaml
@@ -0,0 +1,2 @@
+- system.CUDA_VISIBLE_DEVICES=0
+- trainer.experiment_name=bandit-ppo
diff --git a/outputs/2025-12-02/10-36-25/train.log b/outputs/2025-12-02/10-36-25/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/10-38-36/.hydra/hydra.yaml b/outputs/2025-12-02/10-38-36/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4ec7d7642552d5faf9edad1600360707cfbb7bd2
--- /dev/null
+++ b/outputs/2025-12-02/10-38-36/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1'
+ - trainer.n_gpus_per_node=2
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask
+ - trainer.experiment_name=bandit-ppo
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask,system.CUDA_VISIBLE_DEVICES='0,1',trainer.experiment_name=bandit-ppo,trainer.n_gpus_per_node=2
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/10-38-36
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
+dra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/10-38-36/.hydra/overrides.yaml b/outputs/2025-12-02/10-38-36/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1d8738662e0865c75cef7d6e977e20bd81f45ea7
--- /dev/null
+++ b/outputs/2025-12-02/10-38-36/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1'
+- trainer.n_gpus_per_node=2
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask
+- trainer.experiment_name=bandit-ppo
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
+_filter_ratio=1
diff --git a/outputs/2025-12-02/10-38-36/train.log b/outputs/2025-12-02/10-38-36/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/10-42-50/.hydra/config.yaml b/outputs/2025-12-02/10-42-50/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..48840bf5b7fcf91b28480ab27bfa907f8ef39cc0
--- /dev/null
+++ b/outputs/2025-12-02/10-42-50/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/10-42-50/.hydra/hydra.yaml b/outputs/2025-12-02/10-42-50/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..83ce74811d0447d69aee1f66d8a3c80cef926b5f
--- /dev/null
+++ b/outputs/2025-12-02/10-42-50/.hydra/hydra.yaml
@@ -0,0 +1,171 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES=0
+ - trainer.experiment_name=bandit-ppo
+ job:
+ name: train
+ chdir: null
+ override_dirname: system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=bandit-ppo
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/10-42-50
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/10-42-50/train.log b/outputs/2025-12-02/10-42-50/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/10-44-30/.hydra/hydra.yaml b/outputs/2025-12-02/10-44-30/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c82ae44bf3cadb245e200938af455b3fdb8efa8e
--- /dev/null
+++ b/outputs/2025-12-02/10-44-30/.hydra/hydra.yaml
@@ -0,0 +1,171 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES=0
+ - trainer.experiment_name=bandit-ppo
+ job:
+ name: train
+ chdir: null
+ override_dirname: system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=bandit-ppo
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/10-44-30
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/10-44-30/.hydra/overrides.yaml b/outputs/2025-12-02/10-44-30/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..39bb5871ab345f104c0f9af211f19552dc5ad0cf
--- /dev/null
+++ b/outputs/2025-12-02/10-44-30/.hydra/overrides.yaml
@@ -0,0 +1,2 @@
+- system.CUDA_VISIBLE_DEVICES=0
+- trainer.experiment_name=bandit-ppo
diff --git a/outputs/2025-12-02/10-44-30/train.log b/outputs/2025-12-02/10-44-30/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/10-46-43/.hydra/hydra.yaml b/outputs/2025-12-02/10-46-43/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9bf690ca30fe892a33db11066b4eb665fb9d0ced
--- /dev/null
+++ b/outputs/2025-12-02/10-46-43/.hydra/hydra.yaml
@@ -0,0 +1,171 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES=0
+ - trainer.experiment_name=bandit-ppo
+ job:
+ name: train
+ chdir: null
+ override_dirname: system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=bandit-ppo
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/10-46-43
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/10-46-43/.hydra/overrides.yaml b/outputs/2025-12-02/10-46-43/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..39bb5871ab345f104c0f9af211f19552dc5ad0cf
--- /dev/null
+++ b/outputs/2025-12-02/10-46-43/.hydra/overrides.yaml
@@ -0,0 +1,2 @@
+- system.CUDA_VISIBLE_DEVICES=0
+- trainer.experiment_name=bandit-ppo
diff --git a/outputs/2025-12-02/10-46-43/train.log b/outputs/2025-12-02/10-46-43/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/10-49-53/.hydra/hydra.yaml b/outputs/2025-12-02/10-49-53/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..755d409d68ee3cc59e3075cd3b466b361aa7b156
--- /dev/null
+++ b/outputs/2025-12-02/10-49-53/.hydra/hydra.yaml
@@ -0,0 +1,171 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES=0
+ - trainer.experiment_name=bandit-ppo
+ job:
+ name: train
+ chdir: null
+ override_dirname: system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=bandit-ppo
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/10-49-53
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/10-49-53/.hydra/overrides.yaml b/outputs/2025-12-02/10-49-53/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..39bb5871ab345f104c0f9af211f19552dc5ad0cf
--- /dev/null
+++ b/outputs/2025-12-02/10-49-53/.hydra/overrides.yaml
@@ -0,0 +1,2 @@
+- system.CUDA_VISIBLE_DEVICES=0
+- trainer.experiment_name=bandit-ppo
diff --git a/outputs/2025-12-02/10-49-53/train.log b/outputs/2025-12-02/10-49-53/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/10-53-37/.hydra/config.yaml b/outputs/2025-12-02/10-53-37/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..48840bf5b7fcf91b28480ab27bfa907f8ef39cc0
--- /dev/null
+++ b/outputs/2025-12-02/10-53-37/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/10-53-37/.hydra/overrides.yaml b/outputs/2025-12-02/10-53-37/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..39bb5871ab345f104c0f9af211f19552dc5ad0cf
--- /dev/null
+++ b/outputs/2025-12-02/10-53-37/.hydra/overrides.yaml
@@ -0,0 +1,2 @@
+- system.CUDA_VISIBLE_DEVICES=0
+- trainer.experiment_name=bandit-ppo
diff --git a/outputs/2025-12-02/11-13-16/.hydra/config.yaml b/outputs/2025-12-02/11-13-16/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..48840bf5b7fcf91b28480ab27bfa907f8ef39cc0
--- /dev/null
+++ b/outputs/2025-12-02/11-13-16/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/11-13-16/.hydra/hydra.yaml b/outputs/2025-12-02/11-13-16/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..540297dbb68ffb12231305ca41dc05f6dbbacc67
--- /dev/null
+++ b/outputs/2025-12-02/11-13-16/.hydra/hydra.yaml
@@ -0,0 +1,171 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES=0
+ - trainer.experiment_name=bandit-ppo
+ job:
+ name: train
+ chdir: null
+ override_dirname: system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=bandit-ppo
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/11-13-16
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/11-14-37/.hydra/config.yaml b/outputs/2025-12-02/11-14-37/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..48840bf5b7fcf91b28480ab27bfa907f8ef39cc0
--- /dev/null
+++ b/outputs/2025-12-02/11-14-37/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/11-14-37/.hydra/overrides.yaml b/outputs/2025-12-02/11-14-37/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..39bb5871ab345f104c0f9af211f19552dc5ad0cf
--- /dev/null
+++ b/outputs/2025-12-02/11-14-37/.hydra/overrides.yaml
@@ -0,0 +1,2 @@
+- system.CUDA_VISIBLE_DEVICES=0
+- trainer.experiment_name=bandit-ppo
diff --git a/outputs/2025-12-02/11-14-37/train.log b/outputs/2025-12-02/11-14-37/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/11-17-41/.hydra/config.yaml b/outputs/2025-12-02/11-17-41/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..48840bf5b7fcf91b28480ab27bfa907f8ef39cc0
--- /dev/null
+++ b/outputs/2025-12-02/11-17-41/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/11-17-41/train.log b/outputs/2025-12-02/11-17-41/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/11-20-28/.hydra/config.yaml b/outputs/2025-12-02/11-20-28/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..48840bf5b7fcf91b28480ab27bfa907f8ef39cc0
--- /dev/null
+++ b/outputs/2025-12-02/11-20-28/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/11-20-28/.hydra/hydra.yaml b/outputs/2025-12-02/11-20-28/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3bcbd5c25a189f15ccb9672cef87cdc9c861fce9
--- /dev/null
+++ b/outputs/2025-12-02/11-20-28/.hydra/hydra.yaml
@@ -0,0 +1,171 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES=0
+ - trainer.experiment_name=bandit-ppo
+ job:
+ name: train
+ chdir: null
+ override_dirname: system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=bandit-ppo
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/11-20-28
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/11-20-28/train.log b/outputs/2025-12-02/11-20-28/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/11-22-01/.hydra/config.yaml b/outputs/2025-12-02/11-22-01/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..48840bf5b7fcf91b28480ab27bfa907f8ef39cc0
--- /dev/null
+++ b/outputs/2025-12-02/11-22-01/.hydra/config.yaml
@@ -0,0 +1,755 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: bandit-ppo
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 1
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Bandit
+ n_groups:
+ - 8
+ val:
+ env_groups: 512
+ group_size: 1
+ env_configs:
+ tags:
+ - Bandit
+ - BanditTest
+ n_groups:
+ - 256
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-02/11-22-01/.hydra/hydra.yaml b/outputs/2025-12-02/11-22-01/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..32a821f6acaa81d9531f8f0add0ee45114e19f26
--- /dev/null
+++ b/outputs/2025-12-02/11-22-01/.hydra/hydra.yaml
@@ -0,0 +1,171 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES=0
+ - trainer.experiment_name=bandit-ppo
+ job:
+ name: train
+ chdir: null
+ override_dirname: system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=bandit-ppo
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/11-22-01
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/11-22-01/.hydra/overrides.yaml b/outputs/2025-12-02/11-22-01/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..39bb5871ab345f104c0f9af211f19552dc5ad0cf
--- /dev/null
+++ b/outputs/2025-12-02/11-22-01/.hydra/overrides.yaml
@@ -0,0 +1,2 @@
+- system.CUDA_VISIBLE_DEVICES=0
+- trainer.experiment_name=bandit-ppo
diff --git a/outputs/2025-12-02/11-43-57/.hydra/hydra.yaml b/outputs/2025-12-02/11-43-57/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..5dc912988d1499371819e167fb015946864e0d7b
--- /dev/null
+++ b/outputs/2025-12-02/11-43-57/.hydra/hydra.yaml
@@ -0,0 +1,171 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES=0
+ - trainer.experiment_name=bandit-ppo
+ job:
+ name: train
+ chdir: null
+ override_dirname: system.CUDA_VISIBLE_DEVICES=0,trainer.experiment_name=bandit-ppo
+ id: ???
+ num: ???
+ config_name: _1_bandit
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-02/11-43-57
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-02/11-43-57/train.log b/outputs/2025-12-02/11-43-57/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/11-45-48/.hydra/overrides.yaml b/outputs/2025-12-02/11-45-48/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..39bb5871ab345f104c0f9af211f19552dc5ad0cf
--- /dev/null
+++ b/outputs/2025-12-02/11-45-48/.hydra/overrides.yaml
@@ -0,0 +1,2 @@
+- system.CUDA_VISIBLE_DEVICES=0
+- trainer.experiment_name=bandit-ppo
diff --git a/outputs/2025-12-02/11-45-48/train.log b/outputs/2025-12-02/11-45-48/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/11-50-18/train.log b/outputs/2025-12-02/11-50-18/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/13-28-10/train.log b/outputs/2025-12-02/13-28-10/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/15-07-06/train.log b/outputs/2025-12-02/15-07-06/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/17-11-10/train.log b/outputs/2025-12-02/17-11-10/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-02/19-45-35/train.log b/outputs/2025-12-02/19-45-35/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-03/15-40-21/.hydra/config.yaml b/outputs/2025-12-03/15-40-21/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d3422e5f6eb7aa3344ce8556f09c55a9b2d33146
--- /dev/null
+++ b/outputs/2025-12-03/15-40-21/.hydra/config.yaml
@@ -0,0 +1,753 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: frozen_lake-ppo-slippery-multitask
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_multitask
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordFrozenLake
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordFrozenLake
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-05/11-00-42/.hydra/config.yaml b/outputs/2025-12-05/11-00-42/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4c32748f43afc4af9fcd6bcfb27e7849694ec600
--- /dev/null
+++ b/outputs/2025-12-05/11-00-42/.hydra/config.yaml
@@ -0,0 +1,780 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8096
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: 2048
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ Game2048:
+ env_type: game_2048
+ max_actions_per_traj: 5
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 64
+ env_config: null
+ Blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 200
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - Game2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - Game2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-05/11-00-42/.hydra/hydra.yaml b/outputs/2025-12-05/11-00-42/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..09b3fac006ad6cfb6a56b3f4310c785dbddc1dad
--- /dev/null
+++ b/outputs/2025-12-05/11-00-42/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=2048
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=2048,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-05/11-00-42
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-06/20-15-18/train.log b/outputs/2025-12-06/20-15-18/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-06/23-42-39/.hydra/config.yaml b/outputs/2025-12-06/23-42-39/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e1211815c328d96fb4f7ea97ca496c694a81087e
--- /dev/null
+++ b/outputs/2025-12-06/23-42-39/.hydra/config.yaml
@@ -0,0 +1,780 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8096
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: blackjack-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_blackjack
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 200
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - blackjack
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - blackjack
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-06/23-45-22/.hydra/hydra.yaml b/outputs/2025-12-06/23-45-22/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b4121f7a0cc9f4632f0e0dc657fcf6202d18011c
--- /dev/null
+++ b/outputs/2025-12-06/23-45-22/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_blackjack
+ - trainer.experiment_name=blackjack-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_blackjack,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=blackjack-frommlp,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _9_blackjack
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-06/23-45-22
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
+false
diff --git a/outputs/2025-12-07/05-45-49/.hydra/overrides.yaml b/outputs/2025-12-07/05-45-49/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..257c3f117793a9d242bbb09edb4cfd690bf82794
--- /dev/null
+++ b/outputs/2025-12-07/05-45-49/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=4
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_blackjack
+- trainer.experiment_name=blackjack-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-07/11-33-31/.hydra/hydra.yaml b/outputs/2025-12-07/11-33-31/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d6a64c46fd6ec4a66c2b63d7616d3574b0dec9fc
--- /dev/null
+++ b/outputs/2025-12-07/11-33-31/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=rubikscube
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=rubikscube,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-07/11-33-31
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-07/11-46-18/.hydra/config.yaml b/outputs/2025-12-07/11-46-18/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2eacee8b1cc82286bd497841a034ef34f95dfc55
--- /dev/null
+++ b/outputs/2025-12-07/11-46-18/.hydra/config.yaml
@@ -0,0 +1,799 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore each face to a single color.
+
+ Available actions are face rotations: U, U'', D, D'', L, L'', R, R'', F, F'',
+ B, B''.
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U || R || F''
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 5
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-07/11-46-18/.hydra/hydra.yaml b/outputs/2025-12-07/11-46-18/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d0175417abf5c0b86d0f99ca101c31317f587c40
--- /dev/null
+++ b/outputs/2025-12-07/11-46-18/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=rubikscube
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=rubikscube,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-07/11-46-18
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-07/11-46-18/.hydra/overrides.yaml b/outputs/2025-12-07/11-46-18/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..074482467edc64a15411978fd0a1b97591a95613
--- /dev/null
+++ b/outputs/2025-12-07/11-46-18/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=rubikscube
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-07/11-50-15/.hydra/config.yaml b/outputs/2025-12-07/11-50-15/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2eacee8b1cc82286bd497841a034ef34f95dfc55
--- /dev/null
+++ b/outputs/2025-12-07/11-50-15/.hydra/config.yaml
@@ -0,0 +1,799 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore each face to a single color.
+
+ Available actions are face rotations: U, U'', D, D'', L, L'', R, R'', F, F'',
+ B, B''.
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U || R || F''
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 5
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-07/11-50-15/.hydra/hydra.yaml b/outputs/2025-12-07/11-50-15/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d812e5a14fdc3daf70c028ea08ac0c06c634d116
--- /dev/null
+++ b/outputs/2025-12-07/11-50-15/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=rubikscube
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=rubikscube,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-07/11-50-15
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-07/12-09-21/.hydra/config.yaml b/outputs/2025-12-07/12-09-21/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..bebd35c1ee6b8cc0d569bba0bb8410d76cb13d41
--- /dev/null
+++ b/outputs/2025-12-07/12-09-21/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 5
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-07/12-09-21/.hydra/hydra.yaml b/outputs/2025-12-07/12-09-21/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6b16d2e7674eb953a3c78bd39c54822c2d71b979
--- /dev/null
+++ b/outputs/2025-12-07/12-09-21/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=rubikscube
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=rubikscube,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-07/12-09-21
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-07/12-09-21/.hydra/overrides.yaml b/outputs/2025-12-07/12-09-21/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..074482467edc64a15411978fd0a1b97591a95613
--- /dev/null
+++ b/outputs/2025-12-07/12-09-21/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=rubikscube
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-07/12-09-21/train.log b/outputs/2025-12-07/12-09-21/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-07/12-15-28/.hydra/config.yaml b/outputs/2025-12-07/12-15-28/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..bebd35c1ee6b8cc0d569bba0bb8410d76cb13d41
--- /dev/null
+++ b/outputs/2025-12-07/12-15-28/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 5
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-07/12-15-28/.hydra/hydra.yaml b/outputs/2025-12-07/12-15-28/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8ecbbb3acc902a49ad9dc32694998a7f5a9253bb
--- /dev/null
+++ b/outputs/2025-12-07/12-15-28/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=rubikscube
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=rubikscube,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-07/12-15-28
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-07/12-15-28/.hydra/overrides.yaml b/outputs/2025-12-07/12-15-28/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..074482467edc64a15411978fd0a1b97591a95613
--- /dev/null
+++ b/outputs/2025-12-07/12-15-28/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=rubikscube
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-07/12-17-44/.hydra/config.yaml b/outputs/2025-12-07/12-17-44/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..bebd35c1ee6b8cc0d569bba0bb8410d76cb13d41
--- /dev/null
+++ b/outputs/2025-12-07/12-17-44/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 5
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-07/12-17-44/.hydra/hydra.yaml b/outputs/2025-12-07/12-17-44/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4a5e86c995a8ff22a3647ae31d31fde3e3a7b07d
--- /dev/null
+++ b/outputs/2025-12-07/12-17-44/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=rubikscube
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=rubikscube,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-07/12-17-44
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-07/12-17-44/.hydra/overrides.yaml b/outputs/2025-12-07/12-17-44/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..074482467edc64a15411978fd0a1b97591a95613
--- /dev/null
+++ b/outputs/2025-12-07/12-17-44/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=rubikscube
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-07/13-32-20/.hydra/config.yaml b/outputs/2025-12-07/13-32-20/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..bebd35c1ee6b8cc0d569bba0bb8410d76cb13d41
--- /dev/null
+++ b/outputs/2025-12-07/13-32-20/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 5
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-07/13-32-20/.hydra/hydra.yaml b/outputs/2025-12-07/13-32-20/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9bfa3abd7ba5165eb57e07da1f6bbebc959be162
--- /dev/null
+++ b/outputs/2025-12-07/13-32-20/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=rubikscube
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=rubikscube,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-07/13-32-20
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-07/13-32-20/.hydra/overrides.yaml b/outputs/2025-12-07/13-32-20/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..074482467edc64a15411978fd0a1b97591a95613
--- /dev/null
+++ b/outputs/2025-12-07/13-32-20/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=rubikscube
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-07/13-32-20/train.log b/outputs/2025-12-07/13-32-20/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-07/15-19-07/.hydra/config.yaml b/outputs/2025-12-07/15-19-07/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8ed44712315daeaba74ec28e53be85c8d4327ffb
--- /dev/null
+++ b/outputs/2025-12-07/15-19-07/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: rubikscube-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 5
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-07/15-19-07/.hydra/hydra.yaml b/outputs/2025-12-07/15-19-07/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..be8158ee7e175786f5f2bff906129d743e366f92
--- /dev/null
+++ b/outputs/2025-12-07/15-19-07/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube
+ - trainer.experiment_name=rubikscube-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube,system.CUDA_VISIBLE_DEVICES='4,5,6,7',trainer.experiment_name=rubikscube-frommlp,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-07/15-19-07
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-07/15-19-07/.hydra/overrides.yaml b/outputs/2025-12-07/15-19-07/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a80ed67f273f2c0116f76aed0cf264b6db05b525
--- /dev/null
+++ b/outputs/2025-12-07/15-19-07/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=4
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube
+- trainer.experiment_name=rubikscube-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-07/15-55-18/.hydra/hydra.yaml b/outputs/2025-12-07/15-55-18/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b4ab640c21dade6b425cdf18c1e65d37b811b0fa
--- /dev/null
+++ b/outputs/2025-12-07/15-55-18/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube
+ - trainer.experiment_name=rubikscube-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube,system.CUDA_VISIBLE_DEVICES='4,5,6,7',trainer.experiment_name=rubikscube-frommlp,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-07/15-55-18
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-07/15-55-18/.hydra/overrides.yaml b/outputs/2025-12-07/15-55-18/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a80ed67f273f2c0116f76aed0cf264b6db05b525
--- /dev/null
+++ b/outputs/2025-12-07/15-55-18/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=4
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube
+- trainer.experiment_name=rubikscube-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-07/16-13-03/.hydra/config.yaml b/outputs/2025-12-07/16-13-03/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..05e2e60a38740aabee22576a421d4d16f585daa9
--- /dev/null
+++ b/outputs/2025-12-07/16-13-03/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 3
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-07/16-13-03/.hydra/hydra.yaml b/outputs/2025-12-07/16-13-03/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..17b5a387ea7e49f5b50c371e1f4d41345a43de3e
--- /dev/null
+++ b/outputs/2025-12-07/16-13-03/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=rubikscube
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=rubikscube,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-07/16-13-03
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-07/16-13-03/.hydra/overrides.yaml b/outputs/2025-12-07/16-13-03/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..074482467edc64a15411978fd0a1b97591a95613
--- /dev/null
+++ b/outputs/2025-12-07/16-13-03/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=rubikscube
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-07/16-13-03/train.log b/outputs/2025-12-07/16-13-03/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-07/18-02-27/.hydra/config.yaml b/outputs/2025-12-07/18-02-27/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..148e6229700878a07e0cd7025cb17326cda82a3c
--- /dev/null
+++ b/outputs/2025-12-07/18-02-27/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 2
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-07/18-02-27/.hydra/hydra.yaml b/outputs/2025-12-07/18-02-27/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d6c018250240acf588bd7efbbc8211937ee9b032
--- /dev/null
+++ b/outputs/2025-12-07/18-02-27/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=rubikscube
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=rubikscube,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-07/18-02-27
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-07/18-02-27/.hydra/overrides.yaml b/outputs/2025-12-07/18-02-27/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..074482467edc64a15411978fd0a1b97591a95613
--- /dev/null
+++ b/outputs/2025-12-07/18-02-27/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=rubikscube
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-07/18-02-27/train.log b/outputs/2025-12-07/18-02-27/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-07/21-59-48/.hydra/config.yaml b/outputs/2025-12-07/21-59-48/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..44a3a809f2350d3ac41ab3f4fceb92c620f7f214
--- /dev/null
+++ b/outputs/2025-12-07/21-59-48/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: rubikscube-1
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 1
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-1.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-07/21-59-48/.hydra/hydra.yaml b/outputs/2025-12-07/21-59-48/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..478d0418c8932818d1d099729c2f1354b5333ee7
--- /dev/null
+++ b/outputs/2025-12-07/21-59-48/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-1.5B-Instruct
+ - trainer.experiment_name=rubikscube-1
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-1.5B-Instruct,system.CUDA_VISIBLE_DEVICES='4,5,6,7',trainer.experiment_name=rubikscube-1,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-07/21-59-48
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-07/21-59-48/.hydra/overrides.yaml b/outputs/2025-12-07/21-59-48/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1d23e7cc19660126391ad1564f6d9f1601ad2b47
--- /dev/null
+++ b/outputs/2025-12-07/21-59-48/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-1.5B-Instruct
+- trainer.experiment_name=rubikscube-1
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-08/00-34-18/.hydra/config.yaml b/outputs/2025-12-08/00-34-18/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0b33c803d63e1e57502f03c728aa2dd540e0d003
--- /dev/null
+++ b/outputs/2025-12-08/00-34-18/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: rubikscube-1
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 1
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-3B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/00-34-18/.hydra/hydra.yaml b/outputs/2025-12-08/00-34-18/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e196e093b1be1c3bd111b53fc8a2c42eb7b83097
--- /dev/null
+++ b/outputs/2025-12-08/00-34-18/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-3B-Instruct
+ - trainer.experiment_name=rubikscube-1
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-3B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=rubikscube-1,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/00-34-18
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/00-34-18/.hydra/overrides.yaml b/outputs/2025-12-08/00-34-18/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3702609e0119fab881c46370c3e0f88d336a4f0f
--- /dev/null
+++ b/outputs/2025-12-08/00-34-18/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-3B-Instruct
+- trainer.experiment_name=rubikscube-1
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-08/00-34-18/train.log b/outputs/2025-12-08/00-34-18/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/04-39-51/.hydra/config.yaml b/outputs/2025-12-08/04-39-51/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0b33c803d63e1e57502f03c728aa2dd540e0d003
--- /dev/null
+++ b/outputs/2025-12-08/04-39-51/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: rubikscube-1
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 1
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-3B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/04-39-51/.hydra/hydra.yaml b/outputs/2025-12-08/04-39-51/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..83da7111188f1dcde69913f0625c39c1aa8f9e64
--- /dev/null
+++ b/outputs/2025-12-08/04-39-51/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-3B-Instruct
+ - trainer.experiment_name=rubikscube-1
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-3B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=rubikscube-1,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/04-39-51
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/04-39-51/.hydra/overrides.yaml b/outputs/2025-12-08/04-39-51/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3702609e0119fab881c46370c3e0f88d336a4f0f
--- /dev/null
+++ b/outputs/2025-12-08/04-39-51/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-3B-Instruct
+- trainer.experiment_name=rubikscube-1
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-08/09-09-15/.hydra/config.yaml b/outputs/2025-12-08/09-09-15/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0c8a8e62c9de66cff22bffc7a98d2d45f3d948ea
--- /dev/null
+++ b/outputs/2025-12-08/09-09-15/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube-1
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 1
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/09-09-15/.hydra/hydra.yaml b/outputs/2025-12-08/09-09-15/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..03f8a18e2007f6d66fc06f86a6047dd7970a8f03
--- /dev/null
+++ b/outputs/2025-12-08/09-09-15/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=rubikscube-1
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=rubikscube-1,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/09-09-15
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/09-09-15/train.log b/outputs/2025-12-08/09-09-15/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/10-11-41/.hydra/config.yaml b/outputs/2025-12-08/10-11-41/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fd8d1a9d03da83a406db364257a5251b74c406f9
--- /dev/null
+++ b/outputs/2025-12-08/10-11-41/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: rubikscube-2
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 2
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-1.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/10-11-41/.hydra/hydra.yaml b/outputs/2025-12-08/10-11-41/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..dabce059a5a015fdfd91797f6eed425b2d1b0434
--- /dev/null
+++ b/outputs/2025-12-08/10-11-41/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-1.5B-Instruct
+ - trainer.experiment_name=rubikscube-2
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-1.5B-Instruct,system.CUDA_VISIBLE_DEVICES='4,5,6,7',trainer.experiment_name=rubikscube-2,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/10-11-41
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/10-11-41/.hydra/overrides.yaml b/outputs/2025-12-08/10-11-41/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..5f27a55696956916072c9ad292081b06707d7ba6
--- /dev/null
+++ b/outputs/2025-12-08/10-11-41/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-1.5B-Instruct
+- trainer.experiment_name=rubikscube-2
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-08/10-11-41/train.log b/outputs/2025-12-08/10-11-41/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/10-37-22/.hydra/config.yaml b/outputs/2025-12-08/10-37-22/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..baed48fae0b57062d1d3869e4c408d0031fe0d78
--- /dev/null
+++ b/outputs/2025-12-08/10-37-22/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: frozen_lake-ppo-slippery-starpos
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 2
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '7'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordFrozenLake
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordFrozenLake
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/10-37-22/.hydra/hydra.yaml b/outputs/2025-12-08/10-37-22/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..213c088b8648f88b426ed1a0b355c2c341368465
--- /dev/null
+++ b/outputs/2025-12-08/10-37-22/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=frozen_lake-ppo-slippery-starpos
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='7',trainer.experiment_name=frozen_lake-ppo-slippery-starpos,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _3_frozen_lake
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/10-37-22
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/10-37-22/.hydra/overrides.yaml b/outputs/2025-12-08/10-37-22/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..add3906055cb2e1f83d5e1dda9c158870205dfc3
--- /dev/null
+++ b/outputs/2025-12-08/10-37-22/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=frozen_lake-ppo-slippery-starpos
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-08/10-37-22/train.log b/outputs/2025-12-08/10-37-22/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/10-57-24/.hydra/config.yaml b/outputs/2025-12-08/10-57-24/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..baed48fae0b57062d1d3869e4c408d0031fe0d78
--- /dev/null
+++ b/outputs/2025-12-08/10-57-24/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: frozen_lake-ppo-slippery-starpos
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 2
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '7'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordFrozenLake
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordFrozenLake
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/10-57-24/.hydra/hydra.yaml b/outputs/2025-12-08/10-57-24/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c50a72fc3fca6c03f8820cc1941841b919a60cc1
--- /dev/null
+++ b/outputs/2025-12-08/10-57-24/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=frozen_lake-ppo-slippery-starpos
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='7',trainer.experiment_name=frozen_lake-ppo-slippery-starpos,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _3_frozen_lake
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/10-57-24
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/10-57-24/.hydra/overrides.yaml b/outputs/2025-12-08/10-57-24/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..add3906055cb2e1f83d5e1dda9c158870205dfc3
--- /dev/null
+++ b/outputs/2025-12-08/10-57-24/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=frozen_lake-ppo-slippery-starpos
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-08/10-57-24/train.log b/outputs/2025-12-08/10-57-24/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/11-05-03/.hydra/config.yaml b/outputs/2025-12-08/11-05-03/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..327bfe03f6012ce68b61694e386205658505d936
--- /dev/null
+++ b/outputs/2025-12-08/11-05-03/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.3
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: frozen_lake-ppo-slippery-starpos
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 2
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '7'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordFrozenLake
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordFrozenLake
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/11-05-03/.hydra/hydra.yaml b/outputs/2025-12-08/11-05-03/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6d2f005eb5646ce125a78f22167008fb38314e2f
--- /dev/null
+++ b/outputs/2025-12-08/11-05-03/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=frozen_lake-ppo-slippery-starpos
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='7',trainer.experiment_name=frozen_lake-ppo-slippery-starpos,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _3_frozen_lake
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/11-05-03
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/11-05-03/.hydra/overrides.yaml b/outputs/2025-12-08/11-05-03/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..add3906055cb2e1f83d5e1dda9c158870205dfc3
--- /dev/null
+++ b/outputs/2025-12-08/11-05-03/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=frozen_lake-ppo-slippery-starpos
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-08/11-05-03/train.log b/outputs/2025-12-08/11-05-03/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/11-09-45/.hydra/config.yaml b/outputs/2025-12-08/11-09-45/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..baed48fae0b57062d1d3869e4c408d0031fe0d78
--- /dev/null
+++ b/outputs/2025-12-08/11-09-45/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: frozen_lake-ppo-slippery-starpos
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 2
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '7'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordFrozenLake
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordFrozenLake
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/11-09-45/.hydra/hydra.yaml b/outputs/2025-12-08/11-09-45/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7c0de031a32822fc96693fadb631d64d8453aaf5
--- /dev/null
+++ b/outputs/2025-12-08/11-09-45/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=frozen_lake-ppo-slippery-starpos
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='7',trainer.experiment_name=frozen_lake-ppo-slippery-starpos,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _3_frozen_lake
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/11-09-45
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/11-09-45/.hydra/overrides.yaml b/outputs/2025-12-08/11-09-45/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..add3906055cb2e1f83d5e1dda9c158870205dfc3
--- /dev/null
+++ b/outputs/2025-12-08/11-09-45/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=frozen_lake-ppo-slippery-starpos
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-08/11-09-45/train.log b/outputs/2025-12-08/11-09-45/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/11-18-06/.hydra/config.yaml b/outputs/2025-12-08/11-18-06/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8c80a97de74370f2082b5aeb96f55a3b813d48e1
--- /dev/null
+++ b/outputs/2025-12-08/11-18-06/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube-1
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 1
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 0,1
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/11-18-06/.hydra/hydra.yaml b/outputs/2025-12-08/11-18-06/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e4ac8aa825f59a3a2ed4a948d738700b07a05948
--- /dev/null
+++ b/outputs/2025-12-08/11-18-06/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=2
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=rubikscube-1
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1',trainer.experiment_name=rubikscube-1,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/11-18-06
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/11-18-06/.hydra/overrides.yaml b/outputs/2025-12-08/11-18-06/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ef46508cbe33c821d94f29b5952148497d65c2f2
--- /dev/null
+++ b/outputs/2025-12-08/11-18-06/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=2
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=rubikscube-1
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-08/11-18-06/train.log b/outputs/2025-12-08/11-18-06/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/11-25-31/.hydra/config.yaml b/outputs/2025-12-08/11-25-31/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..5ff7634705b9b27c680f5394302325c7ae030612
--- /dev/null
+++ b/outputs/2025-12-08/11-25-31/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: rubikscube-2
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 2
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-1.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/11-25-31/.hydra/hydra.yaml b/outputs/2025-12-08/11-25-31/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..61c50e718b9dc5268392de0456b34d7e2eed9c76
--- /dev/null
+++ b/outputs/2025-12-08/11-25-31/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='2,3'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=2
+ - model_path=Qwen/Qwen2.5-1.5B-Instruct
+ - trainer.experiment_name=rubikscube-2
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-1.5B-Instruct,system.CUDA_VISIBLE_DEVICES='2,3',trainer.experiment_name=rubikscube-2,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/11-25-31
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/11-25-31/.hydra/overrides.yaml b/outputs/2025-12-08/11-25-31/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7060e502cb77f3ae428c6d0ac1a3cbf9c0a74d50
--- /dev/null
+++ b/outputs/2025-12-08/11-25-31/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='2,3'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=2
+- model_path=Qwen/Qwen2.5-1.5B-Instruct
+- trainer.experiment_name=rubikscube-2
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-08/11-25-31/train.log b/outputs/2025-12-08/11-25-31/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/11-31-28/.hydra/config.yaml b/outputs/2025-12-08/11-31-28/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d04efa66a3174f2521f8c5abbe5e5541f040f0eb
--- /dev/null
+++ b/outputs/2025-12-08/11-31-28/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: rubikscube-2
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 2
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 4,5
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-3B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/11-31-28/.hydra/hydra.yaml b/outputs/2025-12-08/11-31-28/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..89b866631f68e1255f0e0b0a89f36ecdfdd4be24
--- /dev/null
+++ b/outputs/2025-12-08/11-31-28/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=2
+ - model_path=Qwen/Qwen2.5-3B-Instruct
+ - trainer.experiment_name=rubikscube-2
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-3B-Instruct,system.CUDA_VISIBLE_DEVICES='4,5',trainer.experiment_name=rubikscube-2,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/11-31-28
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/11-31-28/.hydra/overrides.yaml b/outputs/2025-12-08/11-31-28/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d1f7332ebb0e91fb6ddf9fe72174d926eacccbe3
--- /dev/null
+++ b/outputs/2025-12-08/11-31-28/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='4,5'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=2
+- model_path=Qwen/Qwen2.5-3B-Instruct
+- trainer.experiment_name=rubikscube-2
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-08/11-31-28/train.log b/outputs/2025-12-08/11-31-28/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/14-02-45/.hydra/config.yaml b/outputs/2025-12-08/14-02-45/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8d2749edc1065c8d09eb1003ea5360722a9b1295
--- /dev/null
+++ b/outputs/2025-12-08/14-02-45/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: rubikscube-1-starpos
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 1
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 4,5
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-1.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/14-02-45/.hydra/hydra.yaml b/outputs/2025-12-08/14-02-45/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..379f024f7397784c5015c30e82665b76037c8b33
--- /dev/null
+++ b/outputs/2025-12-08/14-02-45/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=2
+ - model_path=Qwen/Qwen2.5-1.5B-Instruct
+ - trainer.experiment_name=rubikscube-1-starpos
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-1.5B-Instruct,system.CUDA_VISIBLE_DEVICES='4,5',trainer.experiment_name=rubikscube-1-starpos,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/14-02-45
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/14-02-45/.hydra/overrides.yaml b/outputs/2025-12-08/14-02-45/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..02f057bda792f2c564372ba621b9b8aabe762c48
--- /dev/null
+++ b/outputs/2025-12-08/14-02-45/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='4,5'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=2
+- model_path=Qwen/Qwen2.5-1.5B-Instruct
+- trainer.experiment_name=rubikscube-1-starpos
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-08/14-02-45/train.log b/outputs/2025-12-08/14-02-45/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/14-51-07/.hydra/config.yaml b/outputs/2025-12-08/14-51-07/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ac3e1973e17361859f89d8eb0210aefa08a2f8c8
--- /dev/null
+++ b/outputs/2025-12-08/14-51-07/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube-3
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 3
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/14-51-07/.hydra/hydra.yaml b/outputs/2025-12-08/14-51-07/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..02afb3dc85f13f05911b32223813ce5b04858f3f
--- /dev/null
+++ b/outputs/2025-12-08/14-51-07/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='6,7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=2
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=rubikscube-3
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='6,7',trainer.experiment_name=rubikscube-3,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/14-51-07
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/14-51-07/.hydra/overrides.yaml b/outputs/2025-12-08/14-51-07/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..75ef159ad199f9ed86a58c30e9f6996550b2374d
--- /dev/null
+++ b/outputs/2025-12-08/14-51-07/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='6,7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=2
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=rubikscube-3
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-08/14-51-07/train.log b/outputs/2025-12-08/14-51-07/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/16-44-17/.hydra/config.yaml b/outputs/2025-12-08/16-44-17/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ac3e1973e17361859f89d8eb0210aefa08a2f8c8
--- /dev/null
+++ b/outputs/2025-12-08/16-44-17/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.2
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.001
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 1
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.001
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube-3
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 3
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/16-44-17/.hydra/hydra.yaml b/outputs/2025-12-08/16-44-17/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..07d926b05798a1242b48d9fff8222b0829a30a26
--- /dev/null
+++ b/outputs/2025-12-08/16-44-17/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='6,7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=2
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=rubikscube-3
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.001
+ - actor_rollout_ref.actor.kl_loss_coef=0.001
+ - actor_rollout_ref.actor.clip_ratio_high=0.2
+ - actor_rollout_ref.rollout.rollout_filter_ratio=1
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.2,actor_rollout_ref.actor.kl_loss_coef=0.001,actor_rollout_ref.rollout.rollout_filter_ratio=1,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.001,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='6,7',trainer.experiment_name=rubikscube-3,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/16-44-17
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/16-44-17/.hydra/overrides.yaml b/outputs/2025-12-08/16-44-17/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..75ef159ad199f9ed86a58c30e9f6996550b2374d
--- /dev/null
+++ b/outputs/2025-12-08/16-44-17/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='6,7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=2
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=rubikscube-3
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.001
+- actor_rollout_ref.actor.kl_loss_coef=0.001
+- actor_rollout_ref.actor.clip_ratio_high=0.2
+- actor_rollout_ref.rollout.rollout_filter_ratio=1
diff --git a/outputs/2025-12-08/16-44-17/train.log b/outputs/2025-12-08/16-44-17/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/16-54-39/.hydra/config.yaml b/outputs/2025-12-08/16-54-39/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..acfd529b6bbf31cbf3a89b726176c3f0a388320a
--- /dev/null
+++ b/outputs/2025-12-08/16-54-39/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube-1-starpos
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 1
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '0'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/16-54-39/.hydra/hydra.yaml b/outputs/2025-12-08/16-54-39/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e731254d79894d0f7862173b7e8ac36bfe0eb9de
--- /dev/null
+++ b/outputs/2025-12-08/16-54-39/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - custom_envs.rubikscube.env_config.scramble_depth=1
+ - trainer.experiment_name=rubikscube-1-starpos
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=1,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0',trainer.experiment_name=rubikscube-1-starpos,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/16-54-39
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/16-54-39/.hydra/overrides.yaml b/outputs/2025-12-08/16-54-39/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..71ee7689b21e6bfd0114f266aadcd61b72d8231f
--- /dev/null
+++ b/outputs/2025-12-08/16-54-39/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='0'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- custom_envs.rubikscube.env_config.scramble_depth=1
+- trainer.experiment_name=rubikscube-1-starpos
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-08/16-54-39/train.log b/outputs/2025-12-08/16-54-39/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/17-11-46/.hydra/config.yaml b/outputs/2025-12-08/17-11-46/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a3ef1c791b4414c41e4fbeba4117faa7da4d4e8d
--- /dev/null
+++ b/outputs/2025-12-08/17-11-46/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: rubikscube-3-starpos
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 3
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '3'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-1.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/17-11-46/.hydra/hydra.yaml b/outputs/2025-12-08/17-11-46/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e8fb474e6c840bb58b2c7b584935c1a0e0ef3dac
--- /dev/null
+++ b/outputs/2025-12-08/17-11-46/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='3'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=1
+ - model_path=Qwen/Qwen2.5-1.5B-Instruct
+ - custom_envs.rubikscube.env_config.scramble_depth=3
+ - trainer.experiment_name=rubikscube-3-starpos
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=3,model_path=Qwen/Qwen2.5-1.5B-Instruct,system.CUDA_VISIBLE_DEVICES='3',trainer.experiment_name=rubikscube-3-starpos,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/17-11-46
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/17-11-46/.hydra/overrides.yaml b/outputs/2025-12-08/17-11-46/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..cdd98455bea0328b0b24fad64db33a7f9cae25b5
--- /dev/null
+++ b/outputs/2025-12-08/17-11-46/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='3'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=1
+- model_path=Qwen/Qwen2.5-1.5B-Instruct
+- custom_envs.rubikscube.env_config.scramble_depth=3
+- trainer.experiment_name=rubikscube-3-starpos
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-08/17-11-46/train.log b/outputs/2025-12-08/17-11-46/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/20-11-22/.hydra/config.yaml b/outputs/2025-12-08/20-11-22/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ccc80239811405e71df4162504534bbbc6b128af
--- /dev/null
+++ b/outputs/2025-12-08/20-11-22/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube-3-starpos-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 3
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '7'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_3
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/20-11-22/.hydra/hydra.yaml b/outputs/2025-12-08/20-11-22/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8294573539fd0933f480c3030441689ce9779977
--- /dev/null
+++ b/outputs/2025-12-08/20-11-22/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_3
+ - custom_envs.rubikscube.env_config.scramble_depth=3
+ - trainer.experiment_name=rubikscube-3-starpos-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=3,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_3,system.CUDA_VISIBLE_DEVICES='7',trainer.experiment_name=rubikscube-3-starpos-frommlp,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/20-11-22
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/20-11-22/.hydra/overrides.yaml b/outputs/2025-12-08/20-11-22/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0958649014230318447a355e7abdbe3c46b7667d
--- /dev/null
+++ b/outputs/2025-12-08/20-11-22/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_3
+- custom_envs.rubikscube.env_config.scramble_depth=3
+- trainer.experiment_name=rubikscube-3-starpos-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-08/20-11-22/train.log b/outputs/2025-12-08/20-11-22/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/20-37-35/.hydra/config.yaml b/outputs/2025-12-08/20-37-35/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b56b2b2405d57f0b7adc39309bddf0b611b231be
--- /dev/null
+++ b/outputs/2025-12-08/20-37-35/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube-1-starpos-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 1
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '2'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_1
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/20-37-35/.hydra/hydra.yaml b/outputs/2025-12-08/20-37-35/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8401addcc67e4da90f71b02828315245a800952a
--- /dev/null
+++ b/outputs/2025-12-08/20-37-35/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='2'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_1
+ - custom_envs.rubikscube.env_config.scramble_depth=1
+ - trainer.experiment_name=rubikscube-1-starpos-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=1,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_1,system.CUDA_VISIBLE_DEVICES='2',trainer.experiment_name=rubikscube-1-starpos-frommlp,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/20-37-35
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/20-37-35/.hydra/overrides.yaml b/outputs/2025-12-08/20-37-35/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..5457aacefb6e57638ec9001680cb5c9f1e3c5ba6
--- /dev/null
+++ b/outputs/2025-12-08/20-37-35/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='2'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_1
+- custom_envs.rubikscube.env_config.scramble_depth=1
+- trainer.experiment_name=rubikscube-1-starpos-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-08/20-37-35/train.log b/outputs/2025-12-08/20-37-35/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/20-48-28/.hydra/config.yaml b/outputs/2025-12-08/20-48-28/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2e3422ccfa4d7a8096b5e62f4405d92bcf2ea7c5
--- /dev/null
+++ b/outputs/2025-12-08/20-48-28/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: rubikscube-2-starpos
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 2
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-1.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/20-48-28/.hydra/hydra.yaml b/outputs/2025-12-08/20-48-28/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..04ee313b22061665b6027e2dc148eb2081ef3d5e
--- /dev/null
+++ b/outputs/2025-12-08/20-48-28/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='2,3'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=2
+ - model_path=Qwen/Qwen2.5-1.5B-Instruct
+ - custom_envs.rubikscube.env_config.scramble_depth=2
+ - trainer.experiment_name=rubikscube-2-starpos
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=2,model_path=Qwen/Qwen2.5-1.5B-Instruct,system.CUDA_VISIBLE_DEVICES='2,3',trainer.experiment_name=rubikscube-2-starpos,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/20-48-28
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/20-48-28/.hydra/overrides.yaml b/outputs/2025-12-08/20-48-28/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fee48d983c8c66e5a758f83b51d81a1368a40c59
--- /dev/null
+++ b/outputs/2025-12-08/20-48-28/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='2,3'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=2
+- model_path=Qwen/Qwen2.5-1.5B-Instruct
+- custom_envs.rubikscube.env_config.scramble_depth=2
+- trainer.experiment_name=rubikscube-2-starpos
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-08/20-48-28/train.log b/outputs/2025-12-08/20-48-28/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/22-09-38/.hydra/config.yaml b/outputs/2025-12-08/22-09-38/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..25da20758e28004f160893e57604f09607b16c32
--- /dev/null
+++ b/outputs/2025-12-08/22-09-38/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: rubikscube-3-starpos
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 3
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 0,1
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-1.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/22-09-38/.hydra/hydra.yaml b/outputs/2025-12-08/22-09-38/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b5329e3df427748e959f57e6f8bcb94d3c249c41
--- /dev/null
+++ b/outputs/2025-12-08/22-09-38/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=2
+ - model_path=Qwen/Qwen2.5-1.5B-Instruct
+ - custom_envs.rubikscube.env_config.scramble_depth=3
+ - trainer.experiment_name=rubikscube-3-starpos
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=3,model_path=Qwen/Qwen2.5-1.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1',trainer.experiment_name=rubikscube-3-starpos,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/22-09-38
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/22-09-38/.hydra/overrides.yaml b/outputs/2025-12-08/22-09-38/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..cda87fa4b1152d583c8c6b68b5e393cec67bd0e6
--- /dev/null
+++ b/outputs/2025-12-08/22-09-38/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='0,1'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=2
+- model_path=Qwen/Qwen2.5-1.5B-Instruct
+- custom_envs.rubikscube.env_config.scramble_depth=3
+- trainer.experiment_name=rubikscube-3-starpos
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-08/22-09-38/train.log b/outputs/2025-12-08/22-09-38/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/22-18-27/.hydra/config.yaml b/outputs/2025-12-08/22-18-27/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..81a426671ab4ecaf88223db8e7575d6d0af15107
--- /dev/null
+++ b/outputs/2025-12-08/22-18-27/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: rubikscube-1-starpos-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 1
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_1
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/22-18-27/.hydra/hydra.yaml b/outputs/2025-12-08/22-18-27/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..522ef0efa1e0ec90f5a3fa5573366359bacffd6f
--- /dev/null
+++ b/outputs/2025-12-08/22-18-27/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='6,7'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=2
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_1
+ - custom_envs.rubikscube.env_config.scramble_depth=1
+ - trainer.experiment_name=rubikscube-1-starpos-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=1,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_1,system.CUDA_VISIBLE_DEVICES='6,7',trainer.experiment_name=rubikscube-1-starpos-frommlp,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/22-18-27
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/22-18-27/.hydra/overrides.yaml b/outputs/2025-12-08/22-18-27/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3dc6595938af2849185d5d164b1f970486761882
--- /dev/null
+++ b/outputs/2025-12-08/22-18-27/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='6,7'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=2
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_1
+- custom_envs.rubikscube.env_config.scramble_depth=1
+- trainer.experiment_name=rubikscube-1-starpos-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-08/22-18-27/train.log b/outputs/2025-12-08/22-18-27/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-08/22-36-50/.hydra/config.yaml b/outputs/2025-12-08/22-36-50/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..99d568fecaaa8ae47450601f06ef7a1ce02a4511
--- /dev/null
+++ b/outputs/2025-12-08/22-36-50/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: rubikscube-2-starpos-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 2
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 4,5
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_2
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-08/22-36-50/.hydra/hydra.yaml b/outputs/2025-12-08/22-36-50/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d9126058afe0adc58041239bdb6573644b6abab5
--- /dev/null
+++ b/outputs/2025-12-08/22-36-50/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=2
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_2
+ - custom_envs.rubikscube.env_config.scramble_depth=2
+ - trainer.experiment_name=rubikscube-2-starpos-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=2,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_2,system.CUDA_VISIBLE_DEVICES='4,5',trainer.experiment_name=rubikscube-2-starpos-frommlp,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-08/22-36-50
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-08/22-36-50/.hydra/overrides.yaml b/outputs/2025-12-08/22-36-50/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f2ff72424b793b2e6e4d35e528aeae81d261411a
--- /dev/null
+++ b/outputs/2025-12-08/22-36-50/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='4,5'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=2
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_2
+- custom_envs.rubikscube.env_config.scramble_depth=2
+- trainer.experiment_name=rubikscube-2-starpos-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-08/22-36-50/train.log b/outputs/2025-12-08/22-36-50/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-09/00-00-46/.hydra/config.yaml b/outputs/2025-12-09/00-00-46/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8fa01f3e92b951829ac93835a55f073b1bf709ce
--- /dev/null
+++ b/outputs/2025-12-09/00-00-46/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: rubikscube-3-starpos-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 3
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 4,5
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_3
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-09/00-00-46/.hydra/hydra.yaml b/outputs/2025-12-09/00-00-46/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f69e5e9abc0c48eba800f8c38ad2093ee16d81c6
--- /dev/null
+++ b/outputs/2025-12-09/00-00-46/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=2
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_3
+ - custom_envs.rubikscube.env_config.scramble_depth=3
+ - trainer.experiment_name=rubikscube-3-starpos-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=3,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_3,system.CUDA_VISIBLE_DEVICES='4,5',trainer.experiment_name=rubikscube-3-starpos-frommlp,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-09/00-00-46
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-09/00-00-46/.hydra/overrides.yaml b/outputs/2025-12-09/00-00-46/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a1c55dde178a42c2c9d592bbca9fd81edd4664a7
--- /dev/null
+++ b/outputs/2025-12-09/00-00-46/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='4,5'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=2
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_3
+- custom_envs.rubikscube.env_config.scramble_depth=3
+- trainer.experiment_name=rubikscube-3-starpos-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-09/00-00-46/train.log b/outputs/2025-12-09/00-00-46/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-09/01-24-32/.hydra/config.yaml b/outputs/2025-12-09/01-24-32/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8fa01f3e92b951829ac93835a55f073b1bf709ce
--- /dev/null
+++ b/outputs/2025-12-09/01-24-32/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: rubikscube-3-starpos-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 3
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 4,5
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_3
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-09/01-24-32/.hydra/hydra.yaml b/outputs/2025-12-09/01-24-32/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e3ba9a4c02362b170fa2941667ac9e3669c79c89
--- /dev/null
+++ b/outputs/2025-12-09/01-24-32/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=2
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_3
+ - custom_envs.rubikscube.env_config.scramble_depth=3
+ - trainer.experiment_name=rubikscube-3-starpos-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=3,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_3,system.CUDA_VISIBLE_DEVICES='4,5',trainer.experiment_name=rubikscube-3-starpos-frommlp,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-09/01-24-32
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-09/01-24-32/.hydra/overrides.yaml b/outputs/2025-12-09/01-24-32/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a1c55dde178a42c2c9d592bbca9fd81edd4664a7
--- /dev/null
+++ b/outputs/2025-12-09/01-24-32/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='4,5'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=2
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_3
+- custom_envs.rubikscube.env_config.scramble_depth=3
+- trainer.experiment_name=rubikscube-3-starpos-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-09/01-24-32/train.log b/outputs/2025-12-09/01-24-32/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-09/09-09-41/.hydra/config.yaml b/outputs/2025-12-09/09-09-41/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..cc56c7cfb050effcb922ef8ee16dcc6dc2b4aa8f
--- /dev/null
+++ b/outputs/2025-12-09/09-09-41/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube-1-starpos-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 1
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '0'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_1
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-09/09-09-41/.hydra/hydra.yaml b/outputs/2025-12-09/09-09-41/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..df7b49b9dddcf89f81568362ab1c5e14530e49e2
--- /dev/null
+++ b/outputs/2025-12-09/09-09-41/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_1
+ - custom_envs.rubikscube.env_config.scramble_depth=1
+ - trainer.experiment_name=rubikscube-1-starpos-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=1,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_1,system.CUDA_VISIBLE_DEVICES='0',trainer.experiment_name=rubikscube-1-starpos-frommlp,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-09/09-09-41
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-09/09-09-41/.hydra/overrides.yaml b/outputs/2025-12-09/09-09-41/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b0867a9360f34cab5e4b47261f74b7855ff0733e
--- /dev/null
+++ b/outputs/2025-12-09/09-09-41/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='0'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_1
+- custom_envs.rubikscube.env_config.scramble_depth=1
+- trainer.experiment_name=rubikscube-1-starpos-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-09/09-09-41/train.log b/outputs/2025-12-09/09-09-41/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-09/09-09-42/.hydra/config.yaml b/outputs/2025-12-09/09-09-42/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..dbb80f36c0f4353bc5907619bafc77efc2d27c4d
--- /dev/null
+++ b/outputs/2025-12-09/09-09-42/.hydra/config.yaml
@@ -0,0 +1,806 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: rubikscube-2-starpos-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 2
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '1'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_2
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
+ll
diff --git a/outputs/2025-12-09/09-09-42/.hydra/hydra.yaml b/outputs/2025-12-09/09-09-42/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1f8affc9b3c2a4b9fc7ebf23a6f085e590999ed4
--- /dev/null
+++ b/outputs/2025-12-09/09-09-42/.hydra/hydra.yaml
@@ -0,0 +1,181 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='1'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_2
+ - custom_envs.rubikscube.env_config.scramble_depth=2
+ - trainer.experiment_name=rubikscube-2-starpos-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=2,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_2,system.CUDA_VISIBLE_DEVICES='1',trainer.experiment_name=rubikscube-2-starpos-frommlp,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-09/09-09-42
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
+se: false
diff --git a/outputs/2025-12-09/09-09-42/.hydra/overrides.yaml b/outputs/2025-12-09/09-09-42/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..02d4576c671846853687660ebaa0783c81dbdfba
--- /dev/null
+++ b/outputs/2025-12-09/09-09-42/.hydra/overrides.yaml
@@ -0,0 +1,12 @@
+- system.CUDA_VISIBLE_DEVICES='1'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_rubikscube_2
+- custom_envs.rubikscube.env_config.scramble_depth=2
+- trainer.experiment_name=rubikscube-2-starpos-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+0.25
diff --git a/outputs/2025-12-09/09-09-42/train.log b/outputs/2025-12-09/09-09-42/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-09/10-03-00/.hydra/config.yaml b/outputs/2025-12-09/10-03-00/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2cb054673be247362134212467ebdf0f01f3d127
--- /dev/null
+++ b/outputs/2025-12-09/10-03-00/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: rubikscube-3-starpos-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 3
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 3,4
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_3
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-09/10-03-00/.hydra/hydra.yaml b/outputs/2025-12-09/10-03-00/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..32614602ae6f548b72c3828406ef8561ba6dfb6a
--- /dev/null
+++ b/outputs/2025-12-09/10-03-00/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='3,4'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=2
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_3
+ - custom_envs.rubikscube.env_config.scramble_depth=3
+ - trainer.experiment_name=rubikscube-3-starpos-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=3,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_3,system.CUDA_VISIBLE_DEVICES='3,4',trainer.experiment_name=rubikscube-3-starpos-frommlp,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-09/10-03-00
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-09/10-03-00/.hydra/overrides.yaml b/outputs/2025-12-09/10-03-00/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d22f4feaad276b0fef9bd429b702fcc4c2fc8e95
--- /dev/null
+++ b/outputs/2025-12-09/10-03-00/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='3,4'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=2
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_rubikscube_3
+- custom_envs.rubikscube.env_config.scramble_depth=3
+- trainer.experiment_name=rubikscube-3-starpos-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-09/10-03-00/train.log b/outputs/2025-12-09/10-03-00/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-09/10-25-05/.hydra/config.yaml b/outputs/2025-12-09/10-25-05/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..be986dfc9f05f7babe234fa36b33fdc07647843b
--- /dev/null
+++ b/outputs/2025-12-09/10-25-05/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8096
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: game_2048
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 2
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 5,6
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-1.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 200
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-09/10-25-05/.hydra/hydra.yaml b/outputs/2025-12-09/10-25-05/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e5d049f3c79e1e53e43ede9b9f73f08729e4d130
--- /dev/null
+++ b/outputs/2025-12-09/10-25-05/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='5,6'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=2
+ - model_path=Qwen/Qwen2.5-1.5B-Instruct
+ - trainer.experiment_name=game_2048
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-1.5B-Instruct,system.CUDA_VISIBLE_DEVICES='5,6',trainer.experiment_name=game_2048,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-09/10-25-05
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-09/10-25-05/.hydra/overrides.yaml b/outputs/2025-12-09/10-25-05/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..dc802c13401b9fb39a7ed128857f10f60daeaa11
--- /dev/null
+++ b/outputs/2025-12-09/10-25-05/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='5,6'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=2
+- model_path=Qwen/Qwen2.5-1.5B-Instruct
+- trainer.experiment_name=game_2048
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-09/10-25-05/train.log b/outputs/2025-12-09/10-25-05/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-09/11-17-41/.hydra/config.yaml b/outputs/2025-12-09/11-17-41/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d5b21f7bece1fa6c5f05b7fbb2820933bdc8c98e
--- /dev/null
+++ b/outputs/2025-12-09/11-17-41/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: rubikscube-1-starpos-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 1
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 2,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_1
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-09/11-17-41/.hydra/hydra.yaml b/outputs/2025-12-09/11-17-41/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..26b576be4b9e11b01a6b9b44b15bb41a540d9f34
--- /dev/null
+++ b/outputs/2025-12-09/11-17-41/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='2,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_1
+ - custom_envs.rubikscube.env_config.scramble_depth=1
+ - trainer.experiment_name=rubikscube-1-starpos-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=1,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_1,system.CUDA_VISIBLE_DEVICES='2,5,6,7',trainer.experiment_name=rubikscube-1-starpos-frommlp,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-09/11-17-41
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-09/11-17-41/.hydra/overrides.yaml b/outputs/2025-12-09/11-17-41/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2dba320015f26c3f2aa5377714fab2e9f52dd7ba
--- /dev/null
+++ b/outputs/2025-12-09/11-17-41/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='2,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=4
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_1
+- custom_envs.rubikscube.env_config.scramble_depth=1
+- trainer.experiment_name=rubikscube-1-starpos-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-09/11-17-41/train.log b/outputs/2025-12-09/11-17-41/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-09/12-16-01/.hydra/config.yaml b/outputs/2025-12-09/12-16-01/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4864d4afa5407c6d6527487807c73e84812d09b3
--- /dev/null
+++ b/outputs/2025-12-09/12-16-01/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: rubikscube-2-starpos-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 2
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_2
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-09/12-16-01/.hydra/hydra.yaml b/outputs/2025-12-09/12-16-01/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fd1a0714340893b7bcd81807ebbbcaa258253470
--- /dev/null
+++ b/outputs/2025-12-09/12-16-01/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_2
+ - custom_envs.rubikscube.env_config.scramble_depth=2
+ - trainer.experiment_name=rubikscube-2-starpos-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=2,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_2,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=rubikscube-2-starpos-frommlp,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-09/12-16-01
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-09/12-16-01/.hydra/overrides.yaml b/outputs/2025-12-09/12-16-01/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..62c4030aaf4ee15330e72cc27e1e250f3e9a88a4
--- /dev/null
+++ b/outputs/2025-12-09/12-16-01/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=4
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_2
+- custom_envs.rubikscube.env_config.scramble_depth=2
+- trainer.experiment_name=rubikscube-2-starpos-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-09/12-16-01/train.log b/outputs/2025-12-09/12-16-01/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-09/12-17-06/.hydra/config.yaml b/outputs/2025-12-09/12-17-06/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b9f085d8865c0faa4276602ea391a6a30fcb65ff
--- /dev/null
+++ b/outputs/2025-12-09/12-17-06/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: rubikscube-3-starpos-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 3
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_3
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-09/12-17-06/.hydra/hydra.yaml b/outputs/2025-12-09/12-17-06/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..30f7bac771bad505d961c62d4a92c748a45faf16
--- /dev/null
+++ b/outputs/2025-12-09/12-17-06/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_3
+ - custom_envs.rubikscube.env_config.scramble_depth=3
+ - trainer.experiment_name=rubikscube-3-starpos-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=3,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_3,system.CUDA_VISIBLE_DEVICES='4,5,6,7',trainer.experiment_name=rubikscube-3-starpos-frommlp,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-09/12-17-06
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-09/12-17-06/.hydra/overrides.yaml b/outputs/2025-12-09/12-17-06/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d304c2dd3f1306ba0c3d3cca6ad6ecc392176862
--- /dev/null
+++ b/outputs/2025-12-09/12-17-06/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=4
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_3
+- custom_envs.rubikscube.env_config.scramble_depth=3
+- trainer.experiment_name=rubikscube-3-starpos-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-09/12-17-06/train.log b/outputs/2025-12-09/12-17-06/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-09/14-14-46/.hydra/config.yaml b/outputs/2025-12-09/14-14-46/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..93fa77cb58002f691f429c2de0b16e8e6ac9523b
--- /dev/null
+++ b/outputs/2025-12-09/14-14-46/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: rubikscube-2-starpos-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 2
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_2
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-09/14-14-46/.hydra/hydra.yaml b/outputs/2025-12-09/14-14-46/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4760aaf4e95303ca3cba2c1330bfbe58a501607e
--- /dev/null
+++ b/outputs/2025-12-09/14-14-46/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_2
+ - custom_envs.rubikscube.env_config.scramble_depth=2
+ - trainer.experiment_name=rubikscube-2-starpos-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=2,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_2,system.CUDA_VISIBLE_DEVICES='4,5,6,7',trainer.experiment_name=rubikscube-2-starpos-frommlp,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-09/14-14-46
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-09/14-14-46/.hydra/overrides.yaml b/outputs/2025-12-09/14-14-46/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3324ec0f5c0c74d30c408aa82c96ab2ed7baae9c
--- /dev/null
+++ b/outputs/2025-12-09/14-14-46/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=4
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_2
+- custom_envs.rubikscube.env_config.scramble_depth=2
+- trainer.experiment_name=rubikscube-2-starpos-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-09/14-14-46/train.log b/outputs/2025-12-09/14-14-46/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-09/14-37-30/.hydra/config.yaml b/outputs/2025-12-09/14-37-30/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b9f085d8865c0faa4276602ea391a6a30fcb65ff
--- /dev/null
+++ b/outputs/2025-12-09/14-37-30/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: rubikscube-3-starpos-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 3
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_3
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-09/14-37-30/.hydra/hydra.yaml b/outputs/2025-12-09/14-37-30/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8480fbaee259ed8981e5ece6be6dd7c94e1b1597
--- /dev/null
+++ b/outputs/2025-12-09/14-37-30/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_3
+ - custom_envs.rubikscube.env_config.scramble_depth=3
+ - trainer.experiment_name=rubikscube-3-starpos-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=3,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_3,system.CUDA_VISIBLE_DEVICES='4,5,6,7',trainer.experiment_name=rubikscube-3-starpos-frommlp,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-09/14-37-30
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-09/14-37-30/.hydra/overrides.yaml b/outputs/2025-12-09/14-37-30/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d304c2dd3f1306ba0c3d3cca6ad6ecc392176862
--- /dev/null
+++ b/outputs/2025-12-09/14-37-30/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=4
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_rubikscube_3
+- custom_envs.rubikscube.env_config.scramble_depth=3
+- trainer.experiment_name=rubikscube-3-starpos-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-09/14-37-30/train.log b/outputs/2025-12-09/14-37-30/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-09/15-06-27/.hydra/config.yaml b/outputs/2025-12-09/15-06-27/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f75f5a2ff3609cdfbb3bb7d96f829c484ec5cd2e
--- /dev/null
+++ b/outputs/2025-12-09/15-06-27/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: rubikscube-3-starpos
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: 3
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: 4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-3B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-09/15-06-27/.hydra/hydra.yaml b/outputs/2025-12-09/15-06-27/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9bc8308e92a725c353870dba88b50d4e335e6310
--- /dev/null
+++ b/outputs/2025-12-09/15-06-27/.hydra/hydra.yaml
@@ -0,0 +1,180 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-3B-Instruct
+ - custom_envs.rubikscube.env_config.scramble_depth=3
+ - trainer.experiment_name=rubikscube-3-starpos
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.rubikscube.env_config.scramble_depth=3,model_path=Qwen/Qwen2.5-3B-Instruct,system.CUDA_VISIBLE_DEVICES='4,5,6,7',trainer.experiment_name=rubikscube-3-starpos,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _10_rubikscube
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-09/15-06-27
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-09/15-06-27/.hydra/overrides.yaml b/outputs/2025-12-09/15-06-27/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f544fc730abe122ada71d403ead4a681801735e0
--- /dev/null
+++ b/outputs/2025-12-09/15-06-27/.hydra/overrides.yaml
@@ -0,0 +1,11 @@
+- system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-3B-Instruct
+- custom_envs.rubikscube.env_config.scramble_depth=3
+- trainer.experiment_name=rubikscube-3-starpos
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-09/15-06-27/train.log b/outputs/2025-12-09/15-06-27/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-09/17-02-50/.hydra/overrides.yaml b/outputs/2025-12-09/17-02-50/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..75ff1c16597fcbbed064470fb3ed55fa443201ff
--- /dev/null
+++ b/outputs/2025-12-09/17-02-50/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='3,4,5,6'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-3B-Instruct
+- trainer.experiment_name=game_2048
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-09/17-02-50/train.log b/outputs/2025-12-09/17-02-50/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-10/00-49-58/.hydra/config.yaml b/outputs/2025-12-10/00-49-58/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2d0e98ac61f33e6582536e83bc1efeba66d6e894
--- /dev/null
+++ b/outputs/2025-12-10/00-49-58/.hydra/config.yaml
@@ -0,0 +1,806 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8096
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: game_2048
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '0'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 200
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
+ll
diff --git a/outputs/2025-12-10/00-49-58/.hydra/overrides.yaml b/outputs/2025-12-10/00-49-58/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d57ff3564fadba7158ed15d62f8d20eb18274f64
--- /dev/null
+++ b/outputs/2025-12-10/00-49-58/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=game_2048
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-10/00-49-58/train.log b/outputs/2025-12-10/00-49-58/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-10/11-03-21/.hydra/config.yaml b/outputs/2025-12-10/11-03-21/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1d2a079e131d547d7ca9ab8885a2a015353c3907
--- /dev/null
+++ b/outputs/2025-12-10/11-03-21/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8096
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: game_2048
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '7'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 200
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-10/11-03-21/.hydra/hydra.yaml b/outputs/2025-12-10/11-03-21/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6a1dfe272be5bf0d906dd5689087c17d1606f6f5
--- /dev/null
+++ b/outputs/2025-12-10/11-03-21/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=game_2048
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='7',trainer.experiment_name=game_2048,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-10/11-03-21
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-10/11-03-21/.hydra/overrides.yaml b/outputs/2025-12-10/11-03-21/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8f5ead8086f5552dc80b6b98c1f0e7102535d446
--- /dev/null
+++ b/outputs/2025-12-10/11-03-21/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=game_2048
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-10/11-03-21/train.log b/outputs/2025-12-10/11-03-21/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-10/11-10-41/.hydra/config.yaml b/outputs/2025-12-10/11-10-41/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1d2a079e131d547d7ca9ab8885a2a015353c3907
--- /dev/null
+++ b/outputs/2025-12-10/11-10-41/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8096
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: game_2048
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '7'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 200
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-10/11-10-41/.hydra/overrides.yaml b/outputs/2025-12-10/11-10-41/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8f5ead8086f5552dc80b6b98c1f0e7102535d446
--- /dev/null
+++ b/outputs/2025-12-10/11-10-41/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=game_2048
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-10/11-10-41/train.log b/outputs/2025-12-10/11-10-41/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-10/11-38-06/.hydra/hydra.yaml b/outputs/2025-12-10/11-38-06/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7c7780301fb4b32ba85f902fcacbd4edcf86c2e1
--- /dev/null
+++ b/outputs/2025-12-10/11-38-06/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=game_2048
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='7',trainer.experiment_name=game_2048,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-10/11-38-06
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-10/11-38-06/train.log b/outputs/2025-12-10/11-38-06/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-10/11-39-52/.hydra/overrides.yaml b/outputs/2025-12-10/11-39-52/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8f5ead8086f5552dc80b6b98c1f0e7102535d446
--- /dev/null
+++ b/outputs/2025-12-10/11-39-52/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=game_2048
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-10/11-39-52/train.log b/outputs/2025-12-10/11-39-52/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-10/11-44-45/.hydra/config.yaml b/outputs/2025-12-10/11-44-45/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1d2a079e131d547d7ca9ab8885a2a015353c3907
--- /dev/null
+++ b/outputs/2025-12-10/11-44-45/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8096
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: game_2048
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '7'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 200
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-10/11-44-45/.hydra/overrides.yaml b/outputs/2025-12-10/11-44-45/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8f5ead8086f5552dc80b6b98c1f0e7102535d446
--- /dev/null
+++ b/outputs/2025-12-10/11-44-45/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=game_2048
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-10/11-44-45/train.log b/outputs/2025-12-10/11-44-45/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-10/11-51-31/.hydra/config.yaml b/outputs/2025-12-10/11-51-31/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1d2a079e131d547d7ca9ab8885a2a015353c3907
--- /dev/null
+++ b/outputs/2025-12-10/11-51-31/.hydra/config.yaml
@@ -0,0 +1,805 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8096
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: game_2048
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+system:
+ CUDA_VISIBLE_DEVICES: '7'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 200
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-10/11-58-26/train.log b/outputs/2025-12-10/11-58-26/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-10/12-37-48/train.log b/outputs/2025-12-10/12-37-48/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-10/19-44-44/train.log b/outputs/2025-12-10/19-44-44/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-11/15-16-21/train.log b/outputs/2025-12-11/15-16-21/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-11/15-25-10/.hydra/hydra.yaml b/outputs/2025-12-11/15-25-10/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c372bae2039e791962f3b3f95d5e2ed36dc11a65
--- /dev/null
+++ b/outputs/2025-12-11/15-25-10/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=sudoku-4x4
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='7',trainer.experiment_name=sudoku-4x4,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-11/15-25-10
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-11/15-43-08/.hydra/config.yaml b/outputs/2025-12-11/15-43-08/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2542d70a880823a5f96dba1cb6e1ab918c222ba1
--- /dev/null
+++ b/outputs/2025-12-11/15-43-08/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: sudoku-4x4
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-11/22-03-13/.hydra/hydra.yaml b/outputs/2025-12-11/22-03-13/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..95a0ad201b7430adf396e09efc73f959a9ff74d8
--- /dev/null
+++ b/outputs/2025-12-11/22-03-13/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='1,2'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=2
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_sudoku4x4
+ - trainer.experiment_name=sudoku-4x4-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_sudoku4x4,system.CUDA_VISIBLE_DEVICES='1,2',trainer.experiment_name=sudoku-4x4-frommlp,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-11/22-03-13
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-11/22-12-11/.hydra/config.yaml b/outputs/2025-12-11/22-12-11/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0043531ae0646b4aa17c24645d5710a15afefdc7
--- /dev/null
+++ b/outputs/2025-12-11/22-12-11/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.6
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: sudoku-4x4-frommlp
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 3,4,5,6
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-11/22-12-11/.hydra/overrides.yaml b/outputs/2025-12-11/22-12-11/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..255bac5e33b7c920f8939e3e94aebece10d97fdc
--- /dev/null
+++ b/outputs/2025-12-11/22-12-11/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='3,4,5,6'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=4
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4
+- trainer.experiment_name=sudoku-4x4-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-11/22-29-11/.hydra/hydra.yaml b/outputs/2025-12-11/22-29-11/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..985790ef638d2f70e567d1de044cf8fea9fc63cb
--- /dev/null
+++ b/outputs/2025-12-11/22-29-11/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='1,2'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=2
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_sudoku4x4
+ - trainer.experiment_name=sudoku-4x4-frommlp
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_sudoku4x4,system.CUDA_VISIBLE_DEVICES='1,2',trainer.experiment_name=sudoku-4x4-frommlp,trainer.n_gpus_per_node=2,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-11/22-29-11
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-11/23-07-38/.hydra/overrides.yaml b/outputs/2025-12-11/23-07-38/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..255bac5e33b7c920f8939e3e94aebece10d97fdc
--- /dev/null
+++ b/outputs/2025-12-11/23-07-38/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='3,4,5,6'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=4
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4
+- trainer.experiment_name=sudoku-4x4-frommlp
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-12/06-00-18/.hydra/overrides.yaml b/outputs/2025-12-12/06-00-18/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a51c0aa037effc6ee4b17e2bed26a75d81219020
--- /dev/null
+++ b/outputs/2025-12-12/06-00-18/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-1.5B-Instruct
+- trainer.experiment_name=sudoku-4x4
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-12/08-29-04/train.log b/outputs/2025-12-12/08-29-04/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-12/08-38-31/.hydra/config.yaml b/outputs/2025-12-12/08-38-31/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1f229888570e4e7419a0b453d11af8bcb2023c42
--- /dev/null
+++ b/outputs/2025-12-12/08-38-31/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8096
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: game_2048-frommlp-windows5
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_2048_windows5
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 200
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-12/08-38-31/.hydra/hydra.yaml b/outputs/2025-12-12/08-38-31/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..66656352e646c35916e38614b99fc2406b7719b0
--- /dev/null
+++ b/outputs/2025-12-12/08-38-31/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_2048_windows5
+ - trainer.experiment_name=game_2048-frommlp-windows5
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_2048_windows5,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=game_2048-frommlp-windows5,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-12/08-38-31
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-12/08-38-31/.hydra/overrides.yaml b/outputs/2025-12-12/08-38-31/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a7fadbdf30c0dad909ddda674317b312e2a8ac07
--- /dev/null
+++ b/outputs/2025-12-12/08-38-31/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=4
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_2048_windows5
+- trainer.experiment_name=game_2048-frommlp-windows5
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-12/08-38-31/train.log b/outputs/2025-12-12/08-38-31/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-12/09-54-20/.hydra/config.yaml b/outputs/2025-12-12/09-54-20/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ea20c93d6e19509ff89b344868fd303c31245b4a
--- /dev/null
+++ b/outputs/2025-12-12/09-54-20/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.5
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: sudoku-4x4
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-3B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-12/09-54-20/.hydra/hydra.yaml b/outputs/2025-12-12/09-54-20/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8589a4c1622c0c8da344cbf0077ce143ad0fae9b
--- /dev/null
+++ b/outputs/2025-12-12/09-54-20/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-3B-Instruct
+ - trainer.experiment_name=sudoku-4x4
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-3B-Instruct,system.CUDA_VISIBLE_DEVICES='4,5,6,7',trainer.experiment_name=sudoku-4x4,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-12/09-54-20
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-12/09-54-20/train.log b/outputs/2025-12-12/09-54-20/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-12/10-51-01/.hydra/config.yaml b/outputs/2025-12-12/10-51-01/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..837c7f750d41423e80d1e455fdc502e4108d23af
--- /dev/null
+++ b/outputs/2025-12-12/10-51-01/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.3
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: sudoku-4x4
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-3B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-12/10-51-01/.hydra/hydra.yaml b/outputs/2025-12-12/10-51-01/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..70584292ce631599d9a1bb30722f41cd4182d14b
--- /dev/null
+++ b/outputs/2025-12-12/10-51-01/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-3B-Instruct
+ - trainer.experiment_name=sudoku-4x4
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-3B-Instruct,system.CUDA_VISIBLE_DEVICES='4,5,6,7',trainer.experiment_name=sudoku-4x4,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-12/10-51-01
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-12/10-51-01/.hydra/overrides.yaml b/outputs/2025-12-12/10-51-01/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d3d382ca0f650601cc97b670ab6d72fdd2eb0b63
--- /dev/null
+++ b/outputs/2025-12-12/10-51-01/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-3B-Instruct
+- trainer.experiment_name=sudoku-4x4
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-12/10-58-45/.hydra/config.yaml b/outputs/2025-12-12/10-58-45/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..afcde3ca315be979ea813ce4dd8f37985d3e8419
--- /dev/null
+++ b/outputs/2025-12-12/10-58-45/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.4
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: sudoku-4x4
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-3B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-12/10-58-45/.hydra/hydra.yaml b/outputs/2025-12-12/10-58-45/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..81a47030b4ecf4b9f16f051896a2137f82eba2f0
--- /dev/null
+++ b/outputs/2025-12-12/10-58-45/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-3B-Instruct
+ - trainer.experiment_name=sudoku-4x4
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-3B-Instruct,system.CUDA_VISIBLE_DEVICES='4,5,6,7',trainer.experiment_name=sudoku-4x4,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-12/10-58-45
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-12/11-49-29/.hydra/config.yaml b/outputs/2025-12-12/11-49-29/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9d4d36a046884cf77f74b3729b7d55eb5d457c9c
--- /dev/null
+++ b/outputs/2025-12-12/11-49-29/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.6
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: sudoku-4x4
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-12/11-49-29/.hydra/hydra.yaml b/outputs/2025-12-12/11-49-29/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b62cb6c6efa8aa04792c9eda90e28de2698e7f2a
--- /dev/null
+++ b/outputs/2025-12-12/11-49-29/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=sudoku-4x4
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=sudoku-4x4,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-12/11-49-29
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-12/11-49-29/.hydra/overrides.yaml b/outputs/2025-12-12/11-49-29/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6cd891ae012b4c6ea5832828ebd944f31c2f3054
--- /dev/null
+++ b/outputs/2025-12-12/11-49-29/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=sudoku-4x4
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-12/11-49-29/train.log b/outputs/2025-12-12/11-49-29/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-12/13-55-43/.hydra/config.yaml b/outputs/2025-12-12/13-55-43/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..cc65b012d3aa3922d49fa2678d07d0c4afc6f423
--- /dev/null
+++ b/outputs/2025-12-12/13-55-43/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.6
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: sudoku-4x4
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: '7'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-12/13-55-43/.hydra/hydra.yaml b/outputs/2025-12-12/13-55-43/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..63d9fe778e1e3d08bb102d72ba0b029433174778
--- /dev/null
+++ b/outputs/2025-12-12/13-55-43/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=sudoku-4x4
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='7',trainer.experiment_name=sudoku-4x4,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-12/13-55-43
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-12/13-55-43/train.log b/outputs/2025-12-12/13-55-43/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-12/14-13-36/.hydra/config.yaml b/outputs/2025-12-12/14-13-36/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8cb327cc98a6301b6398d5ccfe0c2ecedf950f8a
--- /dev/null
+++ b/outputs/2025-12-12/14-13-36/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.6
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: sudoku-4x4-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-1.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-12/14-13-36/.hydra/hydra.yaml b/outputs/2025-12-12/14-13-36/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..627ddae47e2964c7e7329bde0786d7a8c2285e2e
--- /dev/null
+++ b/outputs/2025-12-12/14-13-36/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=Qwen/Qwen2.5-1.5B-Instruct
+ - trainer.experiment_name=sudoku-4x4-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-1.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=sudoku-4x4-nohint,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-12/14-13-36
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-12/14-13-36/.hydra/overrides.yaml b/outputs/2025-12-12/14-13-36/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..275e5d5ab4a4c08b87e7e2c727797860ccd4fe0b
--- /dev/null
+++ b/outputs/2025-12-12/14-13-36/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=8
+- model_path=Qwen/Qwen2.5-1.5B-Instruct
+- trainer.experiment_name=sudoku-4x4-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-12/14-13-36/train.log b/outputs/2025-12-12/14-13-36/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-12/14-14-51/.hydra/config.yaml b/outputs/2025-12-12/14-14-51/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8cb327cc98a6301b6398d5ccfe0c2ecedf950f8a
--- /dev/null
+++ b/outputs/2025-12-12/14-14-51/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.6
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: sudoku-4x4-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-1.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-12/14-14-51/.hydra/hydra.yaml b/outputs/2025-12-12/14-14-51/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2eba1d4e9d8700bf1482789e113a4e633ed16c7f
--- /dev/null
+++ b/outputs/2025-12-12/14-14-51/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=Qwen/Qwen2.5-1.5B-Instruct
+ - trainer.experiment_name=sudoku-4x4-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-1.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=sudoku-4x4-nohint,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-12/14-14-51
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-12/14-14-51/.hydra/overrides.yaml b/outputs/2025-12-12/14-14-51/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..275e5d5ab4a4c08b87e7e2c727797860ccd4fe0b
--- /dev/null
+++ b/outputs/2025-12-12/14-14-51/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=8
+- model_path=Qwen/Qwen2.5-1.5B-Instruct
+- trainer.experiment_name=sudoku-4x4-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-12/14-14-51/train.log b/outputs/2025-12-12/14-14-51/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-12/14-57-12/.hydra/config.yaml b/outputs/2025-12-12/14-57-12/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..89b462dce6d3e8581396b6175c260fb5617fbb3b
--- /dev/null
+++ b/outputs/2025-12-12/14-57-12/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.6
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 7200
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: sudoku-4x4-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-3B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-12/14-57-12/.hydra/hydra.yaml b/outputs/2025-12-12/14-57-12/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a254c89974d987c1663fd5aafd50b962eabf69fb
--- /dev/null
+++ b/outputs/2025-12-12/14-57-12/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=Qwen/Qwen2.5-3B-Instruct
+ - trainer.experiment_name=sudoku-4x4-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-3B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=sudoku-4x4-nohint,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-12/14-57-12
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-12/14-57-12/.hydra/overrides.yaml b/outputs/2025-12-12/14-57-12/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..29b11e22dce3e278dd2b2b0a184725a7de3e96ea
--- /dev/null
+++ b/outputs/2025-12-12/14-57-12/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=8
+- model_path=Qwen/Qwen2.5-3B-Instruct
+- trainer.experiment_name=sudoku-4x4-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-12/14-57-12/train.log b/outputs/2025-12-12/14-57-12/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-12/16-02-43/.hydra/config.yaml b/outputs/2025-12-12/16-02-43/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..bbd8ecae5915b41349ff6e01d1255c4f54c75c27
--- /dev/null
+++ b/outputs/2025-12-12/16-02-43/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: sudoku-4x4-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-3B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-12/16-02-43/.hydra/hydra.yaml b/outputs/2025-12-12/16-02-43/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..06ab2ee7aadb884a091c71e8ef26dcfe520610de
--- /dev/null
+++ b/outputs/2025-12-12/16-02-43/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=Qwen/Qwen2.5-3B-Instruct
+ - trainer.experiment_name=sudoku-4x4-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-3B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=sudoku-4x4-nohint,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-12/16-02-43
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-12/16-02-43/.hydra/overrides.yaml b/outputs/2025-12-12/16-02-43/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..29b11e22dce3e278dd2b2b0a184725a7de3e96ea
--- /dev/null
+++ b/outputs/2025-12-12/16-02-43/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=8
+- model_path=Qwen/Qwen2.5-3B-Instruct
+- trainer.experiment_name=sudoku-4x4-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-12/16-02-43/train.log b/outputs/2025-12-12/16-02-43/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-12/22-36-42/.hydra/config.yaml b/outputs/2025-12-12/22-36-42/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..24e7324045d7bd5e703734a9e167dbe3758d28a9
--- /dev/null
+++ b/outputs/2025-12-12/22-36-42/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: sudoku-4x4-frommlp-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-12/22-36-42/.hydra/hydra.yaml b/outputs/2025-12-12/22-36-42/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..78433d80c1d1898960c012467399126be9b5b4be
--- /dev/null
+++ b/outputs/2025-12-12/22-36-42/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+ - trainer.experiment_name=sudoku-4x4-frommlp-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=sudoku-4x4-frommlp-nohint,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-12/22-36-42
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-12/22-36-42/.hydra/overrides.yaml b/outputs/2025-12-12/22-36-42/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3c432e9bf3f867fa918d3986b018cb343674c59a
--- /dev/null
+++ b/outputs/2025-12-12/22-36-42/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=4
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+- trainer.experiment_name=sudoku-4x4-frommlp-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-12/22-36-42/train.log b/outputs/2025-12-12/22-36-42/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-12/23-40-41/.hydra/config.yaml b/outputs/2025-12-12/23-40-41/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..11b593cdbb65a13ed85f51df9973bc9c5a4b7391
--- /dev/null
+++ b/outputs/2025-12-12/23-40-41/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: sudoku-4x4-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-1.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-12/23-40-41/.hydra/hydra.yaml b/outputs/2025-12-12/23-40-41/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..70f15bba80f6257ee4364db9e50f0ce720663343
--- /dev/null
+++ b/outputs/2025-12-12/23-40-41/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=Qwen/Qwen2.5-1.5B-Instruct
+ - trainer.experiment_name=sudoku-4x4-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-1.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=sudoku-4x4-nohint,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-12/23-40-41
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-12/23-40-41/.hydra/overrides.yaml b/outputs/2025-12-12/23-40-41/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..275e5d5ab4a4c08b87e7e2c727797860ccd4fe0b
--- /dev/null
+++ b/outputs/2025-12-12/23-40-41/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=8
+- model_path=Qwen/Qwen2.5-1.5B-Instruct
+- trainer.experiment_name=sudoku-4x4-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-12/23-40-41/train.log b/outputs/2025-12-12/23-40-41/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-12/23-51-23/.hydra/config.yaml b/outputs/2025-12-12/23-51-23/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9a8af851d2f99fa9adcc95a0b08b0f15d9d0306c
--- /dev/null
+++ b/outputs/2025-12-12/23-51-23/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.4
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: sudoku-4x4-frommlp-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-12/23-51-23/.hydra/hydra.yaml b/outputs/2025-12-12/23-51-23/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8657854b37694eda61eebed3c81d2e13ea667e6d
--- /dev/null
+++ b/outputs/2025-12-12/23-51-23/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+ - trainer.experiment_name=sudoku-4x4-frommlp-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=sudoku-4x4-frommlp-nohint,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-12/23-51-23
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-12/23-51-23/.hydra/overrides.yaml b/outputs/2025-12-12/23-51-23/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3c432e9bf3f867fa918d3986b018cb343674c59a
--- /dev/null
+++ b/outputs/2025-12-12/23-51-23/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=4
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+- trainer.experiment_name=sudoku-4x4-frommlp-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-12/23-51-23/train.log b/outputs/2025-12-12/23-51-23/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-12/23-52-03/.hydra/config.yaml b/outputs/2025-12-12/23-52-03/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9a8af851d2f99fa9adcc95a0b08b0f15d9d0306c
--- /dev/null
+++ b/outputs/2025-12-12/23-52-03/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.4
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: sudoku-4x4-frommlp-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-12/23-52-03/.hydra/hydra.yaml b/outputs/2025-12-12/23-52-03/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..eeab51f478659a57d7f4527f8851190c710bef39
--- /dev/null
+++ b/outputs/2025-12-12/23-52-03/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=4
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+ - trainer.experiment_name=sudoku-4x4-frommlp-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=sudoku-4x4-frommlp-nohint,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-12/23-52-03
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-12/23-52-03/.hydra/overrides.yaml b/outputs/2025-12-12/23-52-03/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3c432e9bf3f867fa918d3986b018cb343674c59a
--- /dev/null
+++ b/outputs/2025-12-12/23-52-03/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=4
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+- trainer.experiment_name=sudoku-4x4-frommlp-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-12/23-52-03/train.log b/outputs/2025-12-12/23-52-03/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-13/00-12-53/.hydra/config.yaml b/outputs/2025-12-13/00-12-53/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..89f775a2c9dbda70005e67ffd39e7458056dae19
--- /dev/null
+++ b/outputs/2025-12-13/00-12-53/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.4
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: sudoku-4x4-frommlp-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-13/00-12-53/.hydra/hydra.yaml b/outputs/2025-12-13/00-12-53/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..71eb8abe2d06aa0d9100f5681e5ae148e982d7d0
--- /dev/null
+++ b/outputs/2025-12-13/00-12-53/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+ - trainer.experiment_name=sudoku-4x4-frommlp-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=sudoku-4x4-frommlp-nohint,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-13/00-12-53
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-13/00-12-53/.hydra/overrides.yaml b/outputs/2025-12-13/00-12-53/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..dd0c8274e210a57b5322edf4f35630027a33dfa9
--- /dev/null
+++ b/outputs/2025-12-13/00-12-53/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+- trainer.experiment_name=sudoku-4x4-frommlp-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-13/00-12-53/train.log b/outputs/2025-12-13/00-12-53/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-13/02-14-42/.hydra/config.yaml b/outputs/2025-12-13/02-14-42/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..786a71c323cbed30ab9a900256aa930e23e64e9b
--- /dev/null
+++ b/outputs/2025-12-13/02-14-42/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.4
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: sudoku-4x4-frommlp-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_sudoku4x4_nohint
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-13/02-14-42/.hydra/hydra.yaml b/outputs/2025-12-13/02-14-42/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..5cc5c9f624105ed63303d5925e8cf20e67fbec90
--- /dev/null
+++ b/outputs/2025-12-13/02-14-42/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_sudoku4x4_nohint
+ - trainer.experiment_name=sudoku-4x4-frommlp-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_sudoku4x4_nohint,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=sudoku-4x4-frommlp-nohint,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-13/02-14-42
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-13/02-14-42/.hydra/overrides.yaml b/outputs/2025-12-13/02-14-42/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9b0c55fce8f8c952fb4742bff85d17e07f80c09a
--- /dev/null
+++ b/outputs/2025-12-13/02-14-42/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_sudoku4x4_nohint
+- trainer.experiment_name=sudoku-4x4-frommlp-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-13/02-14-42/train.log b/outputs/2025-12-13/02-14-42/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-13/02-25-00/.hydra/config.yaml b/outputs/2025-12-13/02-25-00/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a2eb944e5d24318194a98021ea8b7ff03d0abf3d
--- /dev/null
+++ b/outputs/2025-12-13/02-25-00/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.4
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: sudoku-4x4-frommlp-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: '0'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-13/02-25-00/.hydra/hydra.yaml b/outputs/2025-12-13/02-25-00/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ee585d81e4d88ec9eb47aba0d14bd881cfd55a2b
--- /dev/null
+++ b/outputs/2025-12-13/02-25-00/.hydra/hydra.yaml
@@ -0,0 +1,174 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+ - trainer.experiment_name=sudoku-4x4-frommlp-nohint
+ job:
+ name: train
+ chdir: null
+ override_dirname: model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint,system.CUDA_VISIBLE_DEVICES='0',trainer.experiment_name=sudoku-4x4-frommlp-nohint,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-13/02-25-00
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-13/02-25-00/.hydra/overrides.yaml b/outputs/2025-12-13/02-25-00/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f65daf34a2f9a0541f5a8001217c27417a401df6
--- /dev/null
+++ b/outputs/2025-12-13/02-25-00/.hydra/overrides.yaml
@@ -0,0 +1,5 @@
+- system.CUDA_VISIBLE_DEVICES='0'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+- trainer.experiment_name=sudoku-4x4-frommlp-nohint
diff --git a/outputs/2025-12-13/02-25-00/train.log b/outputs/2025-12-13/02-25-00/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-13/02-26-54/.hydra/config.yaml b/outputs/2025-12-13/02-26-54/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a2eb944e5d24318194a98021ea8b7ff03d0abf3d
--- /dev/null
+++ b/outputs/2025-12-13/02-26-54/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.4
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: sudoku-4x4-frommlp-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: '0'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-13/02-26-54/.hydra/hydra.yaml b/outputs/2025-12-13/02-26-54/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f4b2217a4e594f4f25b8f01143cc62fa1d77c2f8
--- /dev/null
+++ b/outputs/2025-12-13/02-26-54/.hydra/hydra.yaml
@@ -0,0 +1,174 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+ - trainer.experiment_name=sudoku-4x4-frommlp-nohint
+ job:
+ name: train
+ chdir: null
+ override_dirname: model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint,system.CUDA_VISIBLE_DEVICES='0',trainer.experiment_name=sudoku-4x4-frommlp-nohint,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-13/02-26-54
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-13/02-26-54/.hydra/overrides.yaml b/outputs/2025-12-13/02-26-54/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f65daf34a2f9a0541f5a8001217c27417a401df6
--- /dev/null
+++ b/outputs/2025-12-13/02-26-54/.hydra/overrides.yaml
@@ -0,0 +1,5 @@
+- system.CUDA_VISIBLE_DEVICES='0'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_sudoku4x4_nohint
+- trainer.experiment_name=sudoku-4x4-frommlp-nohint
diff --git a/outputs/2025-12-13/02-26-54/train.log b/outputs/2025-12-13/02-26-54/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-13/02-34-16/.hydra/config.yaml b/outputs/2025-12-13/02-34-16/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..786a71c323cbed30ab9a900256aa930e23e64e9b
--- /dev/null
+++ b/outputs/2025-12-13/02-34-16/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.4
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: sudoku-4x4-frommlp-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_sudoku4x4_nohint
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-13/02-34-16/.hydra/hydra.yaml b/outputs/2025-12-13/02-34-16/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9770e735c4e17a26666c25edfee7dcd9c5802169
--- /dev/null
+++ b/outputs/2025-12-13/02-34-16/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_sudoku4x4_nohint
+ - trainer.experiment_name=sudoku-4x4-frommlp-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_sudoku4x4_nohint,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=sudoku-4x4-frommlp-nohint,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-13/02-34-16
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-13/02-34-16/.hydra/overrides.yaml b/outputs/2025-12-13/02-34-16/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9b0c55fce8f8c952fb4742bff85d17e07f80c09a
--- /dev/null
+++ b/outputs/2025-12-13/02-34-16/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_sudoku4x4_nohint
+- trainer.experiment_name=sudoku-4x4-frommlp-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-13/02-34-16/train.log b/outputs/2025-12-13/02-34-16/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-13/05-25-14/.hydra/config.yaml b/outputs/2025-12-13/05-25-14/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..509c142711f1c34ff281ddea9fce957a15b24e8b
--- /dev/null
+++ b/outputs/2025-12-13/05-25-14/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.4
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: sudoku-4x4-frommlp-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4_nohint
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-13/05-25-14/.hydra/hydra.yaml b/outputs/2025-12-13/05-25-14/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..143c8b6ff2e26949649224fc25fb38579ded67f0
--- /dev/null
+++ b/outputs/2025-12-13/05-25-14/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4_nohint
+ - trainer.experiment_name=sudoku-4x4-frommlp-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4_nohint,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=sudoku-4x4-frommlp-nohint,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-13/05-25-14
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-13/05-25-14/.hydra/overrides.yaml b/outputs/2025-12-13/05-25-14/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a41bd5ad91568893fcda7023757c68dadfa3328f
--- /dev/null
+++ b/outputs/2025-12-13/05-25-14/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4_nohint
+- trainer.experiment_name=sudoku-4x4-frommlp-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-13/05-25-14/train.log b/outputs/2025-12-13/05-25-14/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-13/08-03-32/.hydra/config.yaml b/outputs/2025-12-13/08-03-32/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7c949e88740b2cc363a40e2b269c73a16565febc
--- /dev/null
+++ b/outputs/2025-12-13/08-03-32/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.4
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: sudoku-4x4-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 4
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-1.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-13/08-03-32/.hydra/hydra.yaml b/outputs/2025-12-13/08-03-32/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1e0e497bc6011c727e272f6903de35d6943f1114
--- /dev/null
+++ b/outputs/2025-12-13/08-03-32/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=4
+ - model_path=Qwen/Qwen2.5-1.5B-Instruct
+ - trainer.experiment_name=sudoku-4x4-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-1.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3',trainer.experiment_name=sudoku-4x4-nohint,trainer.n_gpus_per_node=4,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-13/08-03-32
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-13/08-03-32/.hydra/overrides.yaml b/outputs/2025-12-13/08-03-32/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3fa08b609cc39abb3bfb4b9102ddb9fec2fddb57
--- /dev/null
+++ b/outputs/2025-12-13/08-03-32/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=4
+- model_path=Qwen/Qwen2.5-1.5B-Instruct
+- trainer.experiment_name=sudoku-4x4-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-13/08-03-32/train.log b/outputs/2025-12-13/08-03-32/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-13/08-05-06/.hydra/config.yaml b/outputs/2025-12-13/08-05-06/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..509c142711f1c34ff281ddea9fce957a15b24e8b
--- /dev/null
+++ b/outputs/2025-12-13/08-05-06/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.4
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: sudoku-4x4-frommlp-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4_nohint
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-13/08-05-06/.hydra/hydra.yaml b/outputs/2025-12-13/08-05-06/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c6eb14f0824b333a056bf78ced7f1ab5c01bff69
--- /dev/null
+++ b/outputs/2025-12-13/08-05-06/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4_nohint
+ - trainer.experiment_name=sudoku-4x4-frommlp-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4_nohint,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=sudoku-4x4-frommlp-nohint,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-13/08-05-06
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-13/08-05-06/.hydra/overrides.yaml b/outputs/2025-12-13/08-05-06/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a41bd5ad91568893fcda7023757c68dadfa3328f
--- /dev/null
+++ b/outputs/2025-12-13/08-05-06/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4_nohint
+- trainer.experiment_name=sudoku-4x4-frommlp-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-13/08-05-06/train.log b/outputs/2025-12-13/08-05-06/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-13/08-48-55/.hydra/config.yaml b/outputs/2025-12-13/08-48-55/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..509c142711f1c34ff281ddea9fce957a15b24e8b
--- /dev/null
+++ b/outputs/2025-12-13/08-48-55/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.4
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: sudoku-4x4-frommlp-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4_nohint
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-13/08-48-55/.hydra/hydra.yaml b/outputs/2025-12-13/08-48-55/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0c8df34c459954f9ee918fa956a5920ec53530ad
--- /dev/null
+++ b/outputs/2025-12-13/08-48-55/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4_nohint
+ - trainer.experiment_name=sudoku-4x4-frommlp-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4_nohint,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=sudoku-4x4-frommlp-nohint,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-13/08-48-55
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-13/08-48-55/.hydra/overrides.yaml b/outputs/2025-12-13/08-48-55/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a41bd5ad91568893fcda7023757c68dadfa3328f
--- /dev/null
+++ b/outputs/2025-12-13/08-48-55/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_sudoku4x4_nohint
+- trainer.experiment_name=sudoku-4x4-frommlp-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-13/08-48-55/train.log b/outputs/2025-12-13/08-48-55/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-13/11-24-41/.hydra/config.yaml b/outputs/2025-12-13/11-24-41/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a2c00e51332ca947eb6fd23844fbc5cd6a133152
--- /dev/null
+++ b/outputs/2025-12-13/11-24-41/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.4
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: sudoku-4x4-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-13/11-24-41/.hydra/hydra.yaml b/outputs/2025-12-13/11-24-41/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..544e3c8dbfc697ac5434a0b82360c2fc59e79fa6
--- /dev/null
+++ b/outputs/2025-12-13/11-24-41/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=8
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=sudoku-4x4-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=sudoku-4x4-nohint,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-13/11-24-41
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-13/11-24-41/.hydra/overrides.yaml b/outputs/2025-12-13/11-24-41/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1ea83494aa2a9c316b02ce67a80706cafc24b814
--- /dev/null
+++ b/outputs/2025-12-13/11-24-41/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=8
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=sudoku-4x4-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-13/11-24-41/train.log b/outputs/2025-12-13/11-24-41/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-13/11-38-06/.hydra/config.yaml b/outputs/2025-12-13/11-38-06/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e897975eb14218215aed56f9c638c98a29e1702e
--- /dev/null
+++ b/outputs/2025-12-13/11-38-06/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: sudoku-4x4-nohint
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-0.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 8
+ val:
+ env_groups: 32
+ group_size: 16
+ env_configs:
+ tags:
+ - SimpleSudoku
+ n_groups:
+ - 32
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-13/11-38-06/.hydra/hydra.yaml b/outputs/2025-12-13/11-38-06/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3996a0b0149db44aeed00b35c4106eb8b181d41d
--- /dev/null
+++ b/outputs/2025-12-13/11-38-06/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=8
+ - model_path=Qwen/Qwen2.5-0.5B-Instruct
+ - trainer.experiment_name=sudoku-4x4-nohint
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=Qwen/Qwen2.5-0.5B-Instruct,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=sudoku-4x4-nohint,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _11_sudoku
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-13/11-38-06
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-13/11-38-06/.hydra/overrides.yaml b/outputs/2025-12-13/11-38-06/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..1ea83494aa2a9c316b02ce67a80706cafc24b814
--- /dev/null
+++ b/outputs/2025-12-13/11-38-06/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=8
+- model_path=Qwen/Qwen2.5-0.5B-Instruct
+- trainer.experiment_name=sudoku-4x4-nohint
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-13/11-38-06/train.log b/outputs/2025-12-13/11-38-06/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-13/21-30-26/.hydra/config.yaml b/outputs/2025-12-13/21-30-26/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9ac091e09275e3622895d96d95386bba83af54c7
--- /dev/null
+++ b/outputs/2025-12-13/21-30-26/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8096
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: game_2048-frommlp-windows5
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_2048_windows5
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 200
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-13/21-30-26/.hydra/hydra.yaml b/outputs/2025-12-13/21-30-26/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7107298babcad82149f1d29c01a9347702543741
--- /dev/null
+++ b/outputs/2025-12-13/21-30-26/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_2048_windows5
+ - trainer.experiment_name=game_2048-frommlp-windows5
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_2048_windows5,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=game_2048-frommlp-windows5,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-13/21-30-26
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-13/21-30-26/.hydra/overrides.yaml b/outputs/2025-12-13/21-30-26/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0fc63e1a59e022e800bc29ca7368187127fcc701
--- /dev/null
+++ b/outputs/2025-12-13/21-30-26/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_2048_windows5
+- trainer.experiment_name=game_2048-frommlp-windows5
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-13/21-30-26/train.log b/outputs/2025-12-13/21-30-26/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-13/21-31-30/.hydra/config.yaml b/outputs/2025-12-13/21-31-30/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b475536035175faaf6036d3df942cfdad833da7b
--- /dev/null
+++ b/outputs/2025-12-13/21-31-30/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8096
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 200
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-13/21-31-30/.hydra/hydra.yaml b/outputs/2025-12-13/21-31-30/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b66f1feba4d7130d66eed621729fa3844ef1e27f
--- /dev/null
+++ b/outputs/2025-12-13/21-31-30/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5
+ - trainer.experiment_name=game_2048-frommlp-windows5
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=game_2048-frommlp-windows5,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-13/21-31-30
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-13/21-31-30/.hydra/overrides.yaml b/outputs/2025-12-13/21-31-30/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..923d6e40d675db616dc8460653baa5165a727cc0
--- /dev/null
+++ b/outputs/2025-12-13/21-31-30/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5
+- trainer.experiment_name=game_2048-frommlp-windows5
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-13/21-31-30/train.log b/outputs/2025-12-13/21-31-30/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-13/21-32-13/.hydra/config.yaml b/outputs/2025-12-13/21-32-13/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b475536035175faaf6036d3df942cfdad833da7b
--- /dev/null
+++ b/outputs/2025-12-13/21-32-13/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8096
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 300
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 4096
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 200
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-13/21-32-13/.hydra/hydra.yaml b/outputs/2025-12-13/21-32-13/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..14154a0a622d527655c97e9231b349a375a324cc
--- /dev/null
+++ b/outputs/2025-12-13/21-32-13/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5
+ - trainer.experiment_name=game_2048-frommlp-windows5
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=game_2048-frommlp-windows5,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-13/21-32-13
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-13/21-32-13/.hydra/overrides.yaml b/outputs/2025-12-13/21-32-13/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..923d6e40d675db616dc8460653baa5165a727cc0
--- /dev/null
+++ b/outputs/2025-12-13/21-32-13/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5
+- trainer.experiment_name=game_2048-frommlp-windows5
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-13/21-32-13/train.log b/outputs/2025-12-13/21-32-13/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-14/09-16-21/.hydra/config.yaml b/outputs/2025-12-14/09-16-21/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d3bda31d436cc02da283185cc1291aaeb3acd225
--- /dev/null
+++ b/outputs/2025-12-14/09-16-21/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: game_2048-frommlp-windows5-7000score
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_2048_windows5_7000scores
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-14/09-16-21/.hydra/hydra.yaml b/outputs/2025-12-14/09-16-21/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e0edcf9e6cffa79c75865361b81f0ca402008a4c
--- /dev/null
+++ b/outputs/2025-12-14/09-16-21/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_05B_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_2048_windows5_7000scores
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_2048_windows5_7000scores,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=game_2048-frommlp-windows5-7000score,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_05B_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-14/09-16-21
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-14/09-16-21/.hydra/overrides.yaml b/outputs/2025-12-14/09-16-21/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..33387123312b7989d1ff26a08b26fc3e424d9e20
--- /dev/null
+++ b/outputs/2025-12-14/09-16-21/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_05B_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_0.5B_it_2048_windows5_7000scores
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-14/09-16-21/train.log b/outputs/2025-12-14/09-16-21/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-14/09-51-45/.hydra/config.yaml b/outputs/2025-12-14/09-51-45/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0474114594c42b1f214d6fbd557c14010e14af58
--- /dev/null
+++ b/outputs/2025-12-14/09-51-45/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: game_2048-frommlp-windows5-7000score
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_2048_windows5_7000scores
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-14/09-51-45/.hydra/hydra.yaml b/outputs/2025-12-14/09-51-45/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0811a26aade25187c7671430bd8de946d432c298
--- /dev/null
+++ b/outputs/2025-12-14/09-51-45/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_2048_windows5_7000scores
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_2048_windows5_7000scores,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=game_2048-frommlp-windows5-7000score,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_15b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-14/09-51-45
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-14/09-51-45/.hydra/overrides.yaml b/outputs/2025-12-14/09-51-45/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..714d8a78820c011a0da6fd046e623841539e386f
--- /dev/null
+++ b/outputs/2025-12-14/09-51-45/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_1.5B_it_2048_windows5_7000scores
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-14/09-51-45/train.log b/outputs/2025-12-14/09-51-45/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-14/10-09-42/.hydra/config.yaml b/outputs/2025-12-14/10-09-42/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0a91346a19ceea9119541b497b055cb5fb6b6962
--- /dev/null
+++ b/outputs/2025-12-14/10-09-42/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5-7000score
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-14/10-09-42/.hydra/hydra.yaml b/outputs/2025-12-14/10-09-42/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a150aa94bb653d0548a9578f945c6dc4265842c8
--- /dev/null
+++ b/outputs/2025-12-14/10-09-42/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=game_2048-frommlp-windows5-7000score,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-14/10-09-42
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-14/10-09-42/.hydra/overrides.yaml b/outputs/2025-12-14/10-09-42/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..38b63eb933ee771de63aa34151fdf9b483002a43
--- /dev/null
+++ b/outputs/2025-12-14/10-09-42/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-14/10-09-42/train.log b/outputs/2025-12-14/10-09-42/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-14/15-59-09/.hydra/config.yaml b/outputs/2025-12-14/15-59-09/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b1196675e2820f279f1195ae0d8b1ed3acc5f4ae
--- /dev/null
+++ b/outputs/2025-12-14/15-59-09/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5-7000score
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: '0'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-14/15-59-09/.hydra/hydra.yaml b/outputs/2025-12-14/15-59-09/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..695d60e79f1fe26aeb7bfec489b2ff2c8007ab79
--- /dev/null
+++ b/outputs/2025-12-14/15-59-09/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores,system.CUDA_VISIBLE_DEVICES='0',trainer.experiment_name=game_2048-frommlp-windows5-7000score,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-14/15-59-09
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-14/15-59-09/.hydra/overrides.yaml b/outputs/2025-12-14/15-59-09/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b6f36b03291d3b93f44c6ba76557ad5926933364
--- /dev/null
+++ b/outputs/2025-12-14/15-59-09/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-14/15-59-09/train.log b/outputs/2025-12-14/15-59-09/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-14/16-44-40/.hydra/config.yaml b/outputs/2025-12-14/16-44-40/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b1196675e2820f279f1195ae0d8b1ed3acc5f4ae
--- /dev/null
+++ b/outputs/2025-12-14/16-44-40/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5-7000score
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: '0'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-14/16-44-40/.hydra/hydra.yaml b/outputs/2025-12-14/16-44-40/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9e4190c233470063a7217d314f88f61d4140ecd4
--- /dev/null
+++ b/outputs/2025-12-14/16-44-40/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores,system.CUDA_VISIBLE_DEVICES='0',trainer.experiment_name=game_2048-frommlp-windows5-7000score,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-14/16-44-40
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-14/16-44-40/.hydra/overrides.yaml b/outputs/2025-12-14/16-44-40/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b6f36b03291d3b93f44c6ba76557ad5926933364
--- /dev/null
+++ b/outputs/2025-12-14/16-44-40/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-14/16-44-40/train.log b/outputs/2025-12-14/16-44-40/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-14/23-52-08/.hydra/config.yaml b/outputs/2025-12-14/23-52-08/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0a91346a19ceea9119541b497b055cb5fb6b6962
--- /dev/null
+++ b/outputs/2025-12-14/23-52-08/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5-7000score
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-14/23-52-08/.hydra/hydra.yaml b/outputs/2025-12-14/23-52-08/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a09644e140a025cd03a418e437aa6fdd0271d6c5
--- /dev/null
+++ b/outputs/2025-12-14/23-52-08/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=game_2048-frommlp-windows5-7000score,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-14/23-52-08
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-14/23-52-08/.hydra/overrides.yaml b/outputs/2025-12-14/23-52-08/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..38b63eb933ee771de63aa34151fdf9b483002a43
--- /dev/null
+++ b/outputs/2025-12-14/23-52-08/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-14/23-52-08/train.log b/outputs/2025-12-14/23-52-08/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-16/09-04-57/.hydra/config.yaml b/outputs/2025-12-16/09-04-57/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6a2c60df191233770912f9a765a5e228feb6c75b
--- /dev/null
+++ b/outputs/2025-12-16/09-04-57/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5-7000score-3epoch
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-16/09-04-57/.hydra/hydra.yaml b/outputs/2025-12-16/09-04-57/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..eba9cae8aaf210a649d0d384c0072ec71a87cf93
--- /dev/null
+++ b/outputs/2025-12-16/09-04-57/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score-3epoch
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=game_2048-frommlp-windows5-7000score-3epoch,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-16/09-04-57
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-16/09-04-57/.hydra/overrides.yaml b/outputs/2025-12-16/09-04-57/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..616aacadbb964bb858b6b61765f421cf6605052f
--- /dev/null
+++ b/outputs/2025-12-16/09-04-57/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score-3epoch
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-16/09-04-57/train.log b/outputs/2025-12-16/09-04-57/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-16/09-59-25/.hydra/config.yaml b/outputs/2025-12-16/09-59-25/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b1196675e2820f279f1195ae0d8b1ed3acc5f4ae
--- /dev/null
+++ b/outputs/2025-12-16/09-59-25/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5-7000score
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: '0'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-16/09-59-25/.hydra/hydra.yaml b/outputs/2025-12-16/09-59-25/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d4dff70b279ee163caba7cc17f111725190c09e6
--- /dev/null
+++ b/outputs/2025-12-16/09-59-25/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores,system.CUDA_VISIBLE_DEVICES='0',trainer.experiment_name=game_2048-frommlp-windows5-7000score,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-16/09-59-25
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-16/09-59-25/.hydra/overrides.yaml b/outputs/2025-12-16/09-59-25/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b6f36b03291d3b93f44c6ba76557ad5926933364
--- /dev/null
+++ b/outputs/2025-12-16/09-59-25/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-16/09-59-25/train.log b/outputs/2025-12-16/09-59-25/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-16/14-22-43/.hydra/config.yaml b/outputs/2025-12-16/14-22-43/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0a91346a19ceea9119541b497b055cb5fb6b6962
--- /dev/null
+++ b/outputs/2025-12-16/14-22-43/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5-7000score
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-16/14-22-43/.hydra/hydra.yaml b/outputs/2025-12-16/14-22-43/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9c4968fe7a4e581f62e3e6bd421523a53e48486e
--- /dev/null
+++ b/outputs/2025-12-16/14-22-43/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=game_2048-frommlp-windows5-7000score,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-16/14-22-43
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-16/14-22-43/.hydra/overrides.yaml b/outputs/2025-12-16/14-22-43/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..38b63eb933ee771de63aa34151fdf9b483002a43
--- /dev/null
+++ b/outputs/2025-12-16/14-22-43/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-16/14-22-43/train.log b/outputs/2025-12-16/14-22-43/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-16/17-03-37/.hydra/config.yaml b/outputs/2025-12-16/17-03-37/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..590d6d41f9cd28f33946ecfde52027d02cb6f261
--- /dev/null
+++ b/outputs/2025-12-16/17-03-37/.hydra/config.yaml
@@ -0,0 +1,864 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 14400
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: sokoban-box2-starpos-SPA
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: 'You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets You are provided with a symbol grid and the
+ zero-indexed coordinates of the player, each box, and each target. Coordinates
+ range from the top-left corner (0, 0) to the bottom-right corner (5, 5). When
+ you are exactly next to a box, you can push it by moving in the same direction.
+ You cannot push a box through a wall, and you cannot pull a box. The answer
+ should be a sequence of actions, like Right || Right || Up.
+ A sample full output is as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3).
+ 1 Down – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left
+ of box, ready to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: '0'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-16/17-03-37/.hydra/hydra.yaml b/outputs/2025-12-16/17-03-37/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..983522fba5db8f418fa299c88194b90af53dd49b
--- /dev/null
+++ b/outputs/2025-12-16/17-03-37/.hydra/hydra.yaml
@@ -0,0 +1,204 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470
+ - custom_envs.SimpleSokoban.env_config.num_boxes=2
+ - 'custom_envs.SimpleSokoban.env_instruction=''You are solving the Sokoban puzzle.
+ You are the player and you need to push all boxes to targets You are provided
+ with a symbol grid and the zero-indexed coordinates of the player, each box,
+ and each target. Coordinates range from the top-left corner (0, 0) to the bottom-right
+ corner (5, 5). When you are exactly next to a box, you can push it by moving
+ in the same direction. You cannot push a box through a wall, and you cannot
+ pull a box. The answer should be a sequence of actions, like Right ||
+ Right || Up. A sample full output is as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3).
+ 1 Down – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left
+ of box, ready to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '''
+ - trainer.experiment_name=sokoban-box2-starpos-SPA
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: 'actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.SimpleSokoban.env_config.num_boxes=2,custom_envs.SimpleSokoban.env_instruction=''You
+ are solving the Sokoban puzzle. You are the player and you need to push all
+ boxes to targets You are provided with a symbol grid and the zero-indexed coordinates
+ of the player, each box, and each target. Coordinates range from the top-left
+ corner (0, 0) to the bottom-right corner (5, 5). When you are exactly next to
+ a box, you can push it by moving in the same direction. You cannot push a box
+ through a wall, and you cannot pull a box. The answer should be a sequence of
+ actions, like Right || Right || Up. A sample full output is
+ as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3).
+ 1 Down – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left
+ of box, ready to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '',model_path=/mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470,system.CUDA_VISIBLE_DEVICES=''0'',trainer.experiment_name=sokoban-box2-starpos-SPA,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_25_15b_it'
+ id: ???
+ num: ???
+ config_name: _2_sokoban
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-16/17-03-37
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-16/17-03-37/.hydra/overrides.yaml b/outputs/2025-12-16/17-03-37/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d781124335e0b7fffb16d4cad25969bedea9d646
--- /dev/null
+++ b/outputs/2025-12-16/17-03-37/.hydra/overrides.yaml
@@ -0,0 +1,23 @@
+- system.CUDA_VISIBLE_DEVICES='0'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470
+- custom_envs.SimpleSokoban.env_config.num_boxes=2
+- 'custom_envs.SimpleSokoban.env_instruction=''You are solving the Sokoban puzzle.
+ You are the player and you need to push all boxes to targets You are provided with
+ a symbol grid and the zero-indexed coordinates of the player, each box, and each
+ target. Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5). When you are exactly next to a box, you can push it by moving in the same
+ direction. You cannot push a box through a wall, and you cannot pull a box. The
+ answer should be a sequence of actions, like Right || Right || Up.
+ A sample full output is as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3). 1 Down
+ – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left of box, ready
+ to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '''
+- trainer.experiment_name=sokoban-box2-starpos-SPA
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-16/17-06-16/.hydra/config.yaml b/outputs/2025-12-16/17-06-16/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..04f0b19075499161b83426aeb54ecc38b0c7f606
--- /dev/null
+++ b/outputs/2025-12-16/17-06-16/.hydra/config.yaml
@@ -0,0 +1,864 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: sokoban-box2-starpos-SPA
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: 'You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets You are provided with a symbol grid and the
+ zero-indexed coordinates of the player, each box, and each target. Coordinates
+ range from the top-left corner (0, 0) to the bottom-right corner (5, 5). When
+ you are exactly next to a box, you can push it by moving in the same direction.
+ You cannot push a box through a wall, and you cannot pull a box. The answer
+ should be a sequence of actions, like Right || Right || Up.
+ A sample full output is as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3).
+ 1 Down – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left
+ of box, ready to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: '0'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-16/17-06-16/.hydra/hydra.yaml b/outputs/2025-12-16/17-06-16/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6e63b61df9204798069a649ab71e79e71f9436ad
--- /dev/null
+++ b/outputs/2025-12-16/17-06-16/.hydra/hydra.yaml
@@ -0,0 +1,204 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470
+ - custom_envs.SimpleSokoban.env_config.num_boxes=2
+ - 'custom_envs.SimpleSokoban.env_instruction=''You are solving the Sokoban puzzle.
+ You are the player and you need to push all boxes to targets You are provided
+ with a symbol grid and the zero-indexed coordinates of the player, each box,
+ and each target. Coordinates range from the top-left corner (0, 0) to the bottom-right
+ corner (5, 5). When you are exactly next to a box, you can push it by moving
+ in the same direction. You cannot push a box through a wall, and you cannot
+ pull a box. The answer should be a sequence of actions, like Right ||
+ Right || Up. A sample full output is as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3).
+ 1 Down – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left
+ of box, ready to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '''
+ - trainer.experiment_name=sokoban-box2-starpos-SPA
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: 'actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.SimpleSokoban.env_config.num_boxes=2,custom_envs.SimpleSokoban.env_instruction=''You
+ are solving the Sokoban puzzle. You are the player and you need to push all
+ boxes to targets You are provided with a symbol grid and the zero-indexed coordinates
+ of the player, each box, and each target. Coordinates range from the top-left
+ corner (0, 0) to the bottom-right corner (5, 5). When you are exactly next to
+ a box, you can push it by moving in the same direction. You cannot push a box
+ through a wall, and you cannot pull a box. The answer should be a sequence of
+ actions, like Right || Right || Up. A sample full output is
+ as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3).
+ 1 Down – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left
+ of box, ready to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '',model_path=/mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470,system.CUDA_VISIBLE_DEVICES=''0'',trainer.experiment_name=sokoban-box2-starpos-SPA,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_25_15b_it'
+ id: ???
+ num: ???
+ config_name: _2_sokoban
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-16/17-06-16
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-16/17-06-16/.hydra/overrides.yaml b/outputs/2025-12-16/17-06-16/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d781124335e0b7fffb16d4cad25969bedea9d646
--- /dev/null
+++ b/outputs/2025-12-16/17-06-16/.hydra/overrides.yaml
@@ -0,0 +1,23 @@
+- system.CUDA_VISIBLE_DEVICES='0'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470
+- custom_envs.SimpleSokoban.env_config.num_boxes=2
+- 'custom_envs.SimpleSokoban.env_instruction=''You are solving the Sokoban puzzle.
+ You are the player and you need to push all boxes to targets You are provided with
+ a symbol grid and the zero-indexed coordinates of the player, each box, and each
+ target. Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5). When you are exactly next to a box, you can push it by moving in the same
+ direction. You cannot push a box through a wall, and you cannot pull a box. The
+ answer should be a sequence of actions, like Right || Right || Up.
+ A sample full output is as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3). 1 Down
+ – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left of box, ready
+ to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '''
+- trainer.experiment_name=sokoban-box2-starpos-SPA
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-16/17-06-16/train.log b/outputs/2025-12-16/17-06-16/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-16/17-11-13/.hydra/config.yaml b/outputs/2025-12-16/17-11-13/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..de13268c99d512fc672787d8355fe45c1b91e387
--- /dev/null
+++ b/outputs/2025-12-16/17-11-13/.hydra/config.yaml
@@ -0,0 +1,861 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: sokoban-box2-starpos-SPA
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: 'You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets You are provided with a symbol grid and the
+ zero-indexed coordinates of the player, each box, and each target. Coordinates
+ range from the top-left corner (0, 0) to the bottom-right corner (5, 5). When
+ you are exactly next to a box, you can push it by moving in the same direction.
+ You cannot push a box through a wall, and you cannot pull a box. The answer
+ should be a sequence of actions, like Right || Right || Up.
+ A sample full output is as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3).
+ 1 Down – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left
+ of box, ready to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: '0'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-16/17-11-13/.hydra/hydra.yaml b/outputs/2025-12-16/17-11-13/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d02c40c36be872302827f972a09d65547fc30ee1
--- /dev/null
+++ b/outputs/2025-12-16/17-11-13/.hydra/hydra.yaml
@@ -0,0 +1,204 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470
+ - custom_envs.CoordSokoban.env_config.num_boxes=2
+ - 'custom_envs.CoordSokoban.env_instruction=''You are solving the Sokoban puzzle.
+ You are the player and you need to push all boxes to targets You are provided
+ with a symbol grid and the zero-indexed coordinates of the player, each box,
+ and each target. Coordinates range from the top-left corner (0, 0) to the bottom-right
+ corner (5, 5). When you are exactly next to a box, you can push it by moving
+ in the same direction. You cannot push a box through a wall, and you cannot
+ pull a box. The answer should be a sequence of actions, like Right ||
+ Right || Up. A sample full output is as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3).
+ 1 Down – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left
+ of box, ready to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '''
+ - trainer.experiment_name=sokoban-box2-starpos-SPA
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: 'actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.CoordSokoban.env_config.num_boxes=2,custom_envs.CoordSokoban.env_instruction=''You
+ are solving the Sokoban puzzle. You are the player and you need to push all
+ boxes to targets You are provided with a symbol grid and the zero-indexed coordinates
+ of the player, each box, and each target. Coordinates range from the top-left
+ corner (0, 0) to the bottom-right corner (5, 5). When you are exactly next to
+ a box, you can push it by moving in the same direction. You cannot push a box
+ through a wall, and you cannot pull a box. The answer should be a sequence of
+ actions, like Right || Right || Up. A sample full output is
+ as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3).
+ 1 Down – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left
+ of box, ready to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '',model_path=/mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470,system.CUDA_VISIBLE_DEVICES=''0'',trainer.experiment_name=sokoban-box2-starpos-SPA,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_25_15b_it'
+ id: ???
+ num: ???
+ config_name: _2_sokoban
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-16/17-11-13
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-16/17-11-13/.hydra/overrides.yaml b/outputs/2025-12-16/17-11-13/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b180acfe3df59acfa8b06ff555af2bab4c57df85
--- /dev/null
+++ b/outputs/2025-12-16/17-11-13/.hydra/overrides.yaml
@@ -0,0 +1,23 @@
+- system.CUDA_VISIBLE_DEVICES='0'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470
+- custom_envs.CoordSokoban.env_config.num_boxes=2
+- 'custom_envs.CoordSokoban.env_instruction=''You are solving the Sokoban puzzle.
+ You are the player and you need to push all boxes to targets You are provided with
+ a symbol grid and the zero-indexed coordinates of the player, each box, and each
+ target. Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5). When you are exactly next to a box, you can push it by moving in the same
+ direction. You cannot push a box through a wall, and you cannot pull a box. The
+ answer should be a sequence of actions, like Right || Right || Up.
+ A sample full output is as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3). 1 Down
+ – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left of box, ready
+ to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '''
+- trainer.experiment_name=sokoban-box2-starpos-SPA
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-16/17-11-13/train.log b/outputs/2025-12-16/17-11-13/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-16/17-14-54/.hydra/config.yaml b/outputs/2025-12-16/17-14-54/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e5a0fcccd4f186790d4d2ae38c3fe78c5a2e3fa7
--- /dev/null
+++ b/outputs/2025-12-16/17-14-54/.hydra/config.yaml
@@ -0,0 +1,861 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: sokoban-box2-starpos-SPA
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: 'You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets You are provided with a symbol grid and the
+ zero-indexed coordinates of the player, each box, and each target. Coordinates
+ range from the top-left corner (0, 0) to the bottom-right corner (5, 5). When
+ you are exactly next to a box, you can push it by moving in the same direction.
+ You cannot push a box through a wall, and you cannot pull a box. The answer
+ should be a sequence of actions, like Right || Right || Up.
+ A sample full output is as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3).
+ 1 Down – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left
+ of box, ready to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-16/17-14-54/.hydra/hydra.yaml b/outputs/2025-12-16/17-14-54/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..bd607427f0b2a360cbf09ff82ba3c3aff3f183f9
--- /dev/null
+++ b/outputs/2025-12-16/17-14-54/.hydra/hydra.yaml
@@ -0,0 +1,204 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_15b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470
+ - custom_envs.CoordSokoban.env_config.num_boxes=2
+ - 'custom_envs.CoordSokoban.env_instruction=''You are solving the Sokoban puzzle.
+ You are the player and you need to push all boxes to targets You are provided
+ with a symbol grid and the zero-indexed coordinates of the player, each box,
+ and each target. Coordinates range from the top-left corner (0, 0) to the bottom-right
+ corner (5, 5). When you are exactly next to a box, you can push it by moving
+ in the same direction. You cannot push a box through a wall, and you cannot
+ pull a box. The answer should be a sequence of actions, like Right ||
+ Right || Up. A sample full output is as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3).
+ 1 Down – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left
+ of box, ready to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '''
+ - trainer.experiment_name=sokoban-box2-starpos-SPA
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: 'actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,custom_envs.CoordSokoban.env_config.num_boxes=2,custom_envs.CoordSokoban.env_instruction=''You
+ are solving the Sokoban puzzle. You are the player and you need to push all
+ boxes to targets You are provided with a symbol grid and the zero-indexed coordinates
+ of the player, each box, and each target. Coordinates range from the top-left
+ corner (0, 0) to the bottom-right corner (5, 5). When you are exactly next to
+ a box, you can push it by moving in the same direction. You cannot push a box
+ through a wall, and you cannot pull a box. The answer should be a sequence of
+ actions, like Right || Right || Up. A sample full output is
+ as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3).
+ 1 Down – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left
+ of box, ready to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '',model_path=/mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470,system.CUDA_VISIBLE_DEVICES=''0,1,2,3,4,5,6,7'',trainer.experiment_name=sokoban-box2-starpos-SPA,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_15b_it'
+ id: ???
+ num: ???
+ config_name: _2_sokoban
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-16/17-14-54
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-16/17-14-54/.hydra/overrides.yaml b/outputs/2025-12-16/17-14-54/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..68d5c59ef52d99373d33ea7c9fc76b957ac9c122
--- /dev/null
+++ b/outputs/2025-12-16/17-14-54/.hydra/overrides.yaml
@@ -0,0 +1,23 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_15b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/SPA/sftckpt/checkpoints_2_sokoban-1.5B-text_with_coordinates-qwen/global_step_1470
+- custom_envs.CoordSokoban.env_config.num_boxes=2
+- 'custom_envs.CoordSokoban.env_instruction=''You are solving the Sokoban puzzle.
+ You are the player and you need to push all boxes to targets You are provided with
+ a symbol grid and the zero-indexed coordinates of the player, each box, and each
+ target. Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5). When you are exactly next to a box, you can push it by moving in the same
+ direction. You cannot push a box through a wall, and you cannot pull a box. The
+ answer should be a sequence of actions, like Right || Right || Up.
+ A sample full output is as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3). 1 Down
+ – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left of box, ready
+ to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '''
+- trainer.experiment_name=sokoban-box2-starpos-SPA
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-16/17-14-54/train.log b/outputs/2025-12-16/17-14-54/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-16/18-56-32/.hydra/config.yaml b/outputs/2025-12-16/18-56-32/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8775ecebc7f5ef8749e9d9fb95736c7bb7390f80
--- /dev/null
+++ b/outputs/2025-12-16/18-56-32/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5-7000score
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-16/18-56-32/.hydra/overrides.yaml b/outputs/2025-12-16/18-56-32/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fdf7373fe4af122d83bef5424848d49d5a5eaa2d
--- /dev/null
+++ b/outputs/2025-12-16/18-56-32/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-16/18-56-32/train.log b/outputs/2025-12-16/18-56-32/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-16/18-57-51/.hydra/config.yaml b/outputs/2025-12-16/18-57-51/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8775ecebc7f5ef8749e9d9fb95736c7bb7390f80
--- /dev/null
+++ b/outputs/2025-12-16/18-57-51/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5-7000score
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-16/18-57-51/.hydra/hydra.yaml b/outputs/2025-12-16/18-57-51/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..13652b8f46e9aa6c12dee4fd8978ca80a19568a5
--- /dev/null
+++ b/outputs/2025-12-16/18-57-51/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=game_2048-frommlp-windows5-7000score,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-16/18-57-51
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-16/18-57-51/.hydra/overrides.yaml b/outputs/2025-12-16/18-57-51/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fdf7373fe4af122d83bef5424848d49d5a5eaa2d
--- /dev/null
+++ b/outputs/2025-12-16/18-57-51/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=8
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-16/18-57-51/train.log b/outputs/2025-12-16/18-57-51/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-16/19-51-25/.hydra/config.yaml b/outputs/2025-12-16/19-51-25/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e381537b13554e426308bbf00a8401005678b846
--- /dev/null
+++ b/outputs/2025-12-16/19-51-25/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5-7000score
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: '6'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-16/19-51-25/.hydra/hydra.yaml b/outputs/2025-12-16/19-51-25/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9b3f568b1d044084f963fed9ac7a39a7c16734c1
--- /dev/null
+++ b/outputs/2025-12-16/19-51-25/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='6'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648,system.CUDA_VISIBLE_DEVICES='6',trainer.experiment_name=game_2048-frommlp-windows5-7000score,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-16/19-51-25
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-16/19-51-25/.hydra/overrides.yaml b/outputs/2025-12-16/19-51-25/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d90fda331eb51741abbb515848c295a7b61052a7
--- /dev/null
+++ b/outputs/2025-12-16/19-51-25/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='6'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-16/19-51-25/train.log b/outputs/2025-12-16/19-51-25/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-16/19-54-46/.hydra/hydra.yaml b/outputs/2025-12-16/19-54-46/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..43ef8da6ce053e0383f26ba23540d5752b346ead
--- /dev/null
+++ b/outputs/2025-12-16/19-54-46/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='6'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648,system.CUDA_VISIBLE_DEVICES='6',trainer.experiment_name=game_2048-frommlp-windows5-7000score,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-16/19-54-46
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-16/19-54-46/.hydra/overrides.yaml b/outputs/2025-12-16/19-54-46/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d90fda331eb51741abbb515848c295a7b61052a7
--- /dev/null
+++ b/outputs/2025-12-16/19-54-46/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='6'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-16/19-54-46/train.log b/outputs/2025-12-16/19-54-46/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-16/19-58-16/.hydra/config.yaml b/outputs/2025-12-16/19-58-16/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e381537b13554e426308bbf00a8401005678b846
--- /dev/null
+++ b/outputs/2025-12-16/19-58-16/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5-7000score
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: '6'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-16/19-58-16/.hydra/hydra.yaml b/outputs/2025-12-16/19-58-16/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..5a15dd570025a56f7eb11564ef079dd2023ddbe5
--- /dev/null
+++ b/outputs/2025-12-16/19-58-16/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='6'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648,system.CUDA_VISIBLE_DEVICES='6',trainer.experiment_name=game_2048-frommlp-windows5-7000score,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-16/19-58-16
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-16/19-58-16/.hydra/overrides.yaml b/outputs/2025-12-16/19-58-16/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d90fda331eb51741abbb515848c295a7b61052a7
--- /dev/null
+++ b/outputs/2025-12-16/19-58-16/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='6'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-16/20-08-43/.hydra/config.yaml b/outputs/2025-12-16/20-08-43/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e381537b13554e426308bbf00a8401005678b846
--- /dev/null
+++ b/outputs/2025-12-16/20-08-43/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5-7000score
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: '6'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-16/20-08-43/.hydra/hydra.yaml b/outputs/2025-12-16/20-08-43/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e446585fefad4990337b80a40624cd240fff2975
--- /dev/null
+++ b/outputs/2025-12-16/20-08-43/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='6'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=1
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648,system.CUDA_VISIBLE_DEVICES='6',trainer.experiment_name=game_2048-frommlp-windows5-7000score,trainer.n_gpus_per_node=1,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-16/20-08-43
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-16/20-08-43/.hydra/overrides.yaml b/outputs/2025-12-16/20-08-43/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d90fda331eb51741abbb515848c295a7b61052a7
--- /dev/null
+++ b/outputs/2025-12-16/20-08-43/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='6'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-16/20-08-43/train.log b/outputs/2025-12-16/20-08-43/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-16/20-10-32/.hydra/overrides.yaml b/outputs/2025-12-16/20-10-32/.hydra/overrides.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d90fda331eb51741abbb515848c295a7b61052a7
--- /dev/null
+++ b/outputs/2025-12-16/20-10-32/.hydra/overrides.yaml
@@ -0,0 +1,10 @@
+- system.CUDA_VISIBLE_DEVICES='6'
+- trainer.project_name=ragen_latest_qwen_25_3b_it
+- trainer.n_gpus_per_node=1
+- model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+- trainer.experiment_name=game_2048-frommlp-windows5-7000score
+- algorithm.adv_estimator=gae
+- algorithm.kl_ctrl.kl_coef=0.0
+- actor_rollout_ref.actor.kl_loss_coef=0.0
+- actor_rollout_ref.actor.clip_ratio_high=0.28
+- actor_rollout_ref.rollout.rollout_filter_ratio=0.25
diff --git a/outputs/2025-12-16/20-10-32/train.log b/outputs/2025-12-16/20-10-32/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-16/20-22-19/.hydra/hydra.yaml b/outputs/2025-12-16/20-22-19/.hydra/hydra.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b632045a1317bdfcaf12c47e823c9232f3cca7ca
--- /dev/null
+++ b/outputs/2025-12-16/20-22-19/.hydra/hydra.yaml
@@ -0,0 +1,179 @@
+hydra:
+ run:
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ sweep:
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
+ subdir: ${hydra.job.num}
+ launcher:
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
+ sweeper:
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
+ max_batch_size: null
+ params: null
+ help:
+ app_name: ${hydra.job.name}
+ header: '${hydra.help.app_name} is powered by Hydra.
+
+ '
+ footer: 'Powered by Hydra (https://hydra.cc)
+
+ Use --hydra-help to view Hydra specific help
+
+ '
+ template: '${hydra.help.header}
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (group=option)
+
+
+ $APP_CONFIG_GROUPS
+
+
+ == Config ==
+
+ Override anything in the config (foo.bar=value)
+
+
+ $CONFIG
+
+
+ ${hydra.help.footer}
+
+ '
+ hydra_help:
+ template: 'Hydra (${hydra.runtime.version})
+
+ See https://hydra.cc for more info.
+
+
+ == Flags ==
+
+ $FLAGS_HELP
+
+
+ == Configuration groups ==
+
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
+ to command line)
+
+
+ $HYDRA_CONFIG_GROUPS
+
+
+ Use ''--cfg hydra'' to Show the Hydra config.
+
+ '
+ hydra_help: ???
+ hydra_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][HYDRA] %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ root:
+ level: INFO
+ handlers:
+ - console
+ loggers:
+ logging_example:
+ level: DEBUG
+ disable_existing_loggers: false
+ job_logging:
+ version: 1
+ formatters:
+ simple:
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
+ handlers:
+ console:
+ class: logging.StreamHandler
+ formatter: simple
+ stream: ext://sys.stdout
+ file:
+ class: logging.FileHandler
+ formatter: simple
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
+ root:
+ level: INFO
+ handlers:
+ - console
+ - file
+ disable_existing_loggers: false
+ env: {}
+ mode: RUN
+ searchpath: []
+ callbacks: {}
+ output_subdir: .hydra
+ overrides:
+ hydra:
+ - hydra.mode=RUN
+ task:
+ - system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7'
+ - trainer.project_name=ragen_latest_qwen_25_3b_it
+ - trainer.n_gpus_per_node=8
+ - model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+ - trainer.experiment_name=game_2048-frommlp-windows5-7000score
+ - algorithm.adv_estimator=gae
+ - algorithm.kl_ctrl.kl_coef=0.0
+ - actor_rollout_ref.actor.kl_loss_coef=0.0
+ - actor_rollout_ref.actor.clip_ratio_high=0.28
+ - actor_rollout_ref.rollout.rollout_filter_ratio=0.25
+ job:
+ name: train
+ chdir: null
+ override_dirname: actor_rollout_ref.actor.clip_ratio_high=0.28,actor_rollout_ref.actor.kl_loss_coef=0.0,actor_rollout_ref.rollout.rollout_filter_ratio=0.25,algorithm.adv_estimator=gae,algorithm.kl_ctrl.kl_coef=0.0,model_path=/mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648,system.CUDA_VISIBLE_DEVICES='0,1,2,3,4,5,6,7',trainer.experiment_name=game_2048-frommlp-windows5-7000score,trainer.n_gpus_per_node=8,trainer.project_name=ragen_latest_qwen_25_3b_it
+ id: ???
+ num: ???
+ config_name: _8_2048
+ env_set: {}
+ env_copy: []
+ config:
+ override_dirname:
+ kv_sep: '='
+ item_sep: ','
+ exclude_keys: []
+ runtime:
+ version: 1.3.2
+ version_base: '1.3'
+ cwd: /mnt/general/wanghy/RAGEN
+ config_sources:
+ - path: hydra.conf
+ schema: pkg
+ provider: hydra
+ - path: /mnt/general/wanghy/RAGEN/config
+ schema: file
+ provider: main
+ - path: /mnt/general/wanghy/RAGEN/verl/verl/trainer/config
+ schema: file
+ provider: command-line
+ - path: ''
+ schema: structured
+ provider: schema
+ output_dir: /mnt/general/wanghy/RAGEN/outputs/2025-12-16/20-22-19
+ choices:
+ reward_model: dp_reward_model
+ critic: dp_critic
+ critic/../engine@critic.model.fsdp_config: fsdp
+ critic/../optim@critic.optim: fsdp
+ model@actor_rollout_ref.model: hf_model
+ rollout@actor_rollout_ref.rollout: rollout
+ ref@actor_rollout_ref.ref: dp_ref
+ ref/../engine@actor_rollout_ref.ref.fsdp_config: fsdp
+ data: legacy_data
+ actor@actor_rollout_ref.actor: dp_actor
+ actor/../engine@actor_rollout_ref.actor.fsdp_config: fsdp
+ actor/../optim@actor_rollout_ref.actor.optim: fsdp
+ hydra/env: default
+ hydra/callbacks: null
+ hydra/job_logging: default
+ hydra/hydra_logging: default
+ hydra/hydra_help: default
+ hydra/help: default
+ hydra/sweeper: basic
+ hydra/launcher: basic
+ hydra/output: default
+ verbose: false
diff --git a/outputs/2025-12-16/20-22-19/train.log b/outputs/2025-12-16/20-22-19/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-16/20-26-33/.hydra/config.yaml b/outputs/2025-12-16/20-26-33/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e381537b13554e426308bbf00a8401005678b846
--- /dev/null
+++ b/outputs/2025-12-16/20-26-33/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 256
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 8192
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_3b_it
+ experiment_name: game_2048-frommlp-windows5-7000score
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 1
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: '6'
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/LLaMA-Factory/saves/qwen3/full/sft/qwen2.5_3B_it_2048_windows5_7000scores/checkpoint-3648
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 700
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - game_2048
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-16/20-48-11/train.log b/outputs/2025-12-16/20-48-11/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-17/01-38-45/.hydra/config.yaml b/outputs/2025-12-17/01-38-45/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4ebe5ddeea336a75726392ec14c80b904c1b4b8d
--- /dev/null
+++ b/outputs/2025-12-17/01-38-45/.hydra/config.yaml
@@ -0,0 +1,857 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 500
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_05B_it
+ experiment_name: frozenlake-static-starpos-SPA
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. You are the player and you\
+ \ need to push all boxes to targets.\nYou are provided with a symbol grid and\
+ \ the zero-indexed coordinates of the player, each box, and each target. \n\
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner\
+ \ (5, 5). \nWhen you are exactly next to a box, you can push it by moving in\
+ \ the same direction. \nYou cannot push a box through a wall, and you cannot\
+ \ pull a box.\nThe answer should be a sequence of actions, like Right\
+ \ || Right || Up.\n"
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: /mnt/general/wanghy/SPA/sftckpt/checkpoints_3_frozen_lake-0.5B-text_with_coordinates-qwen/global_step_3068
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: 5
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 4
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - rubikscube
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-17/01-38-45/train.log b/outputs/2025-12-17/01-38-45/train.log
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/outputs/2025-12-17/02-15-58/.hydra/config.yaml b/outputs/2025-12-17/02-15-58/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ccd232fe1bfd58cb468e81ec5de742b3a8354f18
--- /dev/null
+++ b/outputs/2025-12-17/02-15-58/.hydra/config.yaml
@@ -0,0 +1,861 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: sokoban-box2-starpos-stateestimate
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: 'You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets You are provided with a symbol grid and the
+ zero-indexed coordinates of the player, each box, and each target. Coordinates
+ range from the top-left corner (0, 0) to the bottom-right corner (5, 5). When
+ you are exactly next to a box, you can push it by moving in the same direction.
+ You cannot push a box through a wall, and you cannot pull a box. The answer
+ should be a sequence of actions, like Right || Right || Up.
+ A sample full output is as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3).
+ 1 Down – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left
+ of box, ready to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+ intro || simp || rfl.
+ max_tokens: 512
+ env_config: null
+ game_2048:
+ env_type: game_2048
+ max_actions_per_traj: 700
+ env_instruction: 'You are playing the 2048 game on a 4x4 grid. Merge equal tiles
+ by sliding Up, Right, Down, or Left.
+
+ If a move is invalid (no tiles move), a small penalty is applied. Respond with
+ a single action.
+
+ Example: Up
+
+ '
+ max_tokens: 8192
+ env_config: null
+ blackjack:
+ env_type: blackjack
+ max_actions_per_traj: 10
+ env_instruction: 'You are playing Blackjack against a dealer. The dealer must
+ hit on 16 or less and stand on 17 or more.
+
+ Choose either Stick or Hit. Respond with a single action.
+
+ Example: Hit
+
+ '
+ max_tokens: 64
+ env_config: null
+ rubikscube:
+ env_type: rubikscube
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a 2x2 Rubik''s Cube (Pocket Cube). The goal
+ is to restore the cube so that each of the faces consists of a single, unique
+ color.
+
+ Available actions use standard Singmaster notation for face rotations: U, U'',
+ D, D'', L, L'', R, R'', F, F'', B, B''.
+
+ - Faces: U (Up), D (Down), L (Left), R (Right), F (Front), B (Back).
+
+ - Modifiers: A letter alone means 90° clockwise (e.g., ''R''). A letter with
+ prime ('') means 90° counter-clockwise (e.g., "R''").
+
+ Respond with a sequence of actions separated by "||".
+
+ Example: U
+
+ '
+ max_tokens: 96
+ env_config:
+ scramble_depth: null
+ max_steps: 20
+ render_mode: text
+ SimpleSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 20
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 2x2 box contains the numbers 1-4 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format, for example: place 1 at
+ row 2 col 3 or 1,2,3
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 4
+ difficulty: easy
+ render_format: with_feedback
+ show_conflicts: false
+ show_valid_numbers: false
+ max_steps: 20
+ MediumSudoku:
+ env_type: sudoku
+ max_actions_per_traj: 30
+ env_instruction: 'You are solving a Sudoku puzzle. Fill in the grid so that every
+ row, column, and 3x3 box contains the numbers 1-9 without repetition.
+
+ Initial cells are shown in [brackets] and cannot be modified. Empty cells are
+ shown as dots (.).
+
+ Place numbers one at a time using the format: place 5 at row 2 col 3
+ or 2,3,5
+
+ The environment will provide feedback on valid/invalid moves and show conflicts
+ if any occur.
+
+ '
+ max_tokens: 150
+ parallel_friendly: false
+ max_workers: 32
+ env_config:
+ grid_size: 9
+ difficulty: medium
+ render_format: with_feedback
+ show_conflicts: true
+ show_valid_numbers: true
+ max_steps: 81
+system:
+ CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
+seed:
+ train: 10000
+ val: 123
+micro_batch_size_per_gpu: 1
+ppo_mini_batch_size: 32
+model_path: Qwen/Qwen2.5-1.5B-Instruct
+enable_response_mask: true
+grpo_advantage_length_weight: false
+lora:
+ rank: 0
+ alpha: 16
+ target_modules: all-linear
+agent_proxy:
+ max_context_window: -1
+ max_turn: 25
+ action_sep: '||'
+ max_actions_per_turn: 1
+ use_turn_scores: false
+ enable_think: true
+ reward_normalization:
+ grouping: state
+ method: identity
+es_manager:
+ format_penalty: -0.1
+ train:
+ env_groups: 8
+ group_size: 16
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 8
+ val:
+ env_groups: 256
+ group_size: 1
+ env_configs:
+ tags:
+ - CoordSokoban
+ n_groups:
+ - 256
+ctx_manager:
+ generation:
+ gen_config:
+ response_length: ${actor_rollout_ref.rollout.response_length}
+ temperature: ${actor_rollout_ref.rollout.temperature}
+ top_p: ${actor_rollout_ref.rollout.top_p}
+ top_k: ${actor_rollout_ref.rollout.top_k}
+ kwargs: null
diff --git a/outputs/2025-12-17/07-07-14/.hydra/config.yaml b/outputs/2025-12-17/07-07-14/.hydra/config.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..e5a0fcccd4f186790d4d2ae38c3fe78c5a2e3fa7
--- /dev/null
+++ b/outputs/2025-12-17/07-07-14/.hydra/config.yaml
@@ -0,0 +1,861 @@
+actor_rollout_ref:
+ actor:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-06
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ _target_: verl.workers.config.FSDPActorConfig
+ strategy: fsdp
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: false
+ ppo_max_token_len_per_gpu: 16384
+ clip_ratio: 0.2
+ clip_ratio_low: 0.2
+ clip_ratio_high: 0.28
+ freeze_vision_tower: false
+ policy_loss:
+ _target_: verl.workers.config.PolicyLossConfig
+ loss_mode: vanilla
+ clip_cov_ratio: 0.0002
+ clip_cov_lb: 1.0
+ clip_cov_ub: 5.0
+ kl_cov_ratio: 0.0002
+ ppo_kl_coef: 0.1
+ clip_ratio_c: 3.0
+ loss_agg_mode: token-mean
+ entropy_coeff: 0.001
+ tis_imp_ratio_cap: -1
+ use_kl_loss: false
+ use_torch_compile: true
+ kl_loss_coef: 0.0
+ kl_loss_type: kl
+ ppo_epochs: 1
+ shuffle: false
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ use_fused_kernels: ${oc.select:actor_rollout_ref.model.use_fused_kernels,false}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ grad_clip: 1.0
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ use_remove_padding: ${oc.select:actor_rollout_ref.model.use_remove_padding,false}
+ use_ref: true
+ grpo_advantage_length_weight: ${grpo_advantage_length_weight}
+ ref:
+ strategy: ${actor_rollout_ref.actor.strategy}
+ use_torch_compile: ${oc.select:actor_rollout_ref.actor.use_torch_compile,true}
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ model: null
+ ulysses_sequence_parallel_size: ${oc.select:actor_rollout_ref.actor.ulysses_sequence_parallel_size,1}
+ entropy_from_logits_with_chunking: false
+ entropy_checkpointing: false
+ rollout:
+ _target_: verl.workers.config.RolloutConfig
+ name: vllm
+ mode: sync
+ temperature: 1
+ top_k: -1
+ top_p: 1
+ prompt_length: 1
+ response_length: 400
+ dtype: bfloat16
+ gpu_memory_utilization: 0.7
+ ignore_eos: false
+ enforce_eager: true
+ cudagraph_capture_sizes: null
+ free_cache_engine: true
+ tensor_model_parallel_size: 1
+ data_parallel_size: 1
+ expert_parallel_size: 1
+ max_num_batched_tokens: 8192
+ max_model_len: 3600
+ max_num_seqs: 1024
+ enable_chunked_prefill: true
+ enable_prefix_caching: true
+ load_format: dummy
+ log_prob_micro_batch_size: null
+ log_prob_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ log_prob_use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ log_prob_max_token_len_per_gpu: ${oc.select:actor_rollout_ref.actor.ppo_max_token_len_per_gpu,16384}
+ disable_log_stats: true
+ do_sample: true
+ 'n': 1
+ over_sample_rate: 0
+ multi_stage_wake_up: false
+ engine_kwargs:
+ vllm: {}
+ sglang: {}
+ val_kwargs:
+ _target_: verl.workers.config.SamplingConfig
+ top_k: -1
+ top_p: 1.0
+ temperature: 0.5
+ 'n': 1
+ do_sample: true
+ multi_turn:
+ _target_: verl.workers.config.MultiTurnConfig
+ enable: false
+ max_assistant_turns: null
+ tool_config_path: null
+ max_user_turns: null
+ max_parallel_calls: 1
+ max_tool_response_length: 256
+ tool_response_truncate_side: middle
+ interaction_config_path: null
+ use_inference_chat_template: false
+ tokenization_sanity_check_mode: strict
+ format: hermes
+ num_repeat_rollouts: null
+ calculate_log_probs: false
+ agent:
+ _target_: verl.workers.config.AgentLoopConfig
+ num_workers: 8
+ agent_loop_config_path: null
+ custom_async_server:
+ _target_: verl.workers.config.CustomAsyncServerConfig
+ path: null
+ name: null
+ update_weights_bucket_megabytes: 512
+ trace:
+ _target_: verl.workers.config.TraceConfig
+ backend: null
+ token2text: false
+ skip_rollout: false
+ skip_dump_dir: /tmp/rollout_dump
+ skip_tokenizer_init: true
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: ${oc.select:actor_rollout_ref.actor.profiler.enable,false}
+ all_ranks: ${oc.select:actor_rollout_ref.actor.profiler.all_ranks,false}
+ ranks: ${oc.select:actor_rollout_ref.actor.profiler.ranks,[]}
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ layered_summon: false
+ rollout_filter_ratio: 0.25
+ rollout_filter_type: largest
+ rollout_filter_metric: reward_variance
+ model:
+ _target_: verl.workers.config.HFModelConfig
+ path: ${model_path}
+ hf_config_path: null
+ tokenizer_path: null
+ use_shm: false
+ trust_remote_code: false
+ custom_chat_template: null
+ external_lib: null
+ override_config: {}
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ exclude_modules: null
+ use_liger: false
+ use_fused_kernels: false
+ fused_kernel_options:
+ impl_backend: torch
+ hybrid_engine: true
+ nccl_timeout: 600
+data:
+ tokenizer: null
+ use_shm: false
+ train_files: ~/data/rlhf/gsm8k/train.parquet
+ val_files: ~/data/rlhf/gsm8k/test.parquet
+ prompt_key: prompt
+ reward_fn_key: data_source
+ max_prompt_length: null
+ max_response_length: null
+ train_batch_size: null
+ val_batch_size: null
+ return_raw_input_ids: false
+ return_raw_chat: false
+ return_full_prompt: false
+ shuffle: true
+ dataloader_num_workers: 8
+ validation_shuffle: false
+ filter_overlong_prompts: false
+ filter_overlong_prompts_workers: 1
+ truncation: error
+ image_key: images
+ video_key: videos
+ trust_remote_code: false
+ custom_cls:
+ path: null
+ name: null
+ return_multi_modal_inputs: true
+ sampler:
+ class_path: null
+ class_name: null
+ datagen:
+ path: null
+ name: null
+ apply_chat_template_kwargs: {}
+critic:
+ optim:
+ _target_: verl.workers.config.FSDPOptimizerConfig
+ lr: 1.0e-05
+ lr_warmup_steps_ratio: 0.0
+ total_training_steps: -1
+ weight_decay: 0.01
+ lr_warmup_steps: -1
+ betas:
+ - 0.9
+ - 0.999
+ clip_grad: 1.0
+ min_lr_ratio: 0.0
+ num_cycles: 0.5
+ warmup_style: constant
+ model:
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ optimizer_offload: false
+ offload_policy: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ model_dtype: fp32
+ use_orig_params: false
+ ulysses_sequence_parallel_size: 1
+ entropy_from_logits_with_chunking: false
+ use_torch_compile: true
+ entropy_checkpointing: false
+ forward_only: false
+ strategy: fsdp
+ path: ${model_path}
+ tokenizer_path: ${oc.select:actor_rollout_ref.model.path,"~/models/deepseek-llm-7b-chat"}
+ override_config: {}
+ external_lib: ${oc.select:actor_rollout_ref.model.external_lib,null}
+ trust_remote_code: ${oc.select:actor_rollout_ref.model.trust_remote_code,false}
+ _target_: verl.workers.config.FSDPCriticModelCfg
+ use_shm: false
+ enable_gradient_checkpointing: true
+ enable_activation_offload: false
+ use_remove_padding: false
+ lora_rank: ${lora.rank}
+ lora_alpha: ${lora.alpha}
+ target_modules: ${lora.target_modules}
+ _target_: verl.workers.config.FSDPCriticConfig
+ rollout_n: ${oc.select:actor_rollout_ref.rollout.n,1}
+ strategy: fsdp
+ enable: null
+ ppo_mini_batch_size: ${ppo_mini_batch_size}
+ ppo_micro_batch_size: null
+ ppo_micro_batch_size_per_gpu: ${micro_batch_size_per_gpu}
+ use_dynamic_bsz: ${oc.select:actor_rollout_ref.actor.use_dynamic_bsz,false}
+ ppo_max_token_len_per_gpu: 32768
+ forward_max_token_len_per_gpu: ${.ppo_max_token_len_per_gpu}
+ ppo_epochs: ${oc.select:actor_rollout_ref.actor.ppo_epochs,1}
+ shuffle: ${oc.select:actor_rollout_ref.actor.shuffle,false}
+ cliprange_value: 0.5
+ loss_agg_mode: ${oc.select:actor_rollout_ref.actor.loss_agg_mode,token-mean}
+ checkpoint:
+ _target_: verl.trainer.config.CheckpointConfig
+ save_contents:
+ - model
+ - optimizer
+ - extra
+ load_contents: ${.save_contents}
+ async_save: false
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: ${oc.select:global_profiler.global_tool_config.nsys.discrete}
+ npu:
+ _target_: verl.utils.profiler.config.NPUToolConfig
+ contents: []
+ level: level1
+ analysis: true
+ discrete: false
+ torch:
+ _target_: verl.utils.profiler.config.TorchProfilerToolConfig
+ step_start: 0
+ step_end: null
+ torch_memory:
+ _target_: verl.utils.profiler.config.TorchMemoryToolConfig
+ trace_alloc_max_entries: ${oc.select:global_profiler.global_tool_config.torch_memory.trace_alloc_max_entries,100000}
+ stack_depth: ${oc.select:global_profiler.global_tool_config.torch_memory.stack_depth,32}
+ forward_micro_batch_size: ${oc.select:.ppo_micro_batch_size,null}
+ forward_micro_batch_size_per_gpu: ${oc.select:.ppo_micro_batch_size_per_gpu,null}
+ ulysses_sequence_parallel_size: 1
+ grad_clip: 1.0
+reward_model:
+ enable: false
+ enable_resource_pool: false
+ n_gpus_per_node: 0
+ nnodes: 0
+ strategy: fsdp
+ model:
+ input_tokenizer: ${actor_rollout_ref.model.path}
+ path: ~/models/FsfairX-LLaMA3-RM-v0.1
+ external_lib: ${actor_rollout_ref.model.external_lib}
+ trust_remote_code: false
+ use_shm: false
+ use_remove_padding: false
+ use_fused_kernels: ${actor_rollout_ref.model.use_fused_kernels}
+ fsdp_config:
+ _target_: verl.workers.config.FSDPEngineConfig
+ wrap_policy:
+ min_num_params: 0
+ param_offload: false
+ reshard_after_forward: true
+ fsdp_size: -1
+ forward_prefetch: false
+ micro_batch_size: null
+ micro_batch_size_per_gpu: null
+ max_length: null
+ use_dynamic_bsz: ${critic.use_dynamic_bsz}
+ forward_max_token_len_per_gpu: ${critic.forward_max_token_len_per_gpu}
+ reward_manager: naive
+ launch_reward_fn_async: false
+ sandbox_fusion:
+ url: null
+ max_concurrent: 64
+ memory_limit_mb: 1024
+ profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: ${oc.select:global_profiler.tool,null}
+ enable: false
+ all_ranks: false
+ ranks: []
+ save_path: ${oc.select:global_profiler.save_path,null}
+ tool_config: ${oc.select:actor_rollout_ref.actor.profiler.tool_config,null}
+ ulysses_sequence_parallel_size: 1
+custom_reward_function:
+ path: null
+ name: compute_score
+algorithm:
+ _target_: verl.trainer.config.AlgoConfig
+ gamma: 1.0
+ lam: 1.0
+ adv_estimator: gae
+ norm_adv_by_std_in_grpo: true
+ use_kl_in_reward: false
+ kl_penalty: kl
+ kl_ctrl:
+ _target_: verl.trainer.config.KLControlConfig
+ type: fixed
+ kl_coef: 0.0
+ horizon: 10000
+ target_kl: 0.1
+ use_pf_ppo: false
+ pf_ppo:
+ reweight_method: pow
+ weight_pow: 2.0
+ high_level_gamma: 0.95
+ bi_level_gae: false
+trainer:
+ balance_batch: true
+ total_epochs: 30
+ total_training_steps: 200
+ project_name: ragen_latest_qwen_25_15b_it
+ experiment_name: sokoban-box2-starpos-SPA
+ logger:
+ - console
+ - wandb
+ log_val_generations: 0
+ rollout_data_dir: null
+ validation_data_dir: null
+ nnodes: 1
+ n_gpus_per_node: 8
+ save_freq: -1
+ esi_redundant_time: 0
+ resume_mode: auto
+ resume_from_path: null
+ val_before_train: true
+ val_only: false
+ test_freq: 10
+ critic_warmup: 0
+ default_hdfs_dir: null
+ del_local_ckpt_after_load: false
+ default_local_dir: /mnt/general/wanghy/RAGEN/saves/
+ max_actor_ckpt_to_keep: 1
+ max_critic_ckpt_to_keep: 1
+ ray_wait_register_center_timeout: 300
+ device: cuda
+ use_legacy_worker_impl: auto
+ local_log_dir: results/
+ validation_steps: 1
+ generations_to_log_to_wandb:
+ train: 128
+ val: 20
+global_profiler:
+ _target_: verl.utils.profiler.ProfilerConfig
+ tool: null
+ steps: null
+ profile_continuous_steps: false
+ save_path: outputs/profile
+ global_tool_config:
+ nsys:
+ _target_: verl.utils.profiler.config.NsightToolConfig
+ discrete: false
+ controller_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ worker_nsight_options:
+ trace: cuda,nvtx,cublas,ucx
+ cuda-memory-usage: 'true'
+ cuda-graph-trace: graph
+ capture-range: cudaProfilerApi
+ capture-range-end: null
+ kill: none
+ torch_memory:
+ trace_alloc_max_entries: 100000
+ stack_depth: 32
+ context: all
+ stacks: all
+ kw_args: {}
+ray_kwargs:
+ ray_init:
+ num_cpus: null
+ timeline_json_file: null
+custom_envs:
+ SimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ LargerSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ dim_x: 8
+ dim_y: 8
+ num_boxes: 2
+ max_steps: 100
+ search_depth: 10
+ SokobanDifferentGridVocab:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: "You are solving the Sokoban puzzle. \nYou are the player and\
+ \ you need to push all boxes to targets. \nWhen you are right next to a box,\
+ \ you can push it by moving in the same direction. \nYou cannot push a box through\
+ \ a wall, and you cannot pull a box. \nThe answer should be a sequence of actions,\
+ \ like Right || Right || Up\n"
+ max_tokens: 100
+ env_config:
+ search_depth: 30
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ grid_lookup:
+ 0: W
+ 1: .
+ 2: G
+ 3: C
+ 4: B
+ 5: A
+ 6: '@'
+ grid_vocab:
+ W: wall
+ .: empty
+ G: target
+ C: box on target
+ B: box
+ A: player
+ '@': player on target
+ CoordSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: 'You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets You are provided with a symbol grid and the
+ zero-indexed coordinates of the player, each box, and each target. Coordinates
+ range from the top-left corner (0, 0) to the bottom-right corner (5, 5). When
+ you are exactly next to a box, you can push it by moving in the same direction.
+ You cannot push a box through a wall, and you cannot pull a box. The answer
+ should be a sequence of actions, like Right || Right || Up.
+ A sample full output is as follows: ######\n#_####\n#_P###\n#_X#_#\n#__O_#\n######\nPlayer
+ (P) is at (2,2); box (X) is at (3,2); target (O) is at (4,3).
+ 1 Down – I push box to (4,2). 2 Left – I step to (3,1). 3 Down – I stand left
+ of box, ready to push it Right onto target. ######\n#_####\n#__###\n#__#_#\n#PXO_#\n######
+ Down || Left || Down '
+ max_tokens: 120
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 2
+ max_steps: 100
+ observation_format: grid_coord
+ VisualSimpleSokoban:
+ env_type: sokoban
+ max_actions_per_traj: 10
+ env_instruction: You are solving the Sokoban puzzle. You are the player and you
+ need to push all boxes to targets. When you are right next to a box, you can
+ push it by moving in the same direction. You cannot push a box through a wall,
+ and you cannot pull a box. The answer should be a sequence of actions, like
+ Right || Right || Up
+ max_tokens: 100
+ env_config:
+ dim_x: 6
+ dim_y: 6
+ num_boxes: 1
+ max_steps: 100
+ render_mode: rgb_array
+ Countdown:
+ env_type: countdown
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving the Countdown puzzle. You should use the num
+ list to create an equation that equals the target. Example answer format:
+ To find an equation using [3, 5, 2] to get 4. Let''s check 2 + 5 = 7, 7 - 3
+ = 4. So the answer is 2 + 5 - 3 = 4. 2 + 5 - 3'
+ max_tokens: 100
+ env_config: null
+ Bandit:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: train
+ BanditTest:
+ env_type: bandit
+ max_actions_per_traj: 1
+ env_instruction: ''
+ max_tokens: 100
+ env_config:
+ split: test
+ FrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. Forbid the whole and
+ go to the target. You may move to the unintended direction due to the slippery
+ ice. Example answer format: To forbid the hole and go to the target,
+ I should go left then go up.Left || Up'
+ max_tokens: 100
+ env_config: null
+ CoordFrozenLake:
+ env_type: frozen_lake
+ max_actions_per_traj: 25
+ env_instruction: 'You are solving the FrozenLake puzzle. The observation includes
+ both a symbol grid and zero-indexed coordinates for the start, goal, player,
+ and any holes.
+
+ Coordinates range from the top-left corner (0, 0) to the bottom-right corner
+ (5, 5).
+
+ Beware that the ice is slippery, so the agent might slide and end up in an unintended
+ tile.
+
+ Respond with a sequence of actions such as Left || Up || Up.
+
+ '
+ max_tokens: 120
+ env_config:
+ observation_format: grid_coord
+ MetamathQA:
+ env_type: metamathqa
+ max_actions_per_traj: 1
+ env_instruction: 'You are solving Math problems. '
+ max_tokens: 100
+ env_config: null
+ WebShop:
+ env_type: webshop
+ max_actions_per_traj: 9
+ env_instruction: 'You are browsing an online shop. Based on the instruction, buy
+ a product that close to the production description. You need to search, read
+ the search results, pick a product, choose the size and color and buy. You should
+ only choose action from the available actions list provided later. Example
+ process: I need a gingko light and 20x20 pillow cover that is hand painted.
+ First search[gingko light 20x20 pillow cover hand painted], answer format: search[blanket
+ with fleece throw]. Valid answer is search[] or click[].'
+ max_tokens: 200
+ env_config:
+ dataset: small
+ Lean:
+ env_type: lean
+ max_actions_per_traj: 30
+ env_instruction: You are a Lean theorem prover. Given a Lean theorem statement,
+ propose a sequence of tactics that completes the proof. Think step by step about
+ which tactics to apply next. Provide tactics separated by '||', for example
+