多机多卡训练verl.trainer.main_ppo,不同机器的GPU利用率差别很大
4节点,每节点8个卡, 节点0 1 2 3的GPU利用率等间隔下降,节点0的GPU利用率有60%,节点3的GPU利用率只有20% 这个GPU利用率不均衡是什么原因呢?
python3 -m verl.trainer.main_ppo
algorithm.adv_estimator=grpo
data.train_files=$TRAIN_DATA
data.val_files=
data.train_batch_size=32
data.max_prompt_length=8192
data.max_response_length=2048
data.filter_overlong_prompts=True
data.truncation='error'
data.image_key=image
actor_rollout_ref.model.path=$MODEL_PATH
actor_rollout_ref.actor.optim.lr=1e-6
actor_rollout_ref.model.use_remove_padding=True
actor_rollout_ref.actor.ppo_mini_batch_size=8
actor_rollout_ref.actor.ppo_micro_batch_size_per_gpu=1
actor_rollout_ref.actor.use_kl_loss=True
actor_rollout_ref.actor.kl_loss_coef=0.01
actor_rollout_ref.actor.kl_loss_type=low_var_kl
actor_rollout_ref.actor.entropy_coeff=0
actor_rollout_ref.model.trust_remote_code=True
actor_rollout_ref.model.enable_gradient_checkpointing=True
actor_rollout_ref.actor.fsdp_config.param_offload=False
actor_rollout_ref.actor.fsdp_config.optimizer_offload=False
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=$ENGINE
actor_rollout_ref.rollout.gpu_memory_utilization=0.6
actor_rollout_ref.rollout.enable_chunked_prefill=False
actor_rollout_ref.rollout.enforce_eager=False
actor_rollout_ref.rollout.free_cache_engine=False
actor_rollout_ref.rollout.n=8
+actor_rollout_ref.rollout.limit_images=$ROLLOUT_IMAGE_LIMIT
+actor_rollout_ref.rollout.limit_videos=$ROLLOUT_VIDEO_LIMIT
actor_rollout_ref.ref.log_prob_micro_batch_size_per_gpu=1
actor_rollout_ref.ref.fsdp_config.param_offload=True
algorithm.use_kl_in_reward=False
trainer.critic_warmup=0
trainer.val_before_train=False
trainer.logger=['console','tensorboard']
trainer.project_name=$PROJECT_NAME
trainer.experiment_name=$EXPERIMENT_NAME
trainer.n_gpus_per_node=8
trainer.nnodes=4
trainer.save_freq=100
trainer.test_freq=0
trainer.total_epochs=3 \
It is because output length is different for each sample in rollout. You can increase tensor_model_parallel_size to mitigate this issue.
定时清理检查结论 / Scheduled cleanup conclusion
该 issue 最近一次非当前运行账号的公开回复或引用是 2025-08-13T09:14:13Z(comment, actor: chenhaiq),距 2026-07-15 已超过 6 个月。因此按定时清理标准关闭。若作者或社区成员仍能提供新的复现、证据或需求背景,可以继续评论请求重开,或创建新的 issue。
The latest public reply or reference from an account other than the current runner was 2025-08-13T09:14:13Z (comment, actor: chenhaiq), which is more than 6 months before 2026-07-15. Therefore this is being closed under the scheduled cleanup rule. If the reporter or community can still provide a fresh reproduction, evidence, or requirement context, please comment to request reopening or open a new issue.
检查来源 / Checked sources:
- Issue: https://github.com/verl-project/verl/issues/3033
- Comments API: https://api.github.com/repos/verl-project/verl/issues/3033/comments
- Timeline API: https://api.github.com/repos/verl-project/verl/issues/3033/timeline
- Latest non-self public activity: https://github.com/verl-project/verl/issues/3033#issuecomment-3182899712
This response was generated by a scheduled Codex GPT5.5 issue processing task.