verl现在支持用ppo来训练qwen2.5-vl的agentic能力吗
System Info
----------Python Info---------- Version : 3.11.14 Compiler : GCC 11.2.0 Build : ('main', 'Oct 21 2025 18:31:21') Arch : ('64bit', '') ------------Pip Info----------- Version : 23.1.2 Directory : /opt/conda/lib/python3.11/site-packages/pip vllm : 0.13.0 sglang : not found. ray : 2.49.1 torch : 2.9.0+cu129 ----------verl Info----------- Version : 0.8.0.dev Directory : /llmchat/fengyilong/verl/verl Commit Hash : b53f0f132d6d6536ae8901944b24b98dc6dd6cdf ----------Platform Info---------- Platform : Linux-5.14.0-284.25.1.el9_2.x86_64-x86_64-with-glibc2.39 system : Linux node : pt-74b3c6e0cd6b443d9aa858b40ebe817d-worker-0 release : 5.14.0-284.25.1.el9_2.x86_64 version : #1 SMP PREEMPT_DYNAMIC Wed Aug 2 14:53:30 UTC 2023 ----------Environment---------- CUDA Runtime : 12.9 CUDA Compiler : Cuda compilation tools, release 12.9, V12.9.86 ----------System Info---------- CPU Memory : 2011.30 GB GPU Count : 8 GPU 1 Type : NVIDIA H100 80GB HBM3 GPU 1 Memory : 79.65 GB GPU 2 Type : NVIDIA H100 80GB HBM3 GPU 2 Memory : 79.65 GB GPU 3 Type : NVIDIA H100 80GB HBM3 GPU 3 Memory : 79.65 GB GPU 4 Type : NVIDIA H100 80GB HBM3 GPU 4 Memory : 79.65 GB GPU 5 Type : NVIDIA H100 80GB HBM3 GPU 5 Memory : 79.65 GB GPU 6 Type : NVIDIA H100 80GB HBM3 GPU 6 Memory : 79.65 GB GPU 7 Type : NVIDIA H100 80GB HBM3 GPU 7 Memory : 79.65 GB GPU 8 Type : NVIDIA H100 80GB HBM3 GPU 8 Memory : 79.65 GB
Information
- [ ] The official example scripts
- [ ] My own modified scripts
Tasks
- [ ] An officially supported task in the
examplesfolder (such as GLUE/SQuAD, ...) - [ ] My own task or dataset (give details below)
Reproduction
我想用ppo来复现deepeye,这是我的配置: #!/bin/bash
set -x
export LLM_AS_A_JUDGE_BASE="http://10.119.16.81:8000/v1" export WANDB_API_KEY="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"
PROJECT_NAME="deepeyes_multiturn_grpo" EXPERIMENT_NAME="deepeyes_multiturn_grpo_$(date +%m%d_%H%M)"
BASEDIR=/llmchat/fengyilong
VISUAL_DATASET_TRAIN_0_1_2=/llmchat/fengyilong/data/DeepEyes/data/data_0.1.2_visual_toolbox_v2.parquet VISUAL_DATASET_TRAIN_0_8=/llmchat/fengyilong/data/DeepEyes/data/data_v0.8_visual_toolbox_v2.parquet EUREKA_DATASET_TRAIN=/llmchat/fengyilong/data/DeepEyes/data/data_thinklite_reasoning_acc.parquet SAVE_CHECKPOINT_DIR=${BASEDIR}/verl_checkpoints
REF_MODEL_PATH=/llmchat/xiaopeng/models/QwenVL/Qwen2.5-VL-7B-Instruct
python3 -m verl.trainer.main_ppo
--config-path=${BASEDIR}/verl/recipe/deepeyes/configs
--config-name='deepeyes_multiturn_grpo'
data.train_files=[${VISUAL_DATASET_TRAIN_0_1_2},${EUREKA_DATASET_TRAIN}]
data.val_files=${EUREKA_DATASET_TRAIN}
data.train_batch_size=64
data.max_prompt_length=8192
data.max_response_length=20480
data.return_raw_chat=True
data.return_multi_modal_inputs=False
data.custom_cls.path=/llmchat/fengyilong/verl/recipe/deepeyes/deepeyes.py
data.custom_cls.name=CustomRLHFDataset
custom_reward_function.path=/llmchat/fengyilong/verl/recipe/deepeyes/deepeyes.py
custom_reward_function.name=compute_score
algorithm.adv_estimator=grpo
algorithm.kl_ctrl.kl_coef=0.0
actor_rollout_ref.hybrid_engine=True
actor_rollout_ref.model.path=${REF_MODEL_PATH}
actor_rollout_ref.model.use_remove_padding=True
actor_rollout_ref.model.use_fused_kernels=True
actor_rollout_ref.actor.optim.lr=1e-6
actor_rollout_ref.actor.ppo_mini_batch_size=32
actor_rollout_ref.actor.ppo_micro_batch_size_per_gpu=1
actor_rollout_ref.actor.use_kl_loss=False
actor_rollout_ref.actor.kl_loss_coef=0.0
actor_rollout_ref.actor.kl_loss_type=low_var_kl
actor_rollout_ref.actor.entropy_coeff=0.0
actor_rollout_ref.actor.checkpoint.save_contents=['model','hf_model','optimizer','extra']
actor_rollout_ref.actor.ulysses_sequence_parallel_size=1
actor_rollout_ref.rollout.log_prob_micro_batch_size_per_gpu=1
actor_rollout_ref.rollout.tensor_model_parallel_size=1
actor_rollout_ref.rollout.name=vllm
actor_rollout_ref.rollout.mode=async
actor_rollout_ref.rollout.n=16
actor_rollout_ref.rollout.max_num_batched_tokens=32768
actor_rollout_ref.rollout.gpu_memory_utilization=0.7
actor_rollout_ref.rollout.enforce_eager=True
actor_rollout_ref.rollout.free_cache_engine=True
actor_rollout_ref.rollout.enable_chunked_prefill=True
actor_rollout_ref.actor.fsdp_config.param_offload=True
actor_rollout_ref.actor.fsdp_config.optimizer_offload=True
actor_rollout_ref.ref.log_prob_micro_batch_size_per_gpu=1
actor_rollout_ref.ref.fsdp_config.param_offload=True
actor_rollout_ref.rollout.multi_turn.enable=True
actor_rollout_ref.rollout.multi_turn.max_assistant_turns=5
actor_rollout_ref.rollout.multi_turn.max_user_turns=5
actor_rollout_ref.rollout.multi_turn.max_parallel_calls=1
actor_rollout_ref.rollout.multi_turn.tool_config_path=./verl/recipe/deepeyes/configs/image_zoom_in_tool_config.yaml
actor_rollout_ref.rollout.trace.backend=mlflow
actor_rollout_ref.rollout.trace.token2text=True
trainer.critic_warmup=0
trainer.logger=['console','wandb','mlflow']
trainer.val_before_train=True
trainer.n_gpus_per_node=8
trainer.nnodes=1
trainer.save_freq=40
trainer.test_freq=10000
trainer.project_name=${PROJECT_NAME}
trainer.experiment_name=${EXPERIMENT_NAME}
trainer.default_local_dir=${SAVE_CHECKPOINT_DIR}/${PROJECT_NAME}/${EXPERIMENT_NAME}
+trainer.tensorboard_dir=${SAVE_CHECKPOINT_DIR}/logs/tensorboard
+trainer.rl_logging_board_dir=${SAVE_CHECKPOINT_DIR}/logs/rl_logging_board
trainer.total_epochs=32 2>&1 | tee ./logs/${EXPERIMENT_NAME}.log
Expected behavior
File "/llmchat/fengyilong/verl/verl/single_controller/ray/base.py", line 852, in func 04:33:20 [30/1839] return getattr(self.worker_dict[key], name)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/llmchat/fengyilong/verl/verl/single_controller/base/decorator.py", line 462, in inner return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/llmchat/fengyilong/verl/verl/utils/transferqueue_utils.py", line 314, in dummy_inner output = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/llmchat/fengyilong/verl/verl/utils/profiler/profile.py", line 173, in wrapper return func(self_instance, *args, **kwargs_inner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/llmchat/fengyilong/verl/verl/workers/fsdp_workers.py", line 1577, in compute_values values = self.critic.compute_values(data=data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/llmchat/fengyilong/verl/verl/utils/profiler/performance.py", line 105, in f return self.log(decorated_function, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/llmchat/fengyilong/verl/verl/utils/profiler/performance.py", line 118, in log output = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/llmchat/fengyilong/verl/verl/workers/critic/dp_critic.py", line 178, in compute_values values = self._forward_micro_batch(model_inputs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/llmchat/fengyilong/verl/verl/workers/critic/dp_critic.py", line 94, in _forward_micro_batch output = self.critic_module( ^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1786, in _call_impl return forward_call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/torch/distributed/fsdp/fully_sharded_data_parallel.py", line 851, in forward output = self._fsdp_wrapped_module(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1775, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1786, in _call_impl return forward_call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/site-packages/trl/models/modeling_value_head.py", line 178, in forward if lm_logits.dtype != torch.float32: ^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'dtype'
I think this is because if you set algorithm.adv_estimator=grpo, verl will set init critic model.
中文:从公开代码和 DeepEyes recipe 看,verl 已有 Qwen2.5-VL + DeepEyes/agentic multi-turn GRPO 的 recipe;但这个报错不像正常 GRPO 路径。你报告的 commit b53f0f1 中,need_critic() 对 algorithm.adv_estimator=grpo 默认会关闭 critic,trainer 也只会在 self.use_critic=True 时调用 critic.compute_values。因此当前栈更像是实际 resolved config 中 critic.enable=True、algorithm.adv_estimator 没有按预期生效,或本地 recipe/config 与公开配置不一致。
建议先补充/核对:1. 启动命令对应的 resolved Hydra config,重点是 algorithm.adv_estimator、critic.enable、actor_rollout_ref.rollout.name;2. 对 GRPO 显式加上 critic.enable=False 后是否仍复现;3. 先对齐公开 DeepEyes recipe 使用的 actor_rollout_ref.rollout.name=sglang,因为当前脚本改成 vllm,与公开 DeepEyes/multi-turn 文档默认路径不同;4. 如果 issue 正文中曾贴出任何 W&B 或其他服务 token,请立即 rotate/revoke。
English: From the public code and the DeepEyes recipe, verl does have a Qwen2.5-VL + DeepEyes/agentic multi-turn GRPO path. However, this traceback does not look like the normal GRPO path. In the reported commit b53f0f1, need_critic() disables the critic by default for algorithm.adv_estimator=grpo, and the trainer only calls critic.compute_values when self.use_critic=True. So this run likely has critic.enable=True, algorithm.adv_estimator not applied as expected, or a local recipe/config that differs from the public one.
Please provide or check: 1. the resolved Hydra config, especially algorithm.adv_estimator, critic.enable, and actor_rollout_ref.rollout.name; 2. whether explicitly setting critic.enable=False fixes the GRPO path; 3. whether matching the public DeepEyes recipe with actor_rollout_ref.rollout.name=sglang works, since the current script overrides it to vllm; 4. if any W&B or other service token was pasted in the issue body, please rotate/revoke it immediately.
This response was generated by a scheduled Codex GPT5.5 issue processing task.