verl 0.7.1__tar.gz → 0.8.0.dev0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (524) hide show
  1. {verl-0.7.1/verl.egg-info → verl-0.8.0.dev0}/PKG-INFO +33 -32
  2. {verl-0.7.1 → verl-0.8.0.dev0}/README.md +30 -29
  3. {verl-0.7.1 → verl-0.8.0.dev0}/scripts/converter_hf_to_mcore.py +42 -14
  4. {verl-0.7.1 → verl-0.8.0.dev0}/scripts/legacy_model_merger.py +6 -9
  5. {verl-0.7.1 → verl-0.8.0.dev0}/scripts/megatron_merge_lora.py +33 -13
  6. {verl-0.7.1 → verl-0.8.0.dev0}/setup.py +2 -2
  7. {verl-0.7.1 → verl-0.8.0.dev0}/tests/checkpoint_engine/test_correctness_on_gpu.py +13 -4
  8. verl-0.8.0.dev0/tests/checkpoint_engine/test_global_steps_on_cpu.py +98 -0
  9. {verl-0.7.1 → verl-0.8.0.dev0}/tests/checkpoint_engine/test_special_server_adapter.py +20 -30
  10. {verl-0.7.1 → verl-0.8.0.dev0}/tests/checkpoint_engine/test_utils.py +3 -2
  11. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_data_transfer.py +3 -2
  12. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_device_mesh_register.py +11 -5
  13. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_high_level_scheduling_api.py +16 -12
  14. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_ray_collectives.py +9 -9
  15. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_split_resource_pool.py +52 -48
  16. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_worker_group_basics.py +1 -1
  17. {verl-0.7.1 → verl-0.8.0.dev0}/tests/test_protocol_v2_on_cpu.py +83 -0
  18. verl-0.8.0.dev0/tests/tools/__init__.py +13 -0
  19. verl-0.8.0.dev0/tests/tools/_stub_search_tools.py +47 -0
  20. verl-0.8.0.dev0/tests/tools/test_function_tool_on_cpu.py +644 -0
  21. verl-0.8.0.dev0/tests/tools/test_mixed_tools_on_cpu.py +338 -0
  22. {verl-0.7.1 → verl-0.8.0.dev0}/tests/trainer/ppo/test_core_algos_on_cpu.py +68 -0
  23. {verl-0.7.1 → verl-0.8.0.dev0}/tests/trainer/ppo/test_metric_utils_on_cpu.py +2 -1
  24. {verl-0.7.1 → verl-0.8.0.dev0}/tests/trainer/ppo/test_rollout_corr.py +47 -0
  25. {verl-0.7.1 → verl-0.8.0.dev0}/tests/trainer/ppo/test_rollout_corr_integration.py +43 -0
  26. verl-0.8.0.dev0/tests/trainer/test_multi_trajectories_advantage.py +86 -0
  27. {verl-0.7.1 → verl-0.8.0.dev0}/verl/checkpoint_engine/base.py +155 -15
  28. {verl-0.7.1 → verl-0.8.0.dev0}/verl/checkpoint_engine/hccl_checkpoint_engine.py +9 -2
  29. {verl-0.7.1 → verl-0.8.0.dev0}/verl/checkpoint_engine/kimi_checkpoint_engine.py +9 -2
  30. {verl-0.7.1 → verl-0.8.0.dev0}/verl/checkpoint_engine/mooncake_checkpoint_engine.py +9 -2
  31. {verl-0.7.1 → verl-0.8.0.dev0}/verl/checkpoint_engine/nccl_checkpoint_engine.py +39 -26
  32. {verl-0.7.1 → verl-0.8.0.dev0}/verl/checkpoint_engine/nixl_checkpoint_engine.py +39 -26
  33. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/agent_loop/__init__.py +14 -2
  34. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/agent_loop/agent_loop.py +407 -344
  35. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/agent_loop/single_turn_agent_loop.py +11 -2
  36. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/agent_loop/tool_agent_loop.py +126 -125
  37. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/agent_loop/tool_parser.py +89 -0
  38. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/fully_async_policy/config/fully_async_ppo_megatron_trainer.yaml +1 -4
  39. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/fully_async_policy/config/fully_async_ppo_trainer.yaml +2 -5
  40. verl-0.8.0.dev0/verl/experimental/fully_async_policy/detach_utils.py +374 -0
  41. verl-0.8.0.dev0/verl/experimental/fully_async_policy/fully_async_main.py +233 -0
  42. verl-0.8.0.dev0/verl/experimental/fully_async_policy/fully_async_rollouter.py +1167 -0
  43. verl-0.8.0.dev0/verl/experimental/fully_async_policy/fully_async_trainer.py +767 -0
  44. verl-0.8.0.dev0/verl/experimental/fully_async_policy/message_queue.py +234 -0
  45. verl-0.8.0.dev0/verl/experimental/fully_async_policy/unittest/__init__.py +14 -0
  46. verl-0.8.0.dev0/verl/experimental/fully_async_policy/unittest/simple_streaming_demo.py +176 -0
  47. {verl-0.7.1/verl/interactions → verl-0.8.0.dev0/verl/experimental/one_step_off_policy}/__init__.py +1 -0
  48. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/one_step_off_policy/config/one_step_off_ppo_megatron_trainer.yaml +0 -3
  49. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/one_step_off_policy/config/one_step_off_ppo_trainer.yaml +0 -3
  50. verl-0.8.0.dev0/verl/experimental/one_step_off_policy/main_ppo.py +130 -0
  51. verl-0.8.0.dev0/verl/experimental/one_step_off_policy/ray_trainer.py +413 -0
  52. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/reward_loop/reward_loop.py +23 -13
  53. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/reward_loop/reward_manager/base.py +24 -0
  54. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/reward_loop/reward_manager/dapo.py +1 -1
  55. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/reward_loop/reward_manager/gdpo.py +1 -1
  56. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/reward_loop/reward_manager/limited.py +1 -1
  57. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/reward_loop/reward_manager/naive.py +1 -1
  58. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/reward_loop/reward_manager/remote.py +2 -2
  59. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/reward_loop/reward_model.py +12 -3
  60. verl-0.8.0.dev0/verl/experimental/reward_loop/router/inner_sglang_router.py +73 -0
  61. verl-0.8.0.dev0/verl/experimental/reward_loop/router/naive_router.py +183 -0
  62. verl-0.8.0.dev0/verl/experimental/separation/__init__.py +13 -0
  63. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/separation/engine_workers.py +37 -7
  64. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/separation/ray_trainer.py +105 -98
  65. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/separation/utils.py +9 -9
  66. verl-0.8.0.dev0/verl/experimental/teacher_loop/__init__.py +17 -0
  67. verl-0.8.0.dev0/verl/experimental/teacher_loop/teacher_manager.py +128 -0
  68. verl-0.8.0.dev0/verl/experimental/teacher_loop/teacher_model.py +204 -0
  69. {verl-0.7.1 → verl-0.8.0.dev0}/verl/model_merger/base_model_merger.py +15 -10
  70. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/mcore/__init__.py +6 -6
  71. verl-0.8.0.dev0/verl/models/mcore/bridge.py +29 -0
  72. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/mcore/config_converter.py +25 -2
  73. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/mcore/model_forward.py +118 -30
  74. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/mcore/model_forward_fused.py +9 -9
  75. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/mcore/model_initializer.py +4 -77
  76. verl-0.8.0.dev0/verl/models/mcore/mtp_patch.py +452 -0
  77. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/mcore/patch.py +101 -14
  78. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/mcore/registry.py +13 -29
  79. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/mcore/util.py +259 -38
  80. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/transformers/dense_common.py +14 -4
  81. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/transformers/glm4v.py +23 -8
  82. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/transformers/monkey_patch.py +47 -1
  83. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/transformers/npu_patch.py +41 -3
  84. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/transformers/qwen2_vl.py +26 -11
  85. verl-0.8.0.dev0/verl/models/transformers/qwen3_5.py +296 -0
  86. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/transformers/qwen3_vl.py +89 -9
  87. {verl-0.7.1 → verl-0.8.0.dev0}/verl/protocol.py +27 -6
  88. {verl-0.7.1 → verl-0.8.0.dev0}/verl/single_controller/base/decorator.py +4 -0
  89. {verl-0.7.1 → verl-0.8.0.dev0}/verl/single_controller/base/worker_group.py +2 -2
  90. {verl-0.7.1 → verl-0.8.0.dev0}/verl/single_controller/ray/base.py +8 -3
  91. verl-0.8.0.dev0/verl/tools/function_tool.py +258 -0
  92. {verl-0.7.1 → verl-0.8.0.dev0}/verl/tools/schemas.py +7 -3
  93. verl-0.8.0.dev0/verl/tools/tool_registry.py +101 -0
  94. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/_generated_ppo_megatron_trainer.yaml +264 -56
  95. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/_generated_ppo_torchtitan_trainer.yaml +235 -20
  96. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/_generated_ppo_trainer.yaml +262 -69
  97. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/_generated_ppo_veomni_trainer.yaml +263 -20
  98. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/actor/actor.yaml +59 -0
  99. verl-0.8.0.dev0/verl/trainer/config/actor/dp_actor.yaml +44 -0
  100. verl-0.8.0.dev0/verl/trainer/config/actor/mindspeed_actor.yaml +18 -0
  101. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/actor/veomni_actor.yaml +2 -0
  102. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/algorithm/rollout_correction.yaml +3 -1
  103. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/algorithm.py +51 -2
  104. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/config.py +2 -0
  105. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/critic/critic.yaml +21 -20
  106. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/critic/dp_critic.yaml +1 -37
  107. verl-0.8.0.dev0/verl/trainer/config/critic/megatron_critic.yaml +28 -0
  108. verl-0.8.0.dev0/verl/trainer/config/critic/mindspeed_critic.yaml +30 -0
  109. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/critic/torchtitan_critic.yaml +0 -6
  110. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/critic/veomni_critic.yaml +0 -6
  111. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/data/legacy_data.yaml +9 -21
  112. verl-0.8.0.dev0/verl/trainer/config/distillation/distillation.yaml +113 -0
  113. verl-0.8.0.dev0/verl/trainer/config/engine/automodel.yaml +82 -0
  114. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/engine/megatron.yaml +28 -1
  115. verl-0.8.0.dev0/verl/trainer/config/engine/mindspeed.yaml +46 -0
  116. verl-0.8.0.dev0/verl/trainer/config/engine/veomni.yaml +85 -0
  117. verl-0.8.0.dev0/verl/trainer/config/model/hf_model.yaml +163 -0
  118. verl-0.8.0.dev0/verl/trainer/config/model_engine/megatron.yaml +2 -0
  119. verl-0.8.0.dev0/verl/trainer/config/model_engine/mindspeed.yaml +2 -0
  120. verl-0.8.0.dev0/verl/trainer/config/optim/automodel.yaml +56 -0
  121. verl-0.8.0.dev0/verl/trainer/config/ppo_megatron_trainer.yaml +6 -0
  122. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/ppo_trainer.yaml +85 -13
  123. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/profiler/profiler.yaml +16 -1
  124. verl-0.8.0.dev0/verl/trainer/config/ref/mindspeed_ref.yaml +37 -0
  125. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/ref/ref.yaml +21 -1
  126. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/ref/veomni_ref.yaml +5 -0
  127. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/reward/reward.yaml +26 -1
  128. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/rollout/rollout.yaml +95 -18
  129. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/sft_trainer_engine.yaml +2 -32
  130. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/constants_ppo.py +12 -0
  131. verl-0.8.0.dev0/verl/trainer/distillation/__init__.py +14 -0
  132. verl-0.8.0.dev0/verl/trainer/distillation/fsdp/losses.py +94 -0
  133. verl-0.8.0.dev0/verl/trainer/distillation/losses.py +394 -0
  134. verl-0.8.0.dev0/verl/trainer/distillation/megatron/__init__.py +13 -0
  135. verl-0.8.0.dev0/verl/trainer/distillation/megatron/losses.py +312 -0
  136. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/main_ppo.py +53 -113
  137. verl-0.8.0.dev0/verl/trainer/main_ppo_sync.py +1866 -0
  138. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/ppo/core_algos.py +6 -2
  139. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/ppo/metric_utils.py +77 -34
  140. verl-0.8.0.dev0/verl/trainer/ppo/padding_utils.py +198 -0
  141. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/ppo/ray_trainer.py +362 -219
  142. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/ppo/reward.py +27 -19
  143. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/ppo/rollout_corr_helper.py +90 -27
  144. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/ppo/utils.py +11 -1
  145. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/sft_trainer.py +6 -0
  146. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/sft_trainer_ray.py +19 -0
  147. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/__init__.py +16 -2
  148. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/chat_template.py +22 -6
  149. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/checkpoint/fsdp_checkpoint_manager.py +40 -1
  150. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/checkpoint/megatron_checkpoint_manager.py +275 -105
  151. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/config.py +1 -1
  152. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/dataset/dataset_utils.py +6 -1
  153. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/dataset/multiturn_sft_dataset.py +11 -3
  154. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/dataset/rl_dataset.py +124 -50
  155. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/debug/metrics.py +12 -0
  156. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/device.py +39 -1
  157. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/distributed.py +5 -1
  158. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/experimental/torch_functional.py +19 -6
  159. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/flops_counter.py +7 -3
  160. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/fp8_utils.py +4 -3
  161. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/fsdp_utils.py +130 -2
  162. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/groupwise.py +2 -3
  163. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/import_utils.py +9 -1
  164. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/megatron/router_replay_utils.py +30 -8
  165. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/megatron/tensor_parallel.py +28 -0
  166. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/megatron_peft_utils.py +0 -169
  167. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/megatron_utils.py +247 -44
  168. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/memory_utils.py +21 -8
  169. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/model.py +56 -4
  170. verl-0.8.0.dev0/verl/utils/modelopt/__init__.py +36 -0
  171. verl-0.8.0.dev0/verl/utils/modelopt/qat_utils.py +45 -0
  172. verl-0.8.0.dev0/verl/utils/modelopt/qat_weight_exporter.py +275 -0
  173. verl-0.8.0.dev0/verl/utils/modelopt/quantize.py +80 -0
  174. verl-0.8.0.dev0/verl/utils/modelopt/vllm_modelopt_patch.py +619 -0
  175. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/profiler/config.py +25 -0
  176. verl-0.8.0.dev0/verl/utils/profiler/precision_debugger_profile.py +265 -0
  177. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/profiler/profile.py +21 -6
  178. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/__init__.py +5 -0
  179. verl-0.8.0.dev0/verl/utils/reward_score/math_verify.py +67 -0
  180. verl-0.8.0.dev0/verl/utils/rollout_skip.py +453 -0
  181. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/rollout_trace.py +173 -19
  182. verl-0.8.0.dev0/verl/utils/sglang/__init__.py +14 -0
  183. verl-0.7.1/verl/models/mcore/qwen2_5_vl/__init__.py → verl-0.8.0.dev0/verl/utils/sglang/sglang_fp8_utils.py +4 -4
  184. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/tensordict_utils.py +76 -9
  185. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/tokenizer.py +81 -2
  186. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/tracking.py +61 -4
  187. verl-0.8.0.dev0/verl/utils/transferqueue_utils.py +430 -0
  188. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/transformers_compat.py +47 -0
  189. verl-0.8.0.dev0/verl/utils/trtllm/__init__.py +14 -0
  190. verl-0.8.0.dev0/verl/utils/trtllm/trtllm_fp8_utils.py +21 -0
  191. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/ulysses.py +68 -1
  192. verl-0.8.0.dev0/verl/utils/veomni/router_replay.py +522 -0
  193. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/vllm/__init__.py +2 -0
  194. verl-0.8.0.dev0/verl/utils/vllm/npu_vllm_patch.py +227 -0
  195. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/vllm/patch.py +8 -1
  196. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/vllm/vllm_fp8_utils.py +205 -27
  197. verl-0.8.0.dev0/verl/version/version +1 -0
  198. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/config/__init__.py +5 -1
  199. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/config/actor.py +57 -11
  200. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/config/critic.py +87 -24
  201. verl-0.8.0.dev0/verl/workers/config/disaggregation.py +54 -0
  202. verl-0.8.0.dev0/verl/workers/config/distillation.py +308 -0
  203. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/config/engine.py +223 -21
  204. verl-0.8.0.dev0/verl/workers/config/megatron_peft.py +40 -0
  205. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/config/model.py +25 -1
  206. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/config/optimizer.py +45 -0
  207. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/config/reward.py +2 -2
  208. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/config/rollout.py +67 -7
  209. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/__init__.py +14 -4
  210. verl-0.8.0.dev0/verl/workers/engine/automodel/__init__.py +20 -0
  211. verl-0.8.0.dev0/verl/workers/engine/automodel/transformer_impl.py +713 -0
  212. verl-0.8.0.dev0/verl/workers/engine/automodel/utils.py +250 -0
  213. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/base.py +5 -2
  214. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/fsdp/transformer_impl.py +193 -32
  215. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/fsdp/utils.py +14 -2
  216. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/megatron/__init__.py +2 -2
  217. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/megatron/transformer_impl.py +211 -71
  218. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/mindspeed/__init__.py +2 -2
  219. verl-0.8.0.dev0/verl/workers/engine/mindspeed/transformer_impl.py +139 -0
  220. verl-0.8.0.dev0/verl/workers/engine/mindspeed/utils.py +223 -0
  221. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/torchtitan/transformer_impl.py +7 -11
  222. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/torchtitan/utils.py +18 -12
  223. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/utils.py +1 -2
  224. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/veomni/__init__.py +2 -2
  225. verl-0.8.0.dev0/verl/workers/engine/veomni/transformer_impl.py +1066 -0
  226. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/veomni/utils.py +9 -0
  227. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine_workers.py +119 -52
  228. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/base.py +1 -1
  229. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/hf_rollout.py +1 -1
  230. verl-0.8.0.dev0/verl/workers/rollout/llm_server.py +373 -0
  231. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/replica.py +58 -16
  232. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/schemas.py +51 -10
  233. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/sglang_rollout/async_sglang_server.py +311 -29
  234. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/sglang_rollout/http_server_engine.py +22 -3
  235. verl-0.8.0.dev0/verl/workers/rollout/sglang_rollout/sglang_pd_replica.py +229 -0
  236. verl-0.8.0.dev0/verl/workers/rollout/sglang_rollout/sglang_rollout.py +380 -0
  237. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/sglang_rollout/utils.py +2 -0
  238. verl-0.8.0.dev0/verl/workers/rollout/trtllm_rollout/__init__.py +13 -0
  239. verl-0.8.0.dev0/verl/workers/rollout/trtllm_rollout/trtllm_async_server.py +629 -0
  240. verl-0.8.0.dev0/verl/workers/rollout/trtllm_rollout/trtllm_rollout.py +537 -0
  241. verl-0.8.0.dev0/verl/workers/rollout/trtllm_rollout/trtllm_worker_extension.py +198 -0
  242. verl-0.7.1/verl/experimental/agent_loop/prometheus_utils.py → verl-0.8.0.dev0/verl/workers/rollout/utils.py +91 -3
  243. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/vllm_rollout/bucketed_weight_transfer.py +46 -14
  244. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/vllm_rollout/utils.py +120 -19
  245. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/vllm_rollout/vllm_async_server.py +339 -156
  246. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/vllm_rollout/vllm_rollout.py +32 -12
  247. verl-0.8.0.dev0/verl/workers/utils/__init__.py +13 -0
  248. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/utils/losses.py +11 -41
  249. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/utils/padding.py +109 -4
  250. {verl-0.7.1 → verl-0.8.0.dev0/verl.egg-info}/PKG-INFO +33 -32
  251. {verl-0.7.1 → verl-0.8.0.dev0}/verl.egg-info/SOURCES.txt +138 -150
  252. {verl-0.7.1 → verl-0.8.0.dev0}/verl.egg-info/requires.txt +1 -1
  253. verl-0.7.1/tests/interactions/__init__.py +0 -15
  254. verl-0.7.1/tests/interactions/test_gsm8k_interaction.py +0 -422
  255. verl-0.7.1/tests/interactions/test_interaction_registry.py +0 -206
  256. verl-0.7.1/tests/trainer/config/test_algo_config_on_cpu.py +0 -204
  257. verl-0.7.1/tests/trainer/config/test_legacy_config_on_cpu.py +0 -180
  258. verl-0.7.1/verl/experimental/dataset/sampler.py +0 -40
  259. verl-0.7.1/verl/experimental/dynamic_dataset/dynamicgen_dataset.py +0 -112
  260. verl-0.7.1/verl/experimental/vla/config/rob_ppo_trainer.yaml +0 -138
  261. verl-0.7.1/verl/experimental/vla/config/rob_sac_trainer.yaml +0 -73
  262. verl-0.7.1/verl/interactions/base.py +0 -72
  263. verl-0.7.1/verl/interactions/gsm8k_interaction.py +0 -87
  264. verl-0.7.1/verl/interactions/utils/interaction_registry.py +0 -85
  265. verl-0.7.1/verl/interactions/weather_interaction.py +0 -79
  266. verl-0.7.1/verl/models/llama/megatron/__init__.py +0 -34
  267. verl-0.7.1/verl/models/llama/megatron/checkpoint_utils/llama_loader.py +0 -317
  268. verl-0.7.1/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py +0 -458
  269. verl-0.7.1/verl/models/llama/megatron/checkpoint_utils/llama_saver.py +0 -442
  270. verl-0.7.1/verl/models/llama/megatron/layers/__init__.py +0 -34
  271. verl-0.7.1/verl/models/llama/megatron/layers/parallel_attention.py +0 -460
  272. verl-0.7.1/verl/models/llama/megatron/layers/parallel_decoder.py +0 -150
  273. verl-0.7.1/verl/models/llama/megatron/layers/parallel_linear.py +0 -106
  274. verl-0.7.1/verl/models/llama/megatron/layers/parallel_mlp.py +0 -74
  275. verl-0.7.1/verl/models/llama/megatron/layers/parallel_rmsnorm.py +0 -49
  276. verl-0.7.1/verl/models/llama/megatron/modeling_llama_megatron.py +0 -688
  277. verl-0.7.1/verl/models/mcore/bridge.py +0 -178
  278. verl-0.7.1/verl/models/mcore/mtp_patch.py +0 -295
  279. verl-0.7.1/verl/models/mcore/qwen2_5_vl/attention.py +0 -225
  280. verl-0.7.1/verl/models/mcore/qwen2_5_vl/model.py +0 -372
  281. verl-0.7.1/verl/models/mcore/qwen2_5_vl/rope_utils.py +0 -266
  282. verl-0.7.1/verl/models/mcore/qwen2_5_vl/vision_config.py +0 -85
  283. verl-0.7.1/verl/models/mcore/qwen2_5_vl/vision_model.py +0 -309
  284. verl-0.7.1/verl/models/mcore/qwen2_5_vl/vision_transformer_block.py +0 -265
  285. verl-0.7.1/verl/models/qwen2/megatron/__init__.py +0 -34
  286. verl-0.7.1/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py +0 -337
  287. verl-0.7.1/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py +0 -475
  288. verl-0.7.1/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py +0 -448
  289. verl-0.7.1/verl/models/qwen2/megatron/layers/__init__.py +0 -26
  290. verl-0.7.1/verl/models/qwen2/megatron/layers/parallel_attention.py +0 -400
  291. verl-0.7.1/verl/models/qwen2/megatron/layers/parallel_decoder.py +0 -150
  292. verl-0.7.1/verl/models/qwen2/megatron/layers/parallel_linear.py +0 -79
  293. verl-0.7.1/verl/models/qwen2/megatron/layers/parallel_mlp.py +0 -74
  294. verl-0.7.1/verl/models/qwen2/megatron/layers/parallel_rmsnorm.py +0 -48
  295. verl-0.7.1/verl/models/qwen2/megatron/modeling_qwen2_megatron.py +0 -737
  296. verl-0.7.1/verl/tools/__init__.py +0 -14
  297. verl-0.7.1/verl/tools/geo3k_tool.py +0 -101
  298. verl-0.7.1/verl/tools/gsm8k_tool.py +0 -110
  299. verl-0.7.1/verl/tools/image_zoom_in_tool.py +0 -392
  300. verl-0.7.1/verl/tools/mcp_base_tool.py +0 -122
  301. verl-0.7.1/verl/tools/mcp_search_tool.py +0 -69
  302. verl-0.7.1/verl/tools/sandbox_fusion_tools.py +0 -197
  303. verl-0.7.1/verl/tools/search_tool.py +0 -279
  304. verl-0.7.1/verl/tools/utils/__init__.py +0 -14
  305. verl-0.7.1/verl/tools/utils/search_r1_like_utils.py +0 -245
  306. verl-0.7.1/verl/tools/utils/tool_registry.py +0 -142
  307. verl-0.7.1/verl/trainer/config/actor/dp_actor.yaml +0 -82
  308. verl-0.7.1/verl/trainer/config/critic/megatron_critic.yaml +0 -106
  309. verl-0.7.1/verl/trainer/config/engine/veomni.yaml +0 -56
  310. verl-0.7.1/verl/trainer/config/model/hf_model.yaml +0 -97
  311. verl-0.7.1/verl/trainer/config/ppo_megatron_trainer.yaml +0 -244
  312. verl-0.7.1/verl/trainer/ppo/__init__.py +0 -13
  313. verl-0.7.1/verl/utils/experimental/__init__.py +0 -13
  314. verl-0.7.1/verl/utils/megatron/__init__.py +0 -13
  315. verl-0.7.1/verl/utils/rendezvous/__init__.py +0 -13
  316. verl-0.7.1/verl/utils/reward_score/math_verify.py +0 -39
  317. verl-0.7.1/verl/utils/rollout_skip.py +0 -132
  318. verl-0.7.1/verl/version/version +0 -1
  319. verl-0.7.1/verl/workers/__init__.py +0 -13
  320. verl-0.7.1/verl/workers/actor/__init__.py +0 -18
  321. verl-0.7.1/verl/workers/actor/base.py +0 -66
  322. verl-0.7.1/verl/workers/actor/dp_actor.py +0 -676
  323. verl-0.7.1/verl/workers/actor/megatron_actor.py +0 -833
  324. verl-0.7.1/verl/workers/config/megatron_peft.py +0 -121
  325. verl-0.7.1/verl/workers/critic/__init__.py +0 -18
  326. verl-0.7.1/verl/workers/critic/base.py +0 -40
  327. verl-0.7.1/verl/workers/critic/dp_critic.py +0 -263
  328. verl-0.7.1/verl/workers/critic/megatron_critic.py +0 -343
  329. verl-0.7.1/verl/workers/engine/mindspeed/transformer_impl.py +0 -49
  330. verl-0.7.1/verl/workers/engine/veomni/transformer_impl.py +0 -593
  331. verl-0.7.1/verl/workers/fsdp_workers.py +0 -1737
  332. verl-0.7.1/verl/workers/megatron_workers.py +0 -1286
  333. verl-0.7.1/verl/workers/rollout/sglang_rollout/sglang_rollout.py +0 -224
  334. verl-0.7.1/verl/workers/rollout/utils.py +0 -103
  335. verl-0.7.1/verl/workers/sharding_manager/__init__.py +0 -13
  336. verl-0.7.1/verl/workers/sharding_manager/base.py +0 -35
  337. verl-0.7.1/verl/workers/sharding_manager/fsdp_ulysses.py +0 -72
  338. {verl-0.7.1 → verl-0.8.0.dev0}/LICENSE +0 -0
  339. {verl-0.7.1 → verl-0.8.0.dev0}/pyproject.toml +0 -0
  340. {verl-0.7.1 → verl-0.8.0.dev0}/scripts/__init__.py +0 -0
  341. {verl-0.7.1 → verl-0.8.0.dev0}/scripts/diagnose.py +0 -0
  342. {verl-0.7.1 → verl-0.8.0.dev0}/scripts/init_random_model.py +0 -0
  343. {verl-0.7.1 → verl-0.8.0.dev0}/scripts/print_cfg.py +0 -0
  344. {verl-0.7.1 → verl-0.8.0.dev0}/scripts/rollout_viewer.py +0 -0
  345. {verl-0.7.1 → verl-0.8.0.dev0}/setup.cfg +0 -0
  346. {verl-0.7.1 → verl-0.8.0.dev0}/tests/__init__.py +0 -0
  347. {verl-0.7.1 → verl-0.8.0.dev0}/tests/checkpoint_engine/__init__.py +0 -0
  348. {verl-0.7.1 → verl-0.8.0.dev0}/tests/checkpoint_engine/test_correctness_on_npu.py +0 -0
  349. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/__init__.py +0 -0
  350. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_auto_padding_on_cpu.py +0 -0
  351. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_colocated_workers.py +0 -0
  352. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_colocated_workers_fused.py +0 -0
  353. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_decorator_on_cpu.py +0 -0
  354. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_driverfunc_to_worker.py +0 -0
  355. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_fused_workers_on_cpu.py +0 -0
  356. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_get_set_dispatch_collect_cpu.py +0 -0
  357. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_nested_worker.py +0 -0
  358. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_ray_local_envs_on_cpu.py +0 -0
  359. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_ray_utils_on_cpu.py +0 -0
  360. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_rvdz.py +0 -0
  361. {verl-0.7.1 → verl-0.8.0.dev0}/tests/single_controller/test_worker_group_torch.py +0 -0
  362. {verl-0.7.1 → verl-0.8.0.dev0}/tests/special_e2e/__init__.py +0 -0
  363. {verl-0.7.1 → verl-0.8.0.dev0}/tests/special_e2e/check_custom_rwd_fn.py +0 -0
  364. {verl-0.7.1 → verl-0.8.0.dev0}/tests/special_e2e/check_results.py +0 -0
  365. {verl-0.7.1 → verl-0.8.0.dev0}/tests/special_e2e/envs/__init__.py +0 -0
  366. {verl-0.7.1 → verl-0.8.0.dev0}/tests/special_e2e/envs/digit_completion/__init__.py +0 -0
  367. {verl-0.7.1 → verl-0.8.0.dev0}/tests/special_e2e/envs/digit_completion/task.py +0 -0
  368. {verl-0.7.1 → verl-0.8.0.dev0}/tests/special_e2e/envs/digit_completion/tokenizer.py +0 -0
  369. {verl-0.7.1 → verl-0.8.0.dev0}/tests/test_base_config_on_cpu.py +0 -0
  370. {verl-0.7.1 → verl-0.8.0.dev0}/tests/test_protocol_on_cpu.py +0 -0
  371. {verl-0.7.1 → verl-0.8.0.dev0}/tests/trainer/__init__.py +0 -0
  372. {verl-0.7.1 → verl-0.8.0.dev0}/tests/trainer/ppo/__init__.py +0 -0
  373. {verl-0.7.1 → verl-0.8.0.dev0}/verl/__init__.py +0 -0
  374. {verl-0.7.1 → verl-0.8.0.dev0}/verl/base_config.py +0 -0
  375. {verl-0.7.1 → verl-0.8.0.dev0}/verl/checkpoint_engine/__init__.py +0 -0
  376. {verl-0.7.1/tests/trainer/config → verl-0.8.0.dev0/verl/experimental}/__init__.py +0 -0
  377. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/agent_loop/utils.py +0 -0
  378. {verl-0.7.1/verl/experimental/separation → verl-0.8.0.dev0/verl/experimental/fully_async_policy}/__init__.py +0 -0
  379. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/reward_loop/__init__.py +0 -0
  380. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/reward_loop/reward_manager/__init__.py +0 -0
  381. {verl-0.7.1 → verl-0.8.0.dev0}/verl/experimental/reward_loop/reward_manager/registry.py +0 -0
  382. {verl-0.7.1/verl/experimental → verl-0.8.0.dev0/verl/experimental/reward_loop/router}/__init__.py +0 -0
  383. {verl-0.7.1/verl/experimental/dataset → verl-0.8.0.dev0/verl/model_merger}/__init__.py +0 -0
  384. {verl-0.7.1 → verl-0.8.0.dev0}/verl/model_merger/__main__.py +0 -0
  385. {verl-0.7.1 → verl-0.8.0.dev0}/verl/model_merger/fsdp_model_merger.py +0 -0
  386. {verl-0.7.1 → verl-0.8.0.dev0}/verl/model_merger/megatron_model_merger.py +0 -0
  387. {verl-0.7.1/verl/experimental/dynamic_dataset → verl-0.8.0.dev0/verl/models}/__init__.py +0 -0
  388. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/mcore/loader.py +0 -0
  389. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/mcore/mbridge.py +0 -0
  390. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/mcore/model_forward_1f1b_overlap.py +0 -0
  391. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/mcore/saver.py +0 -0
  392. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/mcore/weight_converter.py +0 -0
  393. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/registry.py +0 -0
  394. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/transformers/__init__.py +0 -0
  395. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/transformers/apertus.py +0 -0
  396. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/transformers/kimi_vl.py +0 -0
  397. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/transformers/llama.py +0 -0
  398. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/transformers/qwen2.py +0 -0
  399. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/transformers/tiled_mlp.py +0 -0
  400. {verl-0.7.1 → verl-0.8.0.dev0}/verl/models/weight_loader_registry.py +0 -0
  401. {verl-0.7.1 → verl-0.8.0.dev0}/verl/py.typed +0 -0
  402. {verl-0.7.1 → verl-0.8.0.dev0}/verl/single_controller/__init__.py +0 -0
  403. {verl-0.7.1 → verl-0.8.0.dev0}/verl/single_controller/base/__init__.py +0 -0
  404. {verl-0.7.1 → verl-0.8.0.dev0}/verl/single_controller/base/worker.py +0 -0
  405. {verl-0.7.1 → verl-0.8.0.dev0}/verl/single_controller/ray/__init__.py +0 -0
  406. {verl-0.7.1/verl/model_merger → verl-0.8.0.dev0/verl/third_party}/__init__.py +0 -0
  407. {verl-0.7.1 → verl-0.8.0.dev0}/verl/third_party/torch/__init__.py +0 -0
  408. {verl-0.7.1 → verl-0.8.0.dev0}/verl/third_party/torch/distributed/__init__.py +0 -0
  409. {verl-0.7.1 → verl-0.8.0.dev0}/verl/third_party/torch/distributed/_state_dict_utils.py +0 -0
  410. {verl-0.7.1 → verl-0.8.0.dev0}/verl/third_party/torch/distributed/checkpoint/__init__.py +0 -0
  411. {verl-0.7.1 → verl-0.8.0.dev0}/verl/third_party/torch/distributed/checkpoint/state_dict.py +0 -0
  412. {verl-0.7.1 → verl-0.8.0.dev0}/verl/third_party/vllm/__init__.py +0 -0
  413. {verl-0.7.1/verl/interactions/utils → verl-0.8.0.dev0/verl/tools}/__init__.py +0 -0
  414. {verl-0.7.1 → verl-0.8.0.dev0}/verl/tools/base_tool.py +0 -0
  415. {verl-0.7.1/verl/models → verl-0.8.0.dev0/verl/trainer}/__init__.py +0 -0
  416. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/__init__.py +0 -0
  417. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/actor/megatron_actor.yaml +0 -0
  418. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/actor/torchtitan_actor.yaml +0 -0
  419. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/engine/fsdp.yaml +0 -0
  420. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/engine/torchtitan.yaml +0 -0
  421. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/evaluation.yaml +0 -0
  422. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/legacy_reward_impl.yaml +0 -0
  423. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/model_engine/dp.yaml +0 -0
  424. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/model_engine/torchtitan.yaml +0 -0
  425. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/model_engine/veomni.yaml +0 -0
  426. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/npu_profile/npu_profile.yaml +0 -0
  427. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/optim/fsdp.yaml +0 -0
  428. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/optim/megatron.yaml +0 -0
  429. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/optim/torchtitan.yaml +0 -0
  430. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/optim/veomni.yaml +0 -0
  431. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/ref/dp_ref.yaml +0 -0
  432. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/ref/megatron_ref.yaml +0 -0
  433. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/config/ref/torchtitan_ref.yaml +0 -0
  434. {verl-0.7.1/verl/workers/utils → verl-0.8.0.dev0/verl/trainer/distillation/fsdp}/__init__.py +0 -0
  435. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/main_eval.py +0 -0
  436. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/main_generation_server.py +0 -0
  437. {verl-0.7.1/verl/models/llama → verl-0.8.0.dev0/verl/trainer/ppo}/__init__.py +0 -0
  438. {verl-0.7.1 → verl-0.8.0.dev0}/verl/trainer/ppo/prefix_grouper_utils.py +0 -0
  439. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/activation_offload.py +0 -0
  440. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/attention_utils.py +0 -0
  441. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/checkpoint/__init__.py +0 -0
  442. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/checkpoint/checkpoint_handler.py +0 -0
  443. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/checkpoint/checkpoint_manager.py +0 -0
  444. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/dataset/__init__.py +0 -0
  445. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/dataset/rm_dataset.py +0 -0
  446. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/dataset/vision_utils.py +0 -0
  447. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/debug/__init__.py +0 -0
  448. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/debug/performance.py +0 -0
  449. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/debug/trajectory_tracker.py +0 -0
  450. {verl-0.7.1/verl/models/llama/megatron/checkpoint_utils → verl-0.8.0.dev0/verl/utils/experimental}/__init__.py +0 -0
  451. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/fs.py +0 -0
  452. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/hdfs_io.py +0 -0
  453. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/kernel/__init__.py +0 -0
  454. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/kernel/fp8_kernel.py +0 -0
  455. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/kernel/kernels.py +0 -0
  456. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/kernel/linear_cross_entropy.py +0 -0
  457. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/logger/__init__.py +0 -0
  458. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/logger/aggregate_logger.py +0 -0
  459. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/logging_utils.py +0 -0
  460. {verl-0.7.1/verl/models/qwen2 → verl-0.8.0.dev0/verl/utils/megatron}/__init__.py +0 -0
  461. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/megatron/dist_checkpointing.py +0 -0
  462. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/megatron/memory.py +0 -0
  463. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/megatron/optimizer.py +0 -0
  464. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/megatron/pipeline_parallel.py +0 -0
  465. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/megatron/router_replay_patch.py +0 -0
  466. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/megatron/sequence_parallel.py +0 -0
  467. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/metric/__init__.py +0 -0
  468. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/metric/utils.py +0 -0
  469. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/net_utils.py +0 -0
  470. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/npu_flash_attn_utils.py +0 -0
  471. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/profiler/__init__.py +0 -0
  472. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/profiler/empty_annotations.py +0 -0
  473. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/profiler/mstx_profile.py +0 -0
  474. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/profiler/nvtx_profile.py +0 -0
  475. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/profiler/performance.py +0 -0
  476. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/profiler/torch_profile.py +0 -0
  477. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/py_functional.py +0 -0
  478. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/qat/__init__.py +0 -0
  479. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/qat/core.py +0 -0
  480. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/qat/linear.py +0 -0
  481. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/qat/quantizer.py +0 -0
  482. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/qat/vllm_patch.py +0 -0
  483. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/ray_utils.py +0 -0
  484. {verl-0.7.1/verl/models/qwen2/megatron/checkpoint_utils → verl-0.8.0.dev0/verl/utils/rendezvous}/__init__.py +0 -0
  485. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/rendezvous/ray_backend.py +0 -0
  486. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/geo3k.py +0 -0
  487. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/gsm8k.py +0 -0
  488. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/math_batch.py +0 -0
  489. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/math_dapo.py +0 -0
  490. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/math_reward.py +0 -0
  491. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/prime_code/__init__.py +0 -0
  492. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/prime_code/testing_util.py +0 -0
  493. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/prime_code/utils.py +0 -0
  494. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/prime_math/__init__.py +0 -0
  495. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/prime_math/grader.py +0 -0
  496. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/prime_math/math_normalize.py +0 -0
  497. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/rlla.py +0 -0
  498. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/sandbox_fusion/__init__.py +0 -0
  499. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/sandbox_fusion/utils.py +0 -0
  500. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/reward_score/search_r1_like_qa_em.py +0 -0
  501. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/seqlen_balancing.py +0 -0
  502. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/torch_dtypes.py +0 -0
  503. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/torch_functional.py +0 -0
  504. {verl-0.7.1/verl/third_party → verl-0.8.0.dev0/verl/utils/veomni}/__init__.py +0 -0
  505. {verl-0.7.1 → verl-0.8.0.dev0}/verl/utils/vllm/utils.py +0 -0
  506. {verl-0.7.1/verl/trainer → verl-0.8.0.dev0/verl/workers}/__init__.py +0 -0
  507. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/fsdp/__init__.py +0 -0
  508. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/megatron/utils.py +0 -0
  509. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/engine/torchtitan/__init__.py +0 -0
  510. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/reward_manager/__init__.py +0 -0
  511. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/reward_manager/abstract.py +0 -0
  512. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/reward_manager/batch.py +0 -0
  513. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/reward_manager/dapo.py +0 -0
  514. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/reward_manager/naive.py +0 -0
  515. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/reward_manager/prime.py +0 -0
  516. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/reward_manager/registry.py +0 -0
  517. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/__init__.py +0 -0
  518. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/naive/__init__.py +0 -0
  519. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/naive/naive_rollout.py +0 -0
  520. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/sglang_rollout/__init__.py +0 -0
  521. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/tokenizer.py +0 -0
  522. {verl-0.7.1 → verl-0.8.0.dev0}/verl/workers/rollout/vllm_rollout/__init__.py +0 -0
  523. {verl-0.7.1 → verl-0.8.0.dev0}/verl.egg-info/dependency_links.txt +0 -0
  524. {verl-0.7.1 → verl-0.8.0.dev0}/verl.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: verl
3
- Version: 0.7.1
3
+ Version: 0.8.0.dev0
4
4
  Summary: verl: Volcano Engine Reinforcement Learning for LLM
5
- Home-page: https://github.com/volcengine/verl
5
+ Home-page: https://github.com/verl-project/verl
6
6
  Author: Bytedance - Seed - MLSys
7
7
  Author-email: zhangchi.usc1992@bytedance.com, gmsheng@connect.hku.hk
8
8
  License: Apache-2.0
@@ -49,7 +49,7 @@ Requires-Dist: tensordict!=0.9.0,<=0.10.0,>=0.8.0; extra == "vllm"
49
49
  Requires-Dist: vllm<=0.12.0,>=0.8.5; extra == "vllm"
50
50
  Provides-Extra: sglang
51
51
  Requires-Dist: tensordict!=0.9.0,<=0.10.0,>=0.8.0; extra == "sglang"
52
- Requires-Dist: sglang[openai,srt]==0.5.6; extra == "sglang"
52
+ Requires-Dist: sglang[openai,srt]==0.5.8; extra == "sglang"
53
53
  Requires-Dist: torch==2.9.1; extra == "sglang"
54
54
  Provides-Extra: trl
55
55
  Requires-Dist: trl<=0.9.6; extra == "trl"
@@ -73,8 +73,8 @@ Dynamic: requires-dist
73
73
 
74
74
  <div align="center">
75
75
 
76
- <a href="https://deepwiki.com/volcengine/verl"><img src="https://devin.ai/assets/deepwiki-badge.png" alt="Ask DeepWiki.com" style="height:20px;"></a>
77
- [![GitHub Repo stars](https://img.shields.io/github/stars/volcengine/verl)](https://github.com/volcengine/verl/stargazers)
76
+ <a href="https://deepwiki.com/verl-project/verl"><img src="https://devin.ai/assets/deepwiki-badge.png" alt="Ask DeepWiki.com" style="height:20px;"></a>
77
+ [![GitHub Repo stars](https://img.shields.io/github/stars/verl-project/verl)](https://github.com/verl-project/verl/stargazers)
78
78
  [![Twitter](https://img.shields.io/twitter/follow/verl_project)](https://twitter.com/verl_project)
79
79
  <a href="https://join.slack.com/t/verl-project/shared_invite/zt-3c6mc2khw-v0lo6NfDPuFP6OnkrZwfqw"><img src="https://img.shields.io/badge/Slack-verl-blueviolet?logo=slack&amp"></a>
80
80
  <a href="https://arxiv.org/pdf/2409.19256"><img src="https://img.shields.io/static/v1?label=EuroSys&message=Paper&color=red"></a>
@@ -114,11 +114,15 @@ verl is fast with:
114
114
  </p>
115
115
 
116
116
  ## News
117
-
117
+ - [2026/05] [uni-agent](https://github.com/verl-project/uni-agent) is released: a unified agent framework to build, run, and train LLM agents at scale, built on top of verl.
118
+ - [2026/05] [VeRL-Omni](https://github.com/verl-project/verl-omni) is pre-released: a unified RL stack for diffusion and omni-modal model post-training built on top of verl. Read the [blog post](https://vllm.ai/blog/2026-05-14-verl-omni) for details.
119
+ - [2026/05] verl's zero-mismatch HuggingFace rollout [vexact](https://github.com/verl-project/vexact) is released: with batch-invariant kernels, shared model definition with FSDP, and out-of-box examples compatible with VeOmni.
120
+ - [2026/04] verl's Megatron backend LoRA and router replay support is showcased at [PyTorch Conference Europe 2026](https://pytorchconferenceeu2026.sched.com/event/2Juce/optimizing-reinforcement-learning-at-trillion-parameter-scale-songlin-jiang-aalto-university-mind-lab).
121
+ - [2026/03] verl is presented at NVIDIA GTC26: [session#1](https://www.nvidia.com/en-us/on-demand/session/gtc26-S81829/), [session#2](https://www.nvidia.com/en-us/on-demand/session/gtc26-S81620/)
118
122
  - [2026/01] verl has been migrated to the [verl-project](https://github.com/verl-project)
119
123
  - [2026/01] verl first meetup was successfully held in Shanghai on 01/10, hosted by Volcengine and NVIDIA, the slides has been uploaded to [verl-data](https://github.com/verl-project/verl-data).
120
- - [2026/01] The `recipe` directory has been migrated to a dedicated repository: [verl-recipe](https://github.com/verl-project/verl-recipe) and added as a submodule. See https://github.com/volcengine/verl/pull/4795. It can be used as it was after `git submodule update --init --recursive recipe`. Note that [`transfer_queue`](verl/experimental/transfer_queue), [`fully_async_policy`](verl/experimental/fully_async_policy), [`one_step_off_policy`](verl/experimental/one_step_off_policy) and [`vla`](verl/experimental/vla) are kept under [`verl/experimental`](verl/experimental) since they are planned to be merged into the main library. Use them through `verl.experimental.{module}`.
121
- - [2025/12] [Mind Lab](https://macaron.im/mindlab) successfully used [verl](https://github.com/volcengine/verl) and [Megatron-bridge](https://github.com/NVIDIA-NeMo/Megatron-Bridge) to train GRPO Lora for Trillion-parameter model on 64 H800 - See their [techblog](https://macaron.im/mindlab/research/building-trillion-parameter-reasoning-rl-with-10-gpus).
124
+ - [2026/01] The `recipe` directory has been migrated to a dedicated repository: [verl-recipe](https://github.com/verl-project/verl-recipe) and added as a submodule. See https://github.com/verl-project/verl/pull/4795. It can be used as it was after `git submodule update --init --recursive recipe`. Note that [`transfer_queue`](verl/experimental/transfer_queue), [`fully_async_policy`](verl/experimental/fully_async_policy), [`one_step_off_policy`](verl/experimental/one_step_off_policy) and [`vla`](verl/experimental/vla) are kept under [`verl/experimental`](verl/experimental) since they are planned to be merged into the main library. Use them through `verl.experimental.{module}`.
125
+ - [2025/12] [Mind Lab](https://macaron.im/mindlab) successfully used [verl](https://github.com/verl-project/verl) and [Megatron-bridge](https://github.com/NVIDIA-NeMo/Megatron-Bridge) to train GRPO Lora for Trillion-parameter model on 64 H800 - See their [techblog](https://macaron.im/mindlab/research/building-trillion-parameter-reasoning-rl-with-10-gpus).
122
126
  - [2025/10] verl is presented in the [PyTorch Conference 2025](https://pytorch.org/event/pytorch-conference-2025/).
123
127
  - [2025/08] verl is presented in the [PyTorch Expert Exchange Webinar](https://www.youtube.com/watch?v=Vd79NmmqY3Q&t=2s). [Slides](https://github.com/eric-haibin-lin/verl-community/blob/main/slides/verl_talk_pytorch_2025_08.pdf) available.
124
128
  - [2025/07] The [ReTool](https://arxiv.org/pdf/2504.11536) recipe is fully open sourced. [Blog](https://www.notion.so/verl-reTool-recipe-Using-multi-round-conversations-and-code-sandboxing-to-improve-the-math-of-large-23a8b5b7feba80b386b2e5b5e3c1cde0)
@@ -133,7 +137,7 @@ verl is fast with:
133
137
  <li> [2025/04] [VAPO](https://arxiv.org/pdf/2504.05118) (value-based augmented PPO) paper covers our latest RL method for reasoning models. Trained from Qwen-32B-base model, VAPO achieves 60.4 on AIME 2024, outperforming DAPO-32B.</li>
134
138
  <li>[2025/05] [PF-PPO](https://arxiv.org/abs/2409.06957), accepted to ICML 2025, is now supported in verl! PF-PPO enhances policy learning efficiency and robustness by filtering potentially noisy reward signals and reusing high-quality experiences via a replay buffer.</li>
135
139
  <li>[2025/04] We will give a tutorial about latest post-training techniques and programming guide for verl at [ICLR 2025 Expo](https://iclr.cc/virtual/2025/calendar?filter_events=Expo+Talk+Panel&filter_rooms=), [SCI-FM workshop](https://open-foundation-model.github.io/) and [LMSys afterparty](https://lu.ma/d23nyynm). Talk materials available [here](https://github.com/eric-haibin-lin/verl-community/tree/main/iclr25). </li>
136
- <li>[2025/03] verl v0.3.0.post1 is released! See [release note](https://github.com/volcengine/verl/releases/) for details. It achieves [~1.4x speedup](https://tongyx361.github.io/blogs/posts/verl-intro/#/verl-flexible-and-efficient-rl-for-llms) compared to prev versions.</li>
140
+ <li>[2025/03] verl v0.3.0.post1 is released! See [release note](https://github.com/verl-project/verl/releases/) for details. It achieves [~1.4x speedup](https://tongyx361.github.io/blogs/posts/verl-intro/#/verl-flexible-and-efficient-rl-for-llms) compared to prev versions.</li>
137
141
  <li>[2025/05] verl will be presented at [A2M Shanghai](https://a2m.msup.com.cn/home/?aid=4488&city=shanghai) on 5/16 - 5/17.</li>
138
142
  <li>[2025/05] verl will be presented at [GOSIM x PyTorch Day 2025](https://paris2025.gosim.org/). See you in Paris! </li>
139
143
  <li>[2025/03] We introduced the programming model of verl at the [vLLM Beijing Meetup](https://mp.weixin.qq.com/s/n77GibL2corAtQHtVEAzfg) and [verl intro and updates](https://github.com/eric-haibin-lin/verl-community/blob/main/slides/verl-lmsys-meetup.pdf) at the [SGLang-LMSYS Org Meetup](https://lu.ma/ntjrr7ig) in Sunnyvale mid-March.</li>
@@ -152,27 +156,18 @@ verl is fast with:
152
156
 
153
157
  - **FSDP**, **FSDP2** and **Megatron-LM** for training.
154
158
  - **vLLM**, **SGLang** and **HF Transformers** for rollout generation.
155
- - Compatible with Hugging Face Transformers and Modelscope Hub: [Qwen-3](https://github.com/volcengine/verl/blob/main/examples/grpo_trainer/run_qwen3-8b.sh), Qwen-2.5, Llama3.1, Gemma2, DeepSeek-LLM, etc
159
+ - Compatible with Hugging Face Transformers and Modelscope Hub: Qwen3.5, Qwen3, Qwen-2.5, Llama3.1, Gemma2, DeepSeek-LLM, etc
156
160
  - Supervised fine-tuning.
157
161
  - Reinforcement learning with [PPO](examples/ppo_trainer/), [GRPO](examples/grpo_trainer/), [GSPO](https://github.com/verl-project/verl-recipe/tree/main/gspo/), [ReMax](examples/remax_trainer/), [REINFORCE++](https://verl.readthedocs.io/en/latest/examples/config.html#algorithm), [RLOO](examples/rloo_trainer/), [PRIME](https://github.com/verl-project/verl-recipe/tree/main/prime/), [DAPO](https://github.com/verl-project/verl-recipe/tree/main/dapo/), [DrGRPO](https://github.com/verl-project/verl-recipe/tree/main/drgrpo), [KL_Cov & Clip_Cov](https://github.com/verl-project/verl-recipe/tree/main/entropy) etc.
158
162
  - Support model-based reward and function-based reward (verifiable reward) for math, [coding](https://github.com/verl-project/verl-recipe/tree/main/dapo), etc
159
- - Support vision-language models (VLMs) and [multi-modal RL](examples/grpo_trainer/run_qwen2_5_vl-7b.sh) with Qwen2.5-vl, Kimi-VL
160
- - [Multi-turn with tool calling](https://github.com/volcengine/verl/tree/main/examples/sglang_multiturn)
163
+ - Support vision-language models (VLMs) and [multi-modal RL](examples/grpo_trainer/run_qwen2_5_vl_7b_fsdp.sh) with Qwen2.5-vl, Kimi-VL
164
+ - [Multi-turn with tool calling](examples/tutorial/agent_loop_get_started/)
161
165
  - LLM alignment recipes such as [Self-play preference optimization (SPPO)](https://github.com/verl-project/verl-recipe/tree/main/sppo)
162
- - Flash attention 2, [sequence packing](examples/ppo_trainer/run_qwen2-7b_seq_balance.sh), [sequence parallelism](examples/ppo_trainer/run_deepseek7b_llm_sp2.sh) support via DeepSpeed Ulysses, [LoRA](examples/sft/gsm8k/run_qwen_05_peft.sh), [Liger-kernel](examples/sft/gsm8k/run_qwen_05_sp2_liger.sh).
163
- - Scales up to 671B models and hundreds of GPUs with [expert parallelism](https://github.com/volcengine/verl/pull/1467)
166
+ - Flash attention 2, sequence packing, sequence parallelism via DeepSpeed Ulysses, [LoRA](examples/tuning/lora/run_qwen3_8b_fsdp.sh), [Liger-kernel](examples/sft/gsm8k/run_qwen2_5_0_5b_fsdp.sh) (`USE_LIGER=1`).
167
+ - Scales up to 671B models and hundreds of GPUs with [expert parallelism](https://github.com/verl-project/verl/pull/1467)
164
168
  - Multi-gpu [LoRA RL](https://verl.readthedocs.io/en/latest/advance/ppo_lora.html) support to save memory.
165
169
  - Experiment tracking with wandb, swanlab, mlflow and tensorboard.
166
- - Hardware Support: Supports NVIDIA, AMD, [Ascend](https://github.com/volcengine/verl/blob/main/docs/ascend_tutorial/ascend_quick_start.rst)
167
-
168
- ## Upcoming Features and Changes
169
-
170
- - Q3 Roadmap https://github.com/volcengine/verl/issues/2388
171
- - DeepSeek 671b optimizations with Megatron https://github.com/volcengine/verl/issues/1033
172
- - Multi-turn rollout and tools using optimizations https://github.com/volcengine/verl/issues/1882
173
- - [Agent integration](https://github.com/volcengine/verl/tree/main/verl/experimental/agent_loop)
174
- - Async and off-policy architecture https://github.com/volcengine/verl/pull/2231
175
- - List of breaking changes since v0.4 https://github.com/volcengine/verl/discussions/2270
170
+ - Hardware Support: Supports NVIDIA, AMD, [Ascend](https://github.com/verl-project/verl/blob/main/docs/ascend_tutorial/README.md)
176
171
 
177
172
  ## Getting Started
178
173
 
@@ -197,13 +192,17 @@ verl is fast with:
197
192
 
198
193
  - [RL performance on coding, math](https://verl.readthedocs.io/en/latest/algo/baseline.html)
199
194
 
195
+ **Algorithm recipes (`recipe/`):**
196
+
197
+ - Optional workflows and baselines live under [`recipe/`](recipe/). Each recipe subdirectory includes a small **`REQUIRED_VERL.txt`** file describing the intended `verl` install: pinned recipes use a **tag or fixed git SHA**; rolling recipes record an explicit **`VERL_COMMIT`** (and related submodule / recipe-folder SHAs) so you can `pip install verl@git+…@<sha>` without guessing. See [`recipe/README.md`](recipe/README.md) for the full index and links.
198
+
200
199
  **For code explanation and advance usage (extension):**
201
200
 
202
201
  - PPO Trainer and Workers
203
202
 
204
203
  - [PPO Ray Trainer](https://verl.readthedocs.io/en/latest/workers/ray_trainer.html)
205
- - [PyTorch FSDP Backend](https://verl.readthedocs.io/en/latest/workers/fsdp_workers.html)
206
- - [Megatron-LM Backend](https://verl.readthedocs.io/en/latest/index.html)
204
+ - [Model Engine](https://verl.readthedocs.io/en/latest/workers/model_engine.html)
205
+ - [Engine Workers (FSDP / Megatron-LM / Automodel / VeOmni / TorchTitan)](https://verl.readthedocs.io/en/latest/workers/engine_workers.html)
207
206
 
208
207
  - Advanced Usage and Extension
209
208
  - [Add Models with the FSDP Backend](https://verl.readthedocs.io/en/latest/advance/fsdp_extension.html)
@@ -211,7 +210,6 @@ verl is fast with:
211
210
  - [Multi-turn Rollout Support](https://verl.readthedocs.io/en/latest/sglang_multiturn/multiturn.html)
212
211
  - [Search Tool Integration](https://verl.readthedocs.io/en/latest/sglang_multiturn/search_tool_example.html)
213
212
  - [Sandbox Fusion Integration](https://verl.readthedocs.io/en/latest/examples/sandbox_fusion_example.html)
214
- - [Deployment using Separate GPU Resources](https://github.com/volcengine/verl/tree/main/examples/split_placement)
215
213
  - [Extend to Other RL(HF) algorithms](https://verl.readthedocs.io/en/latest/advance/dpo_extension.html)
216
214
  - [Ray API design tutorial](https://verl.readthedocs.io/en/latest/advance/placement.html)
217
215
 
@@ -234,7 +232,7 @@ The performance is essential for on-policy RL algorithm. We have written a detai
234
232
 
235
233
  ## Upgrade to vLLM >= v0.8.2
236
234
 
237
- verl now supports vLLM>=0.8.2 when using FSDP as the training backend. Please refer to [this document](https://github.com/volcengine/verl/blob/main/docs/README_vllm0.8.md) for the installation guide and more information. Please avoid vllm 0.7.x, which contains bugs that may lead to OOMs and unexpected errors.
235
+ verl now supports vLLM>=0.8.2 when using FSDP as the training backend. Please refer to [this document](https://github.com/verl-project/verl/blob/main/docs/README_vllm0.8.md) for the installation guide and more information. Please avoid vllm 0.7.x, which contains bugs that may lead to OOMs and unexpected errors.
238
236
 
239
237
  ## Use Latest SGLang
240
238
 
@@ -250,11 +248,11 @@ actor_rollout_ref.actor.strategy=fsdp2
250
248
  critic.strategy=fsdp2
251
249
  ```
252
250
 
253
- Furthermore, FSDP2 cpu offloading is compatible with gradient accumulation. You can turn it on to save memory with `actor_rollout_ref.actor.fsdp_config.offload_policy=True`. For more details, see https://github.com/volcengine/verl/pull/1026
251
+ Furthermore, FSDP2 cpu offloading is compatible with gradient accumulation. You can turn it on to save memory with `actor_rollout_ref.actor.fsdp_config.offload_policy=True`. For more details, see https://github.com/verl-project/verl/pull/1026
254
252
 
255
253
  ## AMD Support (ROCm Kernel)
256
254
 
257
- verl now supports FSDP as the training engine (Megatron support coming soon) and both integrates with vLLM and SGLang as inference engines. Please refer to [this document](https://github.com/volcengine/verl/blob/main/docs/amd_tutorial/amd_build_dockerfile_page.rst) for the installation guide and more information, and [this document](https://github.com/volcengine/verl/blob/main/docs/amd_tutorial/amd_vllm_page.rst) for the vLLM performance tuning for ROCm.
255
+ verl runs on AMD ROCm GPUs (MI300X / MI325X / MI355X) with FSDP, FSDP2, and Megatron trainer backends, and vLLM as the validated inference engine (SGLang support is in progress). See the [AMD ROCm quick-start guide](https://github.com/verl-project/verl/blob/main/docs/amd_tutorial/amd_quick_start.rst) for container bring-up, environment verification, and training examples.
258
256
 
259
257
  ## Citation and acknowledgement
260
258
 
@@ -282,6 +280,7 @@ Welcome to register your awesome project build with `verl` for other developers'
282
280
  - [SkyThought](https://github.com/NovaSky-AI/SkyThought): RL training for Sky-T1-7B by NovaSky AI team. ![GitHub Repo stars](https://img.shields.io/github/stars/NovaSky-AI/SkyThought)
283
281
  - [simpleRL-reason](https://github.com/hkust-nlp/simpleRL-reason): SimpleRL-Zoo: Investigating and Taming Zero Reinforcement Learning for Open Base Models in the Wild ![GitHub Repo stars](https://img.shields.io/github/stars/hkust-nlp/simpleRL-reason)
284
282
  - [Easy-R1](https://github.com/hiyouga/EasyR1): **Multi-modal** RL training framework ![GitHub Repo stars](https://img.shields.io/github/stars/hiyouga/EasyR1)
283
+ - [RandOpt](https://github.com/sunrainyg/RandOpt): Neural Thickets: Diverse Task Experts Are Dense Around Pretrained Weights ![GitHub Repo stars](https://img.shields.io/github/stars/sunrainyg/RandOpt)
285
284
  - [OpenManus-RL](https://github.com/OpenManus/OpenManus-RL): LLM Agents RL tuning framework for multiple agent environments. ![GitHub Repo stars](https://img.shields.io/github/stars/OpenManus/OpenManus-RL)
286
285
  - [rllm](https://github.com/agentica-project/rllm): async RL training with [verl-pipeline](https://github.com/agentica-project/verl-pipeline) ![GitHub Repo stars](https://img.shields.io/github/stars/agentica-project/rllm)
287
286
  - [RAGEN](https://github.com/ZihanWang314/ragen): a general-purpose reasoning **agent** training framework ![GitHub Repo stars](https://img.shields.io/github/stars/ZihanWang314/ragen)
@@ -329,7 +328,7 @@ Welcome to register your awesome project build with `verl` for other developers'
329
328
  - [FlowRL](https://github.com/Xuekai-Zhu/FlowRL): Matching reward distributions via **flow balance** for diverse exploration and generalizable reasoning ![GitHub Repo stars](https://img.shields.io/github/stars/Xuekai-Zhu/FlowRL)
330
329
  - [Logic-RL](https://github.com/Unakar/Logic-RL): a reproduction of DeepSeek R1 Zero on 2K Tiny Logic Puzzle Dataset. ![GitHub Repo stars](https://img.shields.io/github/stars/Unakar/Logic-RL)
331
330
  - [Seed-Coder](https://github.com/ByteDance-Seed/Seed-Coder): RL training of Seed-Coder boosts performance on competitive programming ![GitHub Repo stars](https://img.shields.io/github/stars/ByteDance-Seed/Seed-Coder)
332
- - [all-hands/openhands-lm-32b-v0.1](https://www.all-hands.dev/blog/introducing-openhands-lm-32b----a-strong-open-coding-agent-model): A strong, open coding agent model, trained with [multi-turn fine-tuning](https://github.com/volcengine/verl/pull/195)
331
+ - [all-hands/openhands-lm-32b-v0.1](https://www.all-hands.dev/blog/introducing-openhands-lm-32b----a-strong-open-coding-agent-model): A strong, open coding agent model, trained with [multi-turn fine-tuning](https://github.com/verl-project/verl/pull/195)
333
332
  - [s3](https://github.com/pat-jj/s3) **Efficient Yet Effective** Search Agent Training via RL ![GitHub Repo stars](https://img.shields.io/github/stars/pat-jj/s3)
334
333
  - [Rec-R1](https://arxiv.org/pdf/2503.24289): Bridging Generative Large Language Models and Recommendation Systems via Reinforcement Learning
335
334
  - [Explore RL Data Scaling](https://arxiv.org/abs/2503.22230): Exploring Data Scaling Trends and Effects in Reinforcement Learning from Human Feedback
@@ -346,11 +345,13 @@ Welcome to register your awesome project build with `verl` for other developers'
346
345
  - [PURE](https://github.com/CJReinforce/PURE): **Credit assignment** is the key to successful reinforcement fine-tuning using **process reward model** ![GitHub Repo stars](https://img.shields.io/github/stars/CJReinforce/PURE)
347
346
  - [cognitive-behaviors](https://github.com/kanishkg/cognitive-behaviors): Cognitive Behaviors that Enable Self-Improving Reasoners, or, Four Habits of Highly Effective STaRs ![GitHub Repo stars](https://img.shields.io/github/stars/kanishkg/cognitive-behaviors)
348
347
  - [deepscaler](https://github.com/agentica-project/rllm/tree/deepscaler): iterative context scaling with GRPO ![GitHub Repo stars](https://img.shields.io/github/stars/agentica-project/deepscaler)
349
- - [DAPO](https://dapo-sia.github.io/): the fully open source SOTA RL algorithm that beats DeepSeek-R1-zero-32B ![GitHub Repo stars](https://img.shields.io/github/stars/volcengine/verl)
348
+ - [DAPO](https://dapo-sia.github.io/): the fully open source SOTA RL algorithm that beats DeepSeek-R1-zero-32B ![GitHub Repo stars](https://img.shields.io/github/stars/verl-project/verl)
350
349
  - [NoisyRollout](https://github.com/NUS-TRAIL/NoisyRollout): Reinforcing Visual Reasoning with Data Augmentation ![GitHub Repo stars](https://img.shields.io/github/stars/NUS-TRAIL/NoisyRollout)
351
350
  - [SPEAR](https://github.com/TencentYoutuResearch/SPEAR): **Self-imitation** with **Progressive Exploration** for Agentic Reinforcement Learning (ICLR 2026) ![GitHub Repo stars](https://img.shields.io/github/stars/TencentYoutuResearch/SPEAR)
352
351
  - [RuleReasoner](https://github.com/bigai-nlco/RuleReasoner): **RuleReasoner:** Reinforced Rule-based Reasoning via **Domain-aware Dynamic Sampling** (ICLR 2026) ![GitHub Repo stars](https://img.shields.io/github/stars/bigai-nlco/RuleReasoner)
353
352
  - [MetaphorStar](https://metaphorstar.github.io/): **Image Metaphor** Understanding and Reasoning with End-to-End **Visual Reinforcement Learning** ![GitHub Repo stars](https://img.shields.io/github/stars/MING-ZCH/MetaphorStar)
353
+ - [DART-GUI](https://github.com/Computer-use-agents/dart-gui): a decoupled agentic RL framework for Computer Use Agents, achieving ~2× training speedup and ~5× environment utilization! ![GitHub Repo stars](https://img.shields.io/github/stars/Computer-use-agents/dart-gui)
354
+ - [Rethinking OPD](https://github.com/thunlp/OPD): Rethinking On-Policy Distillation of Large Language Models: Phenomenology, Mechanism, and Recipe ![GitHub Repo stars](https://img.shields.io/github/stars/thunlp/OPD)
354
355
 
355
356
  ## Contribution Guide
356
357
 
@@ -7,8 +7,8 @@
7
7
 
8
8
  <div align="center">
9
9
 
10
- <a href="https://deepwiki.com/volcengine/verl"><img src="https://devin.ai/assets/deepwiki-badge.png" alt="Ask DeepWiki.com" style="height:20px;"></a>
11
- [![GitHub Repo stars](https://img.shields.io/github/stars/volcengine/verl)](https://github.com/volcengine/verl/stargazers)
10
+ <a href="https://deepwiki.com/verl-project/verl"><img src="https://devin.ai/assets/deepwiki-badge.png" alt="Ask DeepWiki.com" style="height:20px;"></a>
11
+ [![GitHub Repo stars](https://img.shields.io/github/stars/verl-project/verl)](https://github.com/verl-project/verl/stargazers)
12
12
  [![Twitter](https://img.shields.io/twitter/follow/verl_project)](https://twitter.com/verl_project)
13
13
  <a href="https://join.slack.com/t/verl-project/shared_invite/zt-3c6mc2khw-v0lo6NfDPuFP6OnkrZwfqw"><img src="https://img.shields.io/badge/Slack-verl-blueviolet?logo=slack&amp"></a>
14
14
  <a href="https://arxiv.org/pdf/2409.19256"><img src="https://img.shields.io/static/v1?label=EuroSys&message=Paper&color=red"></a>
@@ -48,11 +48,15 @@ verl is fast with:
48
48
  </p>
49
49
 
50
50
  ## News
51
-
51
+ - [2026/05] [uni-agent](https://github.com/verl-project/uni-agent) is released: a unified agent framework to build, run, and train LLM agents at scale, built on top of verl.
52
+ - [2026/05] [VeRL-Omni](https://github.com/verl-project/verl-omni) is pre-released: a unified RL stack for diffusion and omni-modal model post-training built on top of verl. Read the [blog post](https://vllm.ai/blog/2026-05-14-verl-omni) for details.
53
+ - [2026/05] verl's zero-mismatch HuggingFace rollout [vexact](https://github.com/verl-project/vexact) is released: with batch-invariant kernels, shared model definition with FSDP, and out-of-box examples compatible with VeOmni.
54
+ - [2026/04] verl's Megatron backend LoRA and router replay support is showcased at [PyTorch Conference Europe 2026](https://pytorchconferenceeu2026.sched.com/event/2Juce/optimizing-reinforcement-learning-at-trillion-parameter-scale-songlin-jiang-aalto-university-mind-lab).
55
+ - [2026/03] verl is presented at NVIDIA GTC26: [session#1](https://www.nvidia.com/en-us/on-demand/session/gtc26-S81829/), [session#2](https://www.nvidia.com/en-us/on-demand/session/gtc26-S81620/)
52
56
  - [2026/01] verl has been migrated to the [verl-project](https://github.com/verl-project)
53
57
  - [2026/01] verl first meetup was successfully held in Shanghai on 01/10, hosted by Volcengine and NVIDIA, the slides has been uploaded to [verl-data](https://github.com/verl-project/verl-data).
54
- - [2026/01] The `recipe` directory has been migrated to a dedicated repository: [verl-recipe](https://github.com/verl-project/verl-recipe) and added as a submodule. See https://github.com/volcengine/verl/pull/4795. It can be used as it was after `git submodule update --init --recursive recipe`. Note that [`transfer_queue`](verl/experimental/transfer_queue), [`fully_async_policy`](verl/experimental/fully_async_policy), [`one_step_off_policy`](verl/experimental/one_step_off_policy) and [`vla`](verl/experimental/vla) are kept under [`verl/experimental`](verl/experimental) since they are planned to be merged into the main library. Use them through `verl.experimental.{module}`.
55
- - [2025/12] [Mind Lab](https://macaron.im/mindlab) successfully used [verl](https://github.com/volcengine/verl) and [Megatron-bridge](https://github.com/NVIDIA-NeMo/Megatron-Bridge) to train GRPO Lora for Trillion-parameter model on 64 H800 - See their [techblog](https://macaron.im/mindlab/research/building-trillion-parameter-reasoning-rl-with-10-gpus).
58
+ - [2026/01] The `recipe` directory has been migrated to a dedicated repository: [verl-recipe](https://github.com/verl-project/verl-recipe) and added as a submodule. See https://github.com/verl-project/verl/pull/4795. It can be used as it was after `git submodule update --init --recursive recipe`. Note that [`transfer_queue`](verl/experimental/transfer_queue), [`fully_async_policy`](verl/experimental/fully_async_policy), [`one_step_off_policy`](verl/experimental/one_step_off_policy) and [`vla`](verl/experimental/vla) are kept under [`verl/experimental`](verl/experimental) since they are planned to be merged into the main library. Use them through `verl.experimental.{module}`.
59
+ - [2025/12] [Mind Lab](https://macaron.im/mindlab) successfully used [verl](https://github.com/verl-project/verl) and [Megatron-bridge](https://github.com/NVIDIA-NeMo/Megatron-Bridge) to train GRPO Lora for Trillion-parameter model on 64 H800 - See their [techblog](https://macaron.im/mindlab/research/building-trillion-parameter-reasoning-rl-with-10-gpus).
56
60
  - [2025/10] verl is presented in the [PyTorch Conference 2025](https://pytorch.org/event/pytorch-conference-2025/).
57
61
  - [2025/08] verl is presented in the [PyTorch Expert Exchange Webinar](https://www.youtube.com/watch?v=Vd79NmmqY3Q&t=2s). [Slides](https://github.com/eric-haibin-lin/verl-community/blob/main/slides/verl_talk_pytorch_2025_08.pdf) available.
58
62
  - [2025/07] The [ReTool](https://arxiv.org/pdf/2504.11536) recipe is fully open sourced. [Blog](https://www.notion.so/verl-reTool-recipe-Using-multi-round-conversations-and-code-sandboxing-to-improve-the-math-of-large-23a8b5b7feba80b386b2e5b5e3c1cde0)
@@ -67,7 +71,7 @@ verl is fast with:
67
71
  <li> [2025/04] [VAPO](https://arxiv.org/pdf/2504.05118) (value-based augmented PPO) paper covers our latest RL method for reasoning models. Trained from Qwen-32B-base model, VAPO achieves 60.4 on AIME 2024, outperforming DAPO-32B.</li>
68
72
  <li>[2025/05] [PF-PPO](https://arxiv.org/abs/2409.06957), accepted to ICML 2025, is now supported in verl! PF-PPO enhances policy learning efficiency and robustness by filtering potentially noisy reward signals and reusing high-quality experiences via a replay buffer.</li>
69
73
  <li>[2025/04] We will give a tutorial about latest post-training techniques and programming guide for verl at [ICLR 2025 Expo](https://iclr.cc/virtual/2025/calendar?filter_events=Expo+Talk+Panel&filter_rooms=), [SCI-FM workshop](https://open-foundation-model.github.io/) and [LMSys afterparty](https://lu.ma/d23nyynm). Talk materials available [here](https://github.com/eric-haibin-lin/verl-community/tree/main/iclr25). </li>
70
- <li>[2025/03] verl v0.3.0.post1 is released! See [release note](https://github.com/volcengine/verl/releases/) for details. It achieves [~1.4x speedup](https://tongyx361.github.io/blogs/posts/verl-intro/#/verl-flexible-and-efficient-rl-for-llms) compared to prev versions.</li>
74
+ <li>[2025/03] verl v0.3.0.post1 is released! See [release note](https://github.com/verl-project/verl/releases/) for details. It achieves [~1.4x speedup](https://tongyx361.github.io/blogs/posts/verl-intro/#/verl-flexible-and-efficient-rl-for-llms) compared to prev versions.</li>
71
75
  <li>[2025/05] verl will be presented at [A2M Shanghai](https://a2m.msup.com.cn/home/?aid=4488&city=shanghai) on 5/16 - 5/17.</li>
72
76
  <li>[2025/05] verl will be presented at [GOSIM x PyTorch Day 2025](https://paris2025.gosim.org/). See you in Paris! </li>
73
77
  <li>[2025/03] We introduced the programming model of verl at the [vLLM Beijing Meetup](https://mp.weixin.qq.com/s/n77GibL2corAtQHtVEAzfg) and [verl intro and updates](https://github.com/eric-haibin-lin/verl-community/blob/main/slides/verl-lmsys-meetup.pdf) at the [SGLang-LMSYS Org Meetup](https://lu.ma/ntjrr7ig) in Sunnyvale mid-March.</li>
@@ -86,27 +90,18 @@ verl is fast with:
86
90
 
87
91
  - **FSDP**, **FSDP2** and **Megatron-LM** for training.
88
92
  - **vLLM**, **SGLang** and **HF Transformers** for rollout generation.
89
- - Compatible with Hugging Face Transformers and Modelscope Hub: [Qwen-3](https://github.com/volcengine/verl/blob/main/examples/grpo_trainer/run_qwen3-8b.sh), Qwen-2.5, Llama3.1, Gemma2, DeepSeek-LLM, etc
93
+ - Compatible with Hugging Face Transformers and Modelscope Hub: Qwen3.5, Qwen3, Qwen-2.5, Llama3.1, Gemma2, DeepSeek-LLM, etc
90
94
  - Supervised fine-tuning.
91
95
  - Reinforcement learning with [PPO](examples/ppo_trainer/), [GRPO](examples/grpo_trainer/), [GSPO](https://github.com/verl-project/verl-recipe/tree/main/gspo/), [ReMax](examples/remax_trainer/), [REINFORCE++](https://verl.readthedocs.io/en/latest/examples/config.html#algorithm), [RLOO](examples/rloo_trainer/), [PRIME](https://github.com/verl-project/verl-recipe/tree/main/prime/), [DAPO](https://github.com/verl-project/verl-recipe/tree/main/dapo/), [DrGRPO](https://github.com/verl-project/verl-recipe/tree/main/drgrpo), [KL_Cov & Clip_Cov](https://github.com/verl-project/verl-recipe/tree/main/entropy) etc.
92
96
  - Support model-based reward and function-based reward (verifiable reward) for math, [coding](https://github.com/verl-project/verl-recipe/tree/main/dapo), etc
93
- - Support vision-language models (VLMs) and [multi-modal RL](examples/grpo_trainer/run_qwen2_5_vl-7b.sh) with Qwen2.5-vl, Kimi-VL
94
- - [Multi-turn with tool calling](https://github.com/volcengine/verl/tree/main/examples/sglang_multiturn)
97
+ - Support vision-language models (VLMs) and [multi-modal RL](examples/grpo_trainer/run_qwen2_5_vl_7b_fsdp.sh) with Qwen2.5-vl, Kimi-VL
98
+ - [Multi-turn with tool calling](examples/tutorial/agent_loop_get_started/)
95
99
  - LLM alignment recipes such as [Self-play preference optimization (SPPO)](https://github.com/verl-project/verl-recipe/tree/main/sppo)
96
- - Flash attention 2, [sequence packing](examples/ppo_trainer/run_qwen2-7b_seq_balance.sh), [sequence parallelism](examples/ppo_trainer/run_deepseek7b_llm_sp2.sh) support via DeepSpeed Ulysses, [LoRA](examples/sft/gsm8k/run_qwen_05_peft.sh), [Liger-kernel](examples/sft/gsm8k/run_qwen_05_sp2_liger.sh).
97
- - Scales up to 671B models and hundreds of GPUs with [expert parallelism](https://github.com/volcengine/verl/pull/1467)
100
+ - Flash attention 2, sequence packing, sequence parallelism via DeepSpeed Ulysses, [LoRA](examples/tuning/lora/run_qwen3_8b_fsdp.sh), [Liger-kernel](examples/sft/gsm8k/run_qwen2_5_0_5b_fsdp.sh) (`USE_LIGER=1`).
101
+ - Scales up to 671B models and hundreds of GPUs with [expert parallelism](https://github.com/verl-project/verl/pull/1467)
98
102
  - Multi-gpu [LoRA RL](https://verl.readthedocs.io/en/latest/advance/ppo_lora.html) support to save memory.
99
103
  - Experiment tracking with wandb, swanlab, mlflow and tensorboard.
100
- - Hardware Support: Supports NVIDIA, AMD, [Ascend](https://github.com/volcengine/verl/blob/main/docs/ascend_tutorial/ascend_quick_start.rst)
101
-
102
- ## Upcoming Features and Changes
103
-
104
- - Q3 Roadmap https://github.com/volcengine/verl/issues/2388
105
- - DeepSeek 671b optimizations with Megatron https://github.com/volcengine/verl/issues/1033
106
- - Multi-turn rollout and tools using optimizations https://github.com/volcengine/verl/issues/1882
107
- - [Agent integration](https://github.com/volcengine/verl/tree/main/verl/experimental/agent_loop)
108
- - Async and off-policy architecture https://github.com/volcengine/verl/pull/2231
109
- - List of breaking changes since v0.4 https://github.com/volcengine/verl/discussions/2270
104
+ - Hardware Support: Supports NVIDIA, AMD, [Ascend](https://github.com/verl-project/verl/blob/main/docs/ascend_tutorial/README.md)
110
105
 
111
106
  ## Getting Started
112
107
 
@@ -131,13 +126,17 @@ verl is fast with:
131
126
 
132
127
  - [RL performance on coding, math](https://verl.readthedocs.io/en/latest/algo/baseline.html)
133
128
 
129
+ **Algorithm recipes (`recipe/`):**
130
+
131
+ - Optional workflows and baselines live under [`recipe/`](recipe/). Each recipe subdirectory includes a small **`REQUIRED_VERL.txt`** file describing the intended `verl` install: pinned recipes use a **tag or fixed git SHA**; rolling recipes record an explicit **`VERL_COMMIT`** (and related submodule / recipe-folder SHAs) so you can `pip install verl@git+…@<sha>` without guessing. See [`recipe/README.md`](recipe/README.md) for the full index and links.
132
+
134
133
  **For code explanation and advance usage (extension):**
135
134
 
136
135
  - PPO Trainer and Workers
137
136
 
138
137
  - [PPO Ray Trainer](https://verl.readthedocs.io/en/latest/workers/ray_trainer.html)
139
- - [PyTorch FSDP Backend](https://verl.readthedocs.io/en/latest/workers/fsdp_workers.html)
140
- - [Megatron-LM Backend](https://verl.readthedocs.io/en/latest/index.html)
138
+ - [Model Engine](https://verl.readthedocs.io/en/latest/workers/model_engine.html)
139
+ - [Engine Workers (FSDP / Megatron-LM / Automodel / VeOmni / TorchTitan)](https://verl.readthedocs.io/en/latest/workers/engine_workers.html)
141
140
 
142
141
  - Advanced Usage and Extension
143
142
  - [Add Models with the FSDP Backend](https://verl.readthedocs.io/en/latest/advance/fsdp_extension.html)
@@ -145,7 +144,6 @@ verl is fast with:
145
144
  - [Multi-turn Rollout Support](https://verl.readthedocs.io/en/latest/sglang_multiturn/multiturn.html)
146
145
  - [Search Tool Integration](https://verl.readthedocs.io/en/latest/sglang_multiturn/search_tool_example.html)
147
146
  - [Sandbox Fusion Integration](https://verl.readthedocs.io/en/latest/examples/sandbox_fusion_example.html)
148
- - [Deployment using Separate GPU Resources](https://github.com/volcengine/verl/tree/main/examples/split_placement)
149
147
  - [Extend to Other RL(HF) algorithms](https://verl.readthedocs.io/en/latest/advance/dpo_extension.html)
150
148
  - [Ray API design tutorial](https://verl.readthedocs.io/en/latest/advance/placement.html)
151
149
 
@@ -168,7 +166,7 @@ The performance is essential for on-policy RL algorithm. We have written a detai
168
166
 
169
167
  ## Upgrade to vLLM >= v0.8.2
170
168
 
171
- verl now supports vLLM>=0.8.2 when using FSDP as the training backend. Please refer to [this document](https://github.com/volcengine/verl/blob/main/docs/README_vllm0.8.md) for the installation guide and more information. Please avoid vllm 0.7.x, which contains bugs that may lead to OOMs and unexpected errors.
169
+ verl now supports vLLM>=0.8.2 when using FSDP as the training backend. Please refer to [this document](https://github.com/verl-project/verl/blob/main/docs/README_vllm0.8.md) for the installation guide and more information. Please avoid vllm 0.7.x, which contains bugs that may lead to OOMs and unexpected errors.
172
170
 
173
171
  ## Use Latest SGLang
174
172
 
@@ -184,11 +182,11 @@ actor_rollout_ref.actor.strategy=fsdp2
184
182
  critic.strategy=fsdp2
185
183
  ```
186
184
 
187
- Furthermore, FSDP2 cpu offloading is compatible with gradient accumulation. You can turn it on to save memory with `actor_rollout_ref.actor.fsdp_config.offload_policy=True`. For more details, see https://github.com/volcengine/verl/pull/1026
185
+ Furthermore, FSDP2 cpu offloading is compatible with gradient accumulation. You can turn it on to save memory with `actor_rollout_ref.actor.fsdp_config.offload_policy=True`. For more details, see https://github.com/verl-project/verl/pull/1026
188
186
 
189
187
  ## AMD Support (ROCm Kernel)
190
188
 
191
- verl now supports FSDP as the training engine (Megatron support coming soon) and both integrates with vLLM and SGLang as inference engines. Please refer to [this document](https://github.com/volcengine/verl/blob/main/docs/amd_tutorial/amd_build_dockerfile_page.rst) for the installation guide and more information, and [this document](https://github.com/volcengine/verl/blob/main/docs/amd_tutorial/amd_vllm_page.rst) for the vLLM performance tuning for ROCm.
189
+ verl runs on AMD ROCm GPUs (MI300X / MI325X / MI355X) with FSDP, FSDP2, and Megatron trainer backends, and vLLM as the validated inference engine (SGLang support is in progress). See the [AMD ROCm quick-start guide](https://github.com/verl-project/verl/blob/main/docs/amd_tutorial/amd_quick_start.rst) for container bring-up, environment verification, and training examples.
192
190
 
193
191
  ## Citation and acknowledgement
194
192
 
@@ -216,6 +214,7 @@ Welcome to register your awesome project build with `verl` for other developers'
216
214
  - [SkyThought](https://github.com/NovaSky-AI/SkyThought): RL training for Sky-T1-7B by NovaSky AI team. ![GitHub Repo stars](https://img.shields.io/github/stars/NovaSky-AI/SkyThought)
217
215
  - [simpleRL-reason](https://github.com/hkust-nlp/simpleRL-reason): SimpleRL-Zoo: Investigating and Taming Zero Reinforcement Learning for Open Base Models in the Wild ![GitHub Repo stars](https://img.shields.io/github/stars/hkust-nlp/simpleRL-reason)
218
216
  - [Easy-R1](https://github.com/hiyouga/EasyR1): **Multi-modal** RL training framework ![GitHub Repo stars](https://img.shields.io/github/stars/hiyouga/EasyR1)
217
+ - [RandOpt](https://github.com/sunrainyg/RandOpt): Neural Thickets: Diverse Task Experts Are Dense Around Pretrained Weights ![GitHub Repo stars](https://img.shields.io/github/stars/sunrainyg/RandOpt)
219
218
  - [OpenManus-RL](https://github.com/OpenManus/OpenManus-RL): LLM Agents RL tuning framework for multiple agent environments. ![GitHub Repo stars](https://img.shields.io/github/stars/OpenManus/OpenManus-RL)
220
219
  - [rllm](https://github.com/agentica-project/rllm): async RL training with [verl-pipeline](https://github.com/agentica-project/verl-pipeline) ![GitHub Repo stars](https://img.shields.io/github/stars/agentica-project/rllm)
221
220
  - [RAGEN](https://github.com/ZihanWang314/ragen): a general-purpose reasoning **agent** training framework ![GitHub Repo stars](https://img.shields.io/github/stars/ZihanWang314/ragen)
@@ -263,7 +262,7 @@ Welcome to register your awesome project build with `verl` for other developers'
263
262
  - [FlowRL](https://github.com/Xuekai-Zhu/FlowRL): Matching reward distributions via **flow balance** for diverse exploration and generalizable reasoning ![GitHub Repo stars](https://img.shields.io/github/stars/Xuekai-Zhu/FlowRL)
264
263
  - [Logic-RL](https://github.com/Unakar/Logic-RL): a reproduction of DeepSeek R1 Zero on 2K Tiny Logic Puzzle Dataset. ![GitHub Repo stars](https://img.shields.io/github/stars/Unakar/Logic-RL)
265
264
  - [Seed-Coder](https://github.com/ByteDance-Seed/Seed-Coder): RL training of Seed-Coder boosts performance on competitive programming ![GitHub Repo stars](https://img.shields.io/github/stars/ByteDance-Seed/Seed-Coder)
266
- - [all-hands/openhands-lm-32b-v0.1](https://www.all-hands.dev/blog/introducing-openhands-lm-32b----a-strong-open-coding-agent-model): A strong, open coding agent model, trained with [multi-turn fine-tuning](https://github.com/volcengine/verl/pull/195)
265
+ - [all-hands/openhands-lm-32b-v0.1](https://www.all-hands.dev/blog/introducing-openhands-lm-32b----a-strong-open-coding-agent-model): A strong, open coding agent model, trained with [multi-turn fine-tuning](https://github.com/verl-project/verl/pull/195)
267
266
  - [s3](https://github.com/pat-jj/s3) **Efficient Yet Effective** Search Agent Training via RL ![GitHub Repo stars](https://img.shields.io/github/stars/pat-jj/s3)
268
267
  - [Rec-R1](https://arxiv.org/pdf/2503.24289): Bridging Generative Large Language Models and Recommendation Systems via Reinforcement Learning
269
268
  - [Explore RL Data Scaling](https://arxiv.org/abs/2503.22230): Exploring Data Scaling Trends and Effects in Reinforcement Learning from Human Feedback
@@ -280,11 +279,13 @@ Welcome to register your awesome project build with `verl` for other developers'
280
279
  - [PURE](https://github.com/CJReinforce/PURE): **Credit assignment** is the key to successful reinforcement fine-tuning using **process reward model** ![GitHub Repo stars](https://img.shields.io/github/stars/CJReinforce/PURE)
281
280
  - [cognitive-behaviors](https://github.com/kanishkg/cognitive-behaviors): Cognitive Behaviors that Enable Self-Improving Reasoners, or, Four Habits of Highly Effective STaRs ![GitHub Repo stars](https://img.shields.io/github/stars/kanishkg/cognitive-behaviors)
282
281
  - [deepscaler](https://github.com/agentica-project/rllm/tree/deepscaler): iterative context scaling with GRPO ![GitHub Repo stars](https://img.shields.io/github/stars/agentica-project/deepscaler)
283
- - [DAPO](https://dapo-sia.github.io/): the fully open source SOTA RL algorithm that beats DeepSeek-R1-zero-32B ![GitHub Repo stars](https://img.shields.io/github/stars/volcengine/verl)
282
+ - [DAPO](https://dapo-sia.github.io/): the fully open source SOTA RL algorithm that beats DeepSeek-R1-zero-32B ![GitHub Repo stars](https://img.shields.io/github/stars/verl-project/verl)
284
283
  - [NoisyRollout](https://github.com/NUS-TRAIL/NoisyRollout): Reinforcing Visual Reasoning with Data Augmentation ![GitHub Repo stars](https://img.shields.io/github/stars/NUS-TRAIL/NoisyRollout)
285
284
  - [SPEAR](https://github.com/TencentYoutuResearch/SPEAR): **Self-imitation** with **Progressive Exploration** for Agentic Reinforcement Learning (ICLR 2026) ![GitHub Repo stars](https://img.shields.io/github/stars/TencentYoutuResearch/SPEAR)
286
285
  - [RuleReasoner](https://github.com/bigai-nlco/RuleReasoner): **RuleReasoner:** Reinforced Rule-based Reasoning via **Domain-aware Dynamic Sampling** (ICLR 2026) ![GitHub Repo stars](https://img.shields.io/github/stars/bigai-nlco/RuleReasoner)
287
286
  - [MetaphorStar](https://metaphorstar.github.io/): **Image Metaphor** Understanding and Reasoning with End-to-End **Visual Reinforcement Learning** ![GitHub Repo stars](https://img.shields.io/github/stars/MING-ZCH/MetaphorStar)
287
+ - [DART-GUI](https://github.com/Computer-use-agents/dart-gui): a decoupled agentic RL framework for Computer Use Agents, achieving ~2× training speedup and ~5× environment utilization! ![GitHub Repo stars](https://img.shields.io/github/stars/Computer-use-agents/dart-gui)
288
+ - [Rethinking OPD](https://github.com/thunlp/OPD): Rethinking On-Policy Distillation of Large Language Models: Phenomenology, Mechanism, and Recipe ![GitHub Repo stars](https://img.shields.io/github/stars/thunlp/OPD)
288
289
 
289
290
  ## Contribution Guide
290
291
 
@@ -176,20 +176,48 @@ def convert_checkpoint_from_transformers_to_megatron(
176
176
 
177
177
  numel += safe_copy(hf_layer.mlp.gate.weight, layer.mlp.router.weight)
178
178
 
179
- for idx, hf_expert in enumerate(hf_layer.mlp.experts):
180
- num_experts = len(hf_layer.mlp.experts)
181
- num_local_experts = num_experts // ep_size
182
- expert_idx_start = ep_rank * num_local_experts
183
- expert_idx_end = (ep_rank + 1) * num_local_experts
184
- if idx < expert_idx_start or idx >= expert_idx_end:
185
- continue
186
- local_expert_idx = idx - expert_idx_start
187
-
188
- fc1_weight = torch.cat([hf_expert.gate_proj.weight, hf_expert.up_proj.weight])
189
- numel += safe_copy(fc1_weight, layer.mlp.experts.linear_fc1._parameters[f"weight{local_expert_idx}"])
190
- numel += safe_copy(
191
- hf_expert.down_proj.weight, layer.mlp.experts.linear_fc2._parameters[f"weight{local_expert_idx}"]
192
- )
179
+ # after upgrading to transformer5.3.0, compatibility with Qwen3MoE is ensured
180
+ hf_experts = hf_layer.mlp.experts
181
+ num_experts = getattr(hf_experts, "num_experts", None) or hf_experts.gate_up_proj.shape[0]
182
+
183
+ num_local_experts = num_experts // ep_size
184
+ expert_idx_start = ep_rank * num_local_experts
185
+ expert_idx_end = (ep_rank + 1) * num_local_experts
186
+
187
+ # adapt Transformers 5.x Qwen3MoE: gate_up-proj+down_dej as a 3D tensor
188
+ if hasattr(hf_experts, "gate_up_proj"):
189
+ for idx in range(num_experts):
190
+ if idx < expert_idx_start or idx >= expert_idx_end:
191
+ continue
192
+ local_expert_idx = idx - expert_idx_start
193
+
194
+ # gate_up_proj: [num_experts, 2 * intermediate_size, hidden_size]
195
+ gate_up = hf_experts.gate_up_proj[idx]
196
+ intermediate_size = gate_up.shape[0] // 2
197
+ gate_w = gate_up[:intermediate_size]
198
+ up_w = gate_up[intermediate_size:]
199
+
200
+ fc1_weight = torch.cat([gate_w, up_w], dim=0)
201
+ # down_proj: [num_experts, hidden_size, intermediate_size]
202
+ down_w = hf_experts.down_proj[idx]
203
+
204
+ numel += safe_copy(fc1_weight, layer.mlp.experts.linear_fc1._parameters[f"weight{local_expert_idx}"])
205
+ numel += safe_copy(down_w, layer.mlp.experts.linear_fc2._parameters[f"weight{local_expert_idx}"])
206
+
207
+ # compatible with old versions of transformers/other MoEs (in Module List format)
208
+ elif hasattr(hf_experts, "__iter__"):
209
+ for idx, hf_expert in enumerate(hf_experts):
210
+ if idx < expert_idx_start or idx >= expert_idx_end:
211
+ continue
212
+ local_expert_idx = idx - expert_idx_start
213
+
214
+ fc1_weight = torch.cat([hf_expert.gate_proj.weight, hf_expert.up_proj.weight])
215
+ numel += safe_copy(fc1_weight, layer.mlp.experts.linear_fc1._parameters[f"weight{local_expert_idx}"])
216
+ numel += safe_copy(
217
+ hf_expert.down_proj.weight, layer.mlp.experts.linear_fc2._parameters[f"weight{local_expert_idx}"]
218
+ )
219
+ else:
220
+ raise TypeError(f"Unsupported experts type: {type(hf_experts)}")
193
221
 
194
222
  if has_share_expert:
195
223
  numel += safe_copy(hf_layer.mlp.shared_expert_gate.weight, layer.mlp.shared_experts.gate_weight)
@@ -51,13 +51,9 @@ import torch
51
51
  from accelerate import init_empty_weights
52
52
  from safetensors.torch import load_file
53
53
  from torch.distributed._tensor import Placement, Shard
54
- from transformers import (
55
- AutoConfig,
56
- AutoModelForCausalLM,
57
- AutoModelForTokenClassification,
58
- GenerationConfig,
59
- PretrainedConfig,
60
- )
54
+ from transformers import (AutoConfig, AutoModelForCausalLM,
55
+ AutoModelForTokenClassification, GenerationConfig,
56
+ PretrainedConfig)
61
57
 
62
58
  try:
63
59
  # for torch 2.5+
@@ -141,7 +137,7 @@ class BaseModelMerger(ABC):
141
137
  def patch_model_generation_config(self, model):
142
138
  """
143
139
  The generation_config created from model config may be different to the pretrained model,
144
- this may lead to error when generating: https://github.com/volcengine/verl/issues/1246
140
+ this may lead to error when generating: https://github.com/verl-project/verl/issues/1246
145
141
 
146
142
  This function patch the generation_config created from model config to the pretrained model.
147
143
  """
@@ -439,7 +435,8 @@ class FSDPModelMerger(BaseModelMerger):
439
435
 
440
436
  class MegatronModelMerger(BaseModelMerger):
441
437
  def __init__(self, config: ModelMergerConfig):
442
- from verl.utils.megatron_utils import get_hf_config_and_tokenizer_checkpoint_path
438
+ from verl.utils.megatron_utils import \
439
+ get_hf_config_and_tokenizer_checkpoint_path
443
440
 
444
441
  config.hf_model_config_path = get_hf_config_and_tokenizer_checkpoint_path(config.local_dir)
445
442
  super().__init__(config)
@@ -13,6 +13,16 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
+ """LoRA merger for the Megatron backend, built on the unified model engine.
17
+
18
+ The legacy :mod:`verl.workers.megatron_workers` module was removed in favour of
19
+ :mod:`verl.workers.engine_workers`. This script ports the old ``CustomSaveWorker``
20
+ onto the new ``ActorRolloutRefWorker`` / ``TrainingWorker`` stack while keeping
21
+ the same CLI contract: reuse the training Hydra config, supply an
22
+ ``actor_rollout_ref.model.lora.adapter_path``, and the merged HuggingFace
23
+ weights are written next to the adapter checkpoint.
24
+ """
25
+
16
26
  import os
17
27
  from pprint import pprint
18
28
 
@@ -23,31 +33,41 @@ from omegaconf import OmegaConf
23
33
 
24
34
  from verl.single_controller.base.decorator import Dispatch, register
25
35
  from verl.single_controller.ray import RayClassWithInitArgs, RayResourcePool, RayWorkerGroup
26
- from verl.utils.megatron_utils import get_hf_model_checkpoint_path, load_megatron_model_to_gpu
27
- from verl.workers.megatron_workers import ActorRolloutRefWorker
36
+ from verl.utils.megatron_utils import get_hf_model_checkpoint_path
37
+ from verl.workers.engine_workers import ActorRolloutRefWorker
28
38
 
29
39
  os.environ["NCCL_DEBUG"] = "WARN"
30
40
  os.environ["TOKENIZERS_PARALLELISM"] = "true"
31
41
 
32
42
 
33
43
  class CustomSaveWorker(ActorRolloutRefWorker):
44
+ """Extends the unified :class:`ActorRolloutRefWorker` with a merge RPC.
45
+
46
+ The actor ``TrainingWorker`` built by ``init_model`` already loads the base
47
+ HuggingFace weights via the Megatron bridge and applies the LoRA adapter
48
+ from ``config.model.lora.adapter_path`` (see
49
+ :func:`verl.utils.megatron_utils.make_megatron_module`). Here we just need
50
+ to dump the merged weights back to HuggingFace format.
51
+ """
52
+
34
53
  @register(dispatch_mode=Dispatch.ONE_TO_ALL)
35
54
  def save_merged_weights(self, hf_ckpt_path):
36
- import os
55
+ engine = self.actor.engine
37
56
 
38
- if self._is_offload_param:
39
- load_megatron_model_to_gpu(self.actor_module)
57
+ # Reload model parameters to the accelerator if they were offloaded.
58
+ if engine.is_param_offload_enabled:
59
+ self.actor.to(device="device", model=True, optimizer=False, grad=False)
40
60
 
41
61
  torch.distributed.barrier()
42
62
 
43
- print(f"[Rank {os.environ.get('RANK', '?')}] Saving weights to {hf_ckpt_path}...")
63
+ print(f"[Rank {os.environ.get('RANK', '?')}] Saving merged weights to {hf_ckpt_path}...")
44
64
 
45
- if self.vanilla_bridge:
46
- self.bridge.save_weights(
47
- self.actor_module, hf_ckpt_path, distributed_filesystem=True, memory_efficient=True
48
- )
65
+ # ``MegatronEngine`` exposes the bridge that was used to load the base
66
+ # weights; reuse it to export merged HF-format weights.
67
+ if engine.vanilla_bridge:
68
+ engine.bridge.save_weights(engine.module, hf_ckpt_path, distributed_filesystem=True, memory_efficient=True)
49
69
  else:
50
- self.bridge.save_hf_weights(self.actor_module, hf_ckpt_path)
70
+ engine.bridge.save_hf_weights(engine.module, hf_ckpt_path)
51
71
 
52
72
  return True
53
73
 
@@ -106,9 +126,9 @@ if __name__ == "__main__":
106
126
  """
107
127
  Use the same config as your training script, besides **specifying the adapter_path**.
108
128
 
109
- For example, your training script starts with:
129
+ For example, your training script starts with:
110
130
  `python3 -m verl.trainer.main_ppo --config-name=ppo_megatron_trainer ...`
111
- Now replace it with
131
+ Now replace it with
112
132
  `python3 ./scripts/megatron_merge_lora.py --config-name=ppo_megatron_trainer ...`
113
133
  """
114
134
  main()
@@ -53,7 +53,7 @@ VLLM_REQUIRES = ["tensordict>=0.8.0,<=0.10.0,!=0.9.0", "vllm>=0.8.5,<=0.12.0"]
53
53
  TRTLLM_REQUIRES = ["tensorrt-llm>=1.2.0rc6"]
54
54
  SGLANG_REQUIRES = [
55
55
  "tensordict>=0.8.0,<=0.10.0,!=0.9.0",
56
- "sglang[srt,openai]==0.5.6",
56
+ "sglang[srt,openai]==0.5.8",
57
57
  "torch==2.9.1",
58
58
  ]
59
59
  TRL_REQUIRES = ["trl<=0.9.6"]
@@ -81,7 +81,7 @@ setup(
81
81
  version=__version__,
82
82
  package_dir={"": "."},
83
83
  packages=find_packages(where="."),
84
- url="https://github.com/volcengine/verl",
84
+ url="https://github.com/verl-project/verl",
85
85
  license="Apache 2.0",
86
86
  author="Bytedance - Seed - MLSys",
87
87
  author_email="zhangchi.usc1992@bytedance.com, gmsheng@connect.hku.hk",