4机8卡 H100 80GB,跑QWEN3-30B-A3B GRPO示例训练,显存溢出
训练脚本:
ray job submit --address="http://127.0.0.1:8265" \
--runtime-env=verl/trainer/runtime_env.yaml \
--no-wait \
-- \
python3 -m verl.trainer.main_ppo --config-path=config \
--config-name='ppo_megatron_trainer.yaml'\
algorithm.adv_estimator=grpo \
data.train_files=/workspace/verl/xr/datasets/gsm8k/train.parquet \
data.val_files=/workspace/verl/xr/datasets/gsm8k/test.parquet \
data.train_batch_size=64 \
data.max_prompt_length=512 \
data.max_response_length=1024 \
data.filter_overlong_prompts=True \
data.truncation='error' \
actor_rollout_ref.model.path=/workspace/verl/xr/models/qwen3/Qwen3-30B-A3B \
actor_rollout_ref.actor.optim.lr=1e-6 \
actor_rollout_ref.actor.ppo_mini_batch_size=64 \
actor_rollout_ref.actor.ppo_micro_batch_size_per_gpu=1 \
actor_rollout_ref.actor.megatron.pipeline_model_parallel_size=2 \
actor_rollout_ref.actor.megatron.tensor_model_parallel_size=4 \
actor_rollout_ref.actor.megatron.expert_model_parallel_size=4 \
actor_rollout_ref.actor.megatron.use_dist_checkpointing=True \
actor_rollout_ref.actor.megatron.dist_checkpointing_path=/workspace/verl/xr/models/qwen3/Qwen3-30B-A3B-Megatron \
actor_rollout_ref.actor.use_kl_loss=True \
actor_rollout_ref.actor.kl_loss_coef=0.001 \
actor_rollout_ref.actor.kl_loss_type=low_var_kl \
actor_rollout_ref.actor.entropy_coeff=0 \
actor_rollout_ref.rollout.log_prob_micro_batch_size_per_gpu=1 \
actor_rollout_ref.rollout.tensor_model_parallel_size=4 \
actor_rollout_ref.rollout.name=vllm \
actor_rollout_ref.rollout.gpu_memory_utilization=0.8 \
actor_rollout_ref.rollout.n=5 \
actor_rollout_ref.ref.log_prob_micro_batch_size_per_gpu=1 \
actor_rollout_ref.ref.megatron.pipeline_model_parallel_size=2 \
actor_rollout_ref.ref.megatron.tensor_model_parallel_size=4 \
actor_rollout_ref.ref.megatron.expert_model_parallel_size=4 \
actor_rollout_ref.ref.megatron.use_dist_checkpointing=True \
actor_rollout_ref.ref.megatron.dist_checkpointing_path=/workspace/verl/xr/models/qwen3/Qwen3-30B-A3B-Megatron \
algorithm.use_kl_in_reward=False \
trainer.critic_warmup=0 \
trainer.project_name='verl_grpo_example_gsm8k_math' \
trainer.experiment_name='qwen3_30b_moe_megatron' \
trainer.n_gpus_per_node=8 \
trainer.nnodes=4 \
trainer.save_freq=-1 \
trainer.test_freq=1 \
trainer.total_epochs=20
报错信息
GPU信息
Please refer to https://github.com/ISEEKYAN/verl_megatron_practice/blob/main/dapo_moe30b.csv
Weird... Maybe try to lower the gpu_memory_utilization? I am ok to run 384 gen_bzs and 34k output with TP=4 for vLLM rollout in practice with 32 * H100.
@shayxurui 请问解决了么?一样的问题
@shayxurui 你好,我尝试降低gpu_memory_utilization从0.6到0.05,不过全都是爆显存,很奇怪,仍然不知道怎么办,很奇怪。
一样的问题
定时清理检查结论:按社区 issue 定时处理规则关闭此 issue。
证据:最近一次非当前运行账号的公开回复或引用是 2025-09-02T12:25:12Z(actor: haichuan1221, kind: comment),早于本轮 6 个月阈值 2026-01-13T01:10:17.218155+00:00。 检查来源:https://github.com/verl-project/verl/issues/2865,comments API https://api.github.com/repos/verl-project/verl/issues/2865/comments,timeline API https://api.github.com/repos/verl-project/verl/issues/2865/timeline。
如果作者或社区成员仍能提供新的复现、证据或需求背景,请在这里重新评论请求维护者重开,或创建新的 issue 并链接到本 issue。
Scheduled cleanup conclusion: this issue is being closed under the community issue processing policy.
Evidence: The latest public reply or reference from an account other than the current automation account was 2025-09-02T12:25:12Z (actor: haichuan1221, kind: comment), which is older than the six-month threshold for this run (2026-01-13T01:10:17.218155+00:00). Sources checked: https://github.com/verl-project/verl/issues/2865, comments API https://api.github.com/repos/verl-project/verl/issues/2865/comments, timeline API https://api.github.com/repos/verl-project/verl/issues/2865/timeline.
If the author or community can still provide a fresh reproduction, evidence, or requirement context, please comment here to ask maintainers to reopen it, or open a new issue and link back to this one.
This response was generated by a scheduled Codex GPT5.5 issue processing task.