verl icon indicating copy to clipboard operation
verl copied to clipboard

Client socket time out when run verl.trainer.main_ppo with ray in Ascend NPU 910B

Open shenofusc opened this issue 1 year ago • 10 comments

i am trying verl in Ascend NPU 910B, has anybody encounter this problem? can anybody give me some advice? thanks very much!

source code: main branch + https://github.com/volcengine/verl/pull/332

enviroment: Ascend NPU 910B CANN toolkit & kernel 8.1.RC1 torch 2.5.1 torch-npu 2.5.1.dev20250320 vllm 0.7.3+empty vllm-ascend 0.7.3rc2 python 3.10.0

execute script: PYTHONUNBUFFERED=1 python3.10 -m verl.trainer.main_ppo
data.train_files=/gsm8k/main/train-00000-of-00001.parquet
data.val_files=/gsm8k/main/test-00000-of-00001.parquet
data.train_batch_size=256
data.max_prompt_length=512
data.max_response_length=256
actor_rollout_ref.model.path=/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=/Qwen2.5-0.5B-Instruct
critic.ppo_micro_batch_size_per_gpu=4
algorithm.kl_ctrl.kl_coef=0.001
trainer.logger=['console']
+trainer.val_before_train=False
trainer.default_hdfs_dir=null
trainer.n_gpus_per_node=1
trainer.nnodes=1
trainer.save_freq=10
trainer.test_freq=10
trainer.total_epochs=15 2>&1 | tee verl_demo.log

after 30 minites running, it will print below error log: (TaskRunner pid=904050) dataset len: 1319 (TaskRunner pid=904050) Size of train dataloader: 29 (TaskRunner pid=904050) Test~Total training steps: 435 (pid=904548) /home/ma-user/python3.10/lib/python3.10/site-packages/torch_npu/utils/collect_env.py:58: UserWarning: Warning: The /usr/local/Ascend/ascend-toolkit/latest owner does not match the current owner. (pid=904548) warnings.warn(f"Warning: The {path} owner does not match the current owner.") (pid=904548) /home/ma-user/python3.10/lib/python3.10/site-packages/torch_npu/utils/collect_env.py:58: UserWarning: Warning: The /usr/local/Ascend/ascend-toolkit/8.0.RC2/aarch64-linux/ascend_toolkit_install.info owner does not match the current owner. (pid=904548) warnings.warn(f"Warning: The {path} owner does not match the current owner.") (WorkerDict pid=904548) [E331 20:50:12.688969421 socket.cpp:1011] [c10d] The client socket has timed out after 1800000ms while trying to connect to (10.123.132.218, 38321). (WorkerDict pid=904548) [W331 20:50:12.694407484 TCPStore.cpp:358] [c10d] TCP client failed to connect/validate to host 10.123.132.218:38321 - retrying (try=0, timeout=1800000ms, delay=56413ms): The client socket has timed out after 1800000ms while trying to connect to (10.123.132.218, 38321). (WorkerDict pid=904548) Exception raised from throwTimeoutError at /pytorch/torch/csrc/distributed/c10d/socket.cpp:1013 (most recent call first): (WorkerDict pid=904548) frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0xb8 (0xfff0ca1b8908 in /home/ma-user/python3.10/lib/python3.10/site-packages/torch/lib/libc10.so) (WorkerDict pid=904548) frame #1: + 0x4e5ecf0 (0xfff0ceca3cf0 in /home/ma-user/python3.10/lib/python3.10/site-packages/torch/lib/libtorch_cpu.so) (WorkerDict pid=904548) frame #2: + 0x4ea60fc (0xfff0ceceb0fc in /home/ma-user/python3.10/lib/python3.10/site-packages/torch/lib/libtorch_cpu.so) (WorkerDict pid=904548) frame #3: + 0x4ea8810 (0xfff0ceced810 in /home/ma-user/python3.10/lib/python3.10/site-packages/torch/lib/libtorch_cpu.so) (WorkerDict pid=904548) frame #4: + 0x4ea8ac4 (0xfff0cecedac4 in /home/ma-user/python3.10/lib/python3.10/site-packages/torch/lib/libtorch_cpu.so) (WorkerDict pid=904548) frame #5: + 0x4ea8f90 (0xfff0cecedf90 in /home/ma-user/python3.10/lib/python3.10/site-packages/torch/lib/libtorch_cpu.so) (WorkerDict pid=904548) frame #6: + 0x4e609cc (0xfff0ceca59cc in /home/ma-user/python3.10/lib/python3.10/site-packages/torch/lib/libtorch_cpu.so) (WorkerDict pid=904548) frame #7: c10d::TCPStore::TCPStore(std::string, c10d::TCPStoreOptions const&) + 0x1b0 (0xfff0cecab740 in /home/ma-user/python3.10/lib/python3.10/site-packages/torch/lib/libtorch_cpu.so) (WorkerDict pid=904548) frame #8: + 0x10b1120 (0xfff0d3a9c120 in /home/ma-user/python3.10/lib/python3.10/site-packages/torch/lib/libtorch_python.so) (WorkerDict pid=904548) frame #9: + 0x6129d4 (0xfff0d2ffd9d4 in /home/ma-user/python3.10/lib/python3.10/site-packages/torch/lib/libtorch_python.so) (WorkerDict pid=904548) frame #10: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x554618] (WorkerDict pid=904548) frame #11: _PyObject_MakeTpCall + 0x1e0 (0x472958 in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #12: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x54a7f4] (WorkerDict pid=904548) frame #13: _PyObject_Call + 0x20c (0x473ec4 in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #14: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x4b5d34] (WorkerDict pid=904548) frame #15: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x4b2410] (WorkerDict pid=904548) frame #16: + 0x68a81c (0xfff0d307581c in /home/ma-user/python3.10/lib/python3.10/site-packages/torch/lib/libtorch_python.so) (WorkerDict pid=904548) frame #17: _PyObject_MakeTpCall + 0x1e0 (0x472958 in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #18: _PyEval_EvalFrameDefault + 0x6998 (0x4e5030 in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #19: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x4dcd6c] (WorkerDict pid=904548) frame #20: _PyEval_EvalFrameDefault + 0x404 (0x4dea9c in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #21: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x5506b4] (WorkerDict pid=904548) frame #22: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x55d684] (WorkerDict pid=904548) frame #23: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x5546fc] (WorkerDict pid=904548) frame #24: _PyEval_EvalFrameDefault + 0x404 (0x4dea9c in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #25: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x4dd344] (WorkerDict pid=904548) frame #26: _PyObject_Call + 0x20c (0x473ec4 in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #27: _PyEval_EvalFrameDefault + 0x2224 (0x4e08bc in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #28: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x4dcd6c] (WorkerDict pid=904548) frame #29: _PyObject_Call + 0x20c (0x473ec4 in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #30: _PyEval_EvalFrameDefault + 0x2224 (0x4e08bc in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #31: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x4dcd6c] (WorkerDict pid=904548) frame #32: _PyEval_EvalFrameDefault + 0x1324 (0x4df9bc in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #33: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x4dcd6c] (WorkerDict pid=904548) frame #34: _PyObject_Call_Prepend + 0x15c (0x4736c4 in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #35: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x4b5ca4] (WorkerDict pid=904548) frame #36: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x4b2410] (WorkerDict pid=904548) frame #37: _PyObject_Call + 0xbc (0x473d74 in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #38: _PyEval_EvalFrameDefault + 0x2224 (0x4e08bc in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #39: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x4dd344] (WorkerDict pid=904548) frame #40: _PyObject_Call + 0x74 (0x473d2c in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #41: _PyEval_EvalFrameDefault + 0x2224 (0x4e08bc in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #42: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x4dcd6c] (WorkerDict pid=904548) frame #43: _PyObject_Call + 0x74 (0x473d2c in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #44: _PyEval_EvalFrameDefault + 0x2224 (0x4e08bc in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #45: ray::Nc92yUWorkerDict_0:0:WorkerDict.init() [0x4dd344] (WorkerDict pid=904548) frame #46: PyVectorcall_Call + 0x60 (0x474010 in ray::Nc92yUWorkerDict_0:0:WorkerDict.init) (WorkerDict pid=904548) frame #47: + 0x6eb1c8 (0xffff8b6981c8 in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #48: + 0x754924 (0xffff8b701924 in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #49: + 0x6eb1c8 (0xffff8b6981c8 in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #50: + 0x7d668c (0xffff8b78368c in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #51: std::_Function_handler<ray::Status (ray::rpc::Address const&, ray::rpc::TaskType, std::string, ray::core::RayFunction const&, std::unordered_map<std::string, double, std::hashstd::string, std::equal_tostd::string, std::allocator<std::pair<std::string const, double> > > const&, std::vector<std::shared_ptrray::RayObject, std::allocator<std::shared_ptrray::RayObject > > const&, std::vector<ray::rpc::ObjectReference, std::allocatorray::rpc::ObjectReference > const&, std::string const&, std::string const&, std::vector<std::pair<ray::ObjectID, std::shared_ptrray::RayObject >, std::allocator<std::pair<ray::ObjectID, std::shared_ptrray::RayObject > > >, std::vector<std::pair<ray::ObjectID, std::shared_ptrray::RayObject >, std::allocator<std::pair<ray::ObjectID, std::shared_ptrray::RayObject > > >, std::vector<std::pair<ray::ObjectID, bool>, std::allocator<std::pair<ray::ObjectID, bool> > >, std::shared_ptrray::LocalMemoryBuffer&, bool, std::string*, std::vector<ray::ConcurrencyGroup, std::allocatorray::ConcurrencyGroup > const&, std::string, bool, bool, bool, long), ray::Status ()(ray::rpc::Address const&, ray::rpc::TaskType, std::string, ray::core::RayFunction const&, std::unordered_map<std::string, double, std::hashstd::string, std::equal_tostd::string, std::allocator<std::pair<std::string const, double> > > const&, std::vector<std::shared_ptrray::RayObject, std::allocator<std::shared_ptrray::RayObject > > const&, std::vector<ray::rpc::ObjectReference, std::allocatorray::rpc::ObjectReference > const&, std::string, std::string, std::vector<std::pair<ray::ObjectID, std::shared_ptrray::RayObject >, std::allocator<std::pair<ray::ObjectID, std::shared_ptrray::RayObject > > >, std::vector<std::pair<ray::ObjectID, std::shared_ptrray::RayObject >, std::allocator<std::pair<ray::ObjectID, std::shared_ptrray::RayObject > > >, std::vector<std::pair<ray::ObjectID, bool>, std::allocator<std::pair<ray::ObjectID, bool> > >, std::shared_ptrray::LocalMemoryBuffer&, bool*, std::string*, std::vector<ray::ConcurrencyGroup, std::allocatorray::ConcurrencyGroup > const&, std::string, bool, bool, bool, long)>::_M_invoke(std::_Any_data const&, ray::rpc::Address const&, ray::rpc::TaskType&&, std::string&&, ray::core::RayFunction const&, std::unordered_map<std::string, double, std::hashstd::string, std::equal_tostd::string, std::allocator<std::pair<std::string const, double> > > const&, std::vector<std::shared_ptrray::RayObject, std::allocator<std::shared_ptrray::RayObject > > const&, std::vector<ray::rpc::ObjectReference, std::allocatorray::rpc::ObjectReference > const&, std::string const&, std::string const&, std::vector<std::pair<ray::ObjectID, std::shared_ptrray::RayObject >, std::allocator<std::pair<ray::ObjectID, std::shared_ptrray::RayObject > > >&&, std::vector<std::pair<ray::ObjectID, std::shared_ptrray::RayObject >, std::allocator<std::pair<ray::ObjectID, std::shared_ptrray::RayObject > > >&&, std::vector<std::pair<ray::ObjectID, bool>, std::allocator<std::pair<ray::ObjectID, bool> > >&&, std::shared_ptrray::LocalMemoryBuffer&, bool&&, std::string*&&, std::vector<ray::ConcurrencyGroup, std::allocatorray::ConcurrencyGroup > const&, std::string&&, bool&&, bool&&, bool&&, long&&) + 0x14c (0xffff8b69fc5c in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #52: ray::core::CoreWorker::ExecuteTask(ray::TaskSpecification const&, std::optional<std::unordered_map<std::string, std::vector<std::pair<long, double>, std::allocator<std::pair<long, double> > >, std::hashstd::string, std::equal_tostd::string, std::allocator<std::pair<std::string const, std::vector<std::pair<long, double>, std::allocator<std::pair<long, double> > > > > > >, std::vector<std::pair<ray::ObjectID, std::shared_ptrray::RayObject >, std::allocator<std::pair<ray::ObjectID, std::shared_ptrray::RayObject > > >, std::vector<std::pair<ray::ObjectID, std::shared_ptrray::RayObject >, std::allocator<std::pair<ray::ObjectID, std::shared_ptrray::RayObject > > >, std::vector<std::pair<ray::ObjectID, bool>, std::allocator<std::pair<ray::ObjectID, bool> > >, google::protobuf::RepeatedPtrFieldray::rpc::ObjectReferenceCount, bool*, std::string*) + 0xae4 (0xffff8b8a61d4 in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #53: std::_Function_handler<ray::Status (ray::TaskSpecification const&, std::optional<std::unordered_map<std::string, std::vector<std::pair<long, double>, std::allocator<std::pair<long, double> > >, std::hashstd::string, std::equal_tostd::string, std::allocator<std::pair<std::string const, std::vector<std::pair<long, double>, std::allocator<std::pair<long, double> > > > > > >, std::vector<std::pair<ray::ObjectID, std::shared_ptrray::RayObject >, std::allocator<std::pair<ray::ObjectID, std::shared_ptrray::RayObject > > >, std::vector<std::pair<ray::ObjectID, std::shared_ptrray::RayObject >, std::allocator<std::pair<ray::ObjectID, std::shared_ptrray::RayObject > > >, std::vector<std::pair<ray::ObjectID, bool>, std::allocator<std::pair<ray::ObjectID, bool> > >, google::protobuf::RepeatedPtrFieldray::rpc::ObjectReferenceCount, bool*, std::string*), std::_Bind<ray::Status (ray::core::CoreWorker::(ray::core::CoreWorker, std::_Placeholder<1>, std::_Placeholder<2>, std::_Placeholder<3>, std::_Placeholder<4>, std::_Placeholder<5>, std::_Placeholder<6>, std::_Placeholder<7>, std::_Placeholder<8>))(ray::TaskSpecification const&, std::optional<std::unordered_map<std::string, std::vector<std::pair<long, double>, std::allocator<std::pair<long, double> > >, std::hashstd::string, std::equal_tostd::string, std::allocator<std::pair<std::string const, std::vector<std::pair<long, double>, std::allocator<std::pair<long, double> > > > > > >, std::vector<std::pair<ray::ObjectID, std::shared_ptrray::RayObject >, std::allocator<std::pair<ray::ObjectID, std::shared_ptrray::RayObject > > >, std::vector<std::pair<ray::ObjectID, std::shared_ptrray::RayObject >, std::allocator<std::pair<ray::ObjectID, std::shared_ptrray::RayObject > > >, std::vector<std::pair<ray::ObjectID, bool>, std::allocator<std::pair<ray::ObjectID, bool> > >, google::protobuf::RepeatedPtrFieldray::rpc::ObjectReferenceCount, bool*, std::string*)> >::_M_invoke(std::_Any_data const&, ray::TaskSpecification const&, std::optional<std::unordered_map<std::string, std::vector<std::pair<long, double>, std::allocator<std::pair<long, double> > >, std::hashstd::string, std::equal_tostd::string, std::allocator<std::pair<std::string const, std::vector<std::pair<long, double>, std::allocator<std::pair<long, double> > > > > > >&&, std::vector<std::pair<ray::ObjectID, std::shared_ptrray::RayObject >, std::allocator<std::pair<ray::ObjectID, std::shared_ptrray::RayObject > > >&&, std::vector<std::pair<ray::ObjectID, std::shared_ptrray::RayObject >, std::allocator<std::pair<ray::ObjectID, std::shared_ptrray::RayObject > > >&&, std::vector<std::pair<ray::ObjectID, bool>, std::allocator<std::pair<ray::ObjectID, bool> > >&&, google::protobuf::RepeatedPtrFieldray::rpc::ObjectReferenceCount&&, bool*&&, std::string*&&) + 0x70 (0xffff8b839ca0 in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #54: + 0x9015a8 (0xffff8b8ae5a8 in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #55: + 0x9028a8 (0xffff8b8af8a8 in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #56: + 0x909a08 (0xffff8b8b6a08 in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #57: + 0x9244d8 (0xffff8b8d14d8 in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #58: + 0xca0aec (0xffff8bc4daec in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #59: + 0xc9c200 (0xffff8bc49200 in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #60: + 0xc9c690 (0xffff8bc49690 in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #61: + 0x12d8ec0 (0xffff8c285ec0 in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548) frame #62: + 0x12da824 (0xffff8c287824 in /home/ma-user/python3.10/lib/python3.10/site-packages/ray/_raylet.so) (WorkerDict pid=904548)

shenofusc avatar Mar 31 '25 13:03 shenofusc

This seems to be a server issue, you can turn off the firewall. And we only tested based on 2 * 8NPS.

sunyi0505 avatar Apr 01 '25 02:04 sunyi0505

This seems to be a server issue, you can turn off the firewall. And we only tested based on 2 * 8NPS.

Can I just use 1 npu to test? I don't have many resources to test. How can I use it if we can use 1 NPU? Or I must use multiple NPU to test? Thank you for your reply.

I changed my script to blow code, it was found in source code of #332 , It seems like have the same problem as i posted yesterday. `set -x

export VLLM_ATTENTION_BACKEND=XFORMERS

python3.10 -m verl.trainer.main_ppo
algorithm.adv_estimator=grpo
data.train_files=/gsm8k/main/train-00000-of-00001.parquet
data.val_files=/gsm8k/main/test-00000-of-00001.parquet
data.train_batch_size=128
data.max_prompt_length=512
data.max_response_length=128
data.filter_overlong_prompts=True
data.truncation='error'
data.prompt_key=question
actor_rollout_ref.model.path=/Qwen2.5-0.5B-Instruct
actor_rollout_ref.actor.optim.lr=1e-6
actor_rollout_ref.model.use_remove_padding=False
actor_rollout_ref.actor.ppo_mini_batch_size=64
actor_rollout_ref.actor.ppo_micro_batch_size_per_gpu=20
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.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=40
actor_rollout_ref.rollout.enable_chunked_prefill=False
actor_rollout_ref.rollout.tensor_model_parallel_size=2
actor_rollout_ref.rollout.name=vllm
actor_rollout_ref.rollout.gpu_memory_utilization=0.6
actor_rollout_ref.rollout.n=5
actor_rollout_ref.ref.log_prob_micro_batch_size_per_gpu=40
actor_rollout_ref.ref.fsdp_config.param_offload=True
algorithm.kl_ctrl.kl_coef=0.001
trainer.critic_warmup=0
trainer.logger=['console']
trainer.project_name='verl_grpo_example_gsm8k'
trainer.experiment_name='qwen2_7b_function_rm'
trainer.n_gpus_per_node=1
trainer.nnodes=1
trainer.save_freq=-1
trainer.test_freq=5
trainer.total_epochs=15 $@`

shenofusc avatar Apr 01 '25 02:04 shenofusc

This seems to be a server issue, you can turn off the firewall. And we only tested based on 2 * 8NPS.

Can I just use 1 npu to test? I don't have many resources to test. How can I use it if we can use 1 NPU? Or I must use multiple NPU to test? Thank you for your reply.

I changed my script to blow code, it was found in source code of #332 , It seems like have the same problem as i posted yesterday. `set -x

export VLLM_ATTENTION_BACKEND=XFORMERS

python3.10 -m verl.trainer.main_ppo algorithm.adv_estimator=grpo data.train_files=/gsm8k/main/train-00000-of-00001.parquet data.val_files=/gsm8k/main/test-00000-of-00001.parquet data.train_batch_size=128 data.max_prompt_length=512 data.max_response_length=128 data.filter_overlong_prompts=True data.truncation='error' data.prompt_key=question actor_rollout_ref.model.path=/Qwen2.5-0.5B-Instruct actor_rollout_ref.actor.optim.lr=1e-6 actor_rollout_ref.model.use_remove_padding=False actor_rollout_ref.actor.ppo_mini_batch_size=64 actor_rollout_ref.actor.ppo_micro_batch_size_per_gpu=20 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.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=40 actor_rollout_ref.rollout.enable_chunked_prefill=False actor_rollout_ref.rollout.tensor_model_parallel_size=2 actor_rollout_ref.rollout.name=vllm actor_rollout_ref.rollout.gpu_memory_utilization=0.6 actor_rollout_ref.rollout.n=5 actor_rollout_ref.ref.log_prob_micro_batch_size_per_gpu=40 actor_rollout_ref.ref.fsdp_config.param_offload=True algorithm.kl_ctrl.kl_coef=0.001 trainer.critic_warmup=0 trainer.logger=['console'] trainer.project_name='verl_grpo_example_gsm8k' trainer.experiment_name='qwen2_7b_function_rm' trainer.n_gpus_per_node=1 trainer.nnodes=1 trainer.save_freq=-1 trainer.test_freq=5 trainer.total_epochs=15 $@`

It is necessary to use multiple NPUS.

sunyi0505 avatar Apr 01 '25 02:04 sunyi0505

It is necessary to use multiple NPUS.

Can I use 2 * 1NPS to test? Is there anything that needs additional configuration? THX

shenofusc avatar Apr 01 '25 03:04 shenofusc

It is necessary to use multiple NPUS.

Can I use 2 * 1NPS to test?

You can use 1 * 2NPUS for functional testing, but you may encounter oom errors.

sunyi0505 avatar Apr 01 '25 03:04 sunyi0505

You can use 1 x 2NPUS for functional testing, but you may encounter oom errors.

I ran this program in an 1 x 2NPUS machine again, but it also has the same problem, What config or code should I change in project to adjust 1 x 2NPUS machine?

shenofusc avatar Apr 07 '25 08:04 shenofusc

This issue doesn't seem like a code problem, it looks more like an environment problem. Please make sure the running environment is fine.

sunyi0505 avatar Apr 07 '25 09:04 sunyi0505

Me too! Did you figure out how to fix this bug?

xinwangChen avatar Jul 08 '25 10:07 xinwangChen

我增加环境变量 export MY_HOST_IP=127.0.0.1 解决了这个问题

xinwangChen avatar Jul 12 '25 13:07 xinwangChen

定时清理检查结果:这个 issue 最近一次由当前运行账号以外账号产生的公开回复或公开引用是 2025-07-12T13:34:23Z。本轮检查日期为 2026-07-04,该时间已经超过 6 个月。检查来源包括 issue comments API https://api.github.com/repos/verl-project/verl/issues/849/comments?per_page=100 和 timeline API https://api.github.com/repos/verl-project/verl/issues/849/timeline?per_page=100。

按照本仓库的定时 issue 清理标准,我会先留下这条说明并关闭该 issue。若作者或社区成员仍能提供新的复现、证据或需求背景,请继续评论请求重开,或创建新的 issue 并引用这里的上下文。


Scheduled cleanup check: the latest public reply or public reference from an account other than the current automation account was 2025-07-12T13:34:23Z. The check date for this run is 2026-07-04, so that activity is more than 6 months old. The checked public sources were the issue comments API https://api.github.com/repos/verl-project/verl/issues/849/comments?per_page=100 and the timeline API https://api.github.com/repos/verl-project/verl/issues/849/timeline?per_page=100.

Following the scheduled issue cleanup policy, I am leaving this note first and then closing the issue. If the author or community can still provide a fresh reproduction, evidence, or requirement context, please comment to request reopening or open a new issue that links back to this one.

This response was generated by a scheduled Codex GPT5.5 issue processing task.

Kirrito-k423 avatar Jul 04 '26 01:07 Kirrito-k423