Running error on PPO training on GSM8K dataset example. "RuntimeError: setStorage:"
Training Progress: 0%| | 0/290 [00:09<?, ?it/s]
Error executing job with overrides: ['data.train_files=./data/gsm8k/train.parquet', 'data.val_files=./data/gsm8k/test.parquet', 'data.train_batch_size=256', 'data.max_prompt_length=512', 'data.max_response_length=256', 'actor_rollout_ref.model.path=/data/Qwen/Qwen2.5-0.5B-Instruct', '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=4', 'actor_rollout_ref.rollout.log_prob_micro_batch_size_per_gpu=8', 'actor_rollout_ref.rollout.tensor_model_parallel_size=1', 'actor_rollout_ref.rollout.gpu_memory_utilization=0.4', 'actor_rollout_ref.ref.log_prob_micro_batch_size_per_gpu=4', 'critic.optim.lr=1e-5', 'critic.model.path=/data/Qwen/Qwen2.5-0.5B-Instruct', 'critic.ppo_micro_batch_size_per_gpu=4', 'algorithm.kl_ctrl.kl_coef=0.001', 'trainer.logger=[console,wandb]', 'trainer.val_before_train=False', 'trainer.default_hdfs_dir=null', 'trainer.n_gpus_per_node=1', 'trainer.nnodes=1', 'trainer.save_freq=100', 'trainer.test_freq=10', 'trainer.total_epochs=10', 'trainer.project_name=verl', 'trainer.experiment_name=qwen2_5-0_5b_math_gsm8k']
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/workspace/verl/verl/verl/trainer/main_ppo.py", line 246, in
I use this script: set -x export CUDA_VISIBLE_DEVICES=7 export HYDRA_FULL_ERROR=1
PYTHONUNBUFFERED=1 python3 -m verl.trainer.main_ppo
data.train_files=./data/gsm8k/train.parquet
data.val_files=./data/gsm8k/test.parquet
data.train_batch_size=256
data.max_prompt_length=512
data.max_response_length=256
actor_rollout_ref.model.path=/data/Qwen/Qwen2.5-0.5B-Instruct
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=4
actor_rollout_ref.rollout.log_prob_micro_batch_size_per_gpu=8
actor_rollout_ref.rollout.tensor_model_parallel_size=1
actor_rollout_ref.rollout.gpu_memory_utilization=0.4
actor_rollout_ref.ref.log_prob_micro_batch_size_per_gpu=4
critic.optim.lr=1e-5
critic.model.path=/data/Qwen/Qwen2.5-0.5B-Instruct
critic.ppo_micro_batch_size_per_gpu=4
algorithm.kl_ctrl.kl_coef=0.001
trainer.logger=['console','wandb']
trainer.val_before_train=False
trainer.default_hdfs_dir=null
trainer.n_gpus_per_node=1
trainer.nnodes=1
trainer.save_freq=100
trainer.test_freq=10
trainer.total_epochs=10
trainer.project_name=verl
trainer.experiment_name=qwen2_5-0_5b_math_gsm8k \
I run the demo on A800-80G and I had successfully trained this demo before, but suddenly couldn't train for the next few days. I've reinstalled the docker. How to solve the problem?
Mind if I have a look at this? I've recently added FusedLinearForPPOFunction. If I take too long, you can disable fused kernels by setting actor_rollout_ref.model.use_fused_kernels=False
@ambarion which step does this error get reported at?
File "/workspace/verl/verl/verl/utils/experimental/torch_functional.py", line 25, in _fused_linear_for_ppo_fwd
logits = (hidden_states @ vocab_weights.t()) / temperature
RuntimeError: setStorage: sizes [896, 151936], strides [1, 896], storage offset 0, and itemsize 2 requiring a storage size of 272269312 are out of bounds for storage of size 0
This error is telling me that vocab_weights isn't loaded (maybe all_gather of vocab_weights wasn't done properly). I'm currently having difficulty replicating this error locally...
@mingruimingrui I guess we should disable fused by default.
@mingruimingrui Set actor_rollout_ref.model.use_fused_kernels=False works.
I was able to reproduce the issue. Disabling fused kernels (use_fused_kernels=False) results in an out-of-memory (OOM) error, whereas enabling them (use_fused_kernels=True) triggers the same RuntimeError. Could you please advise on how to locate and fix the underlying cause