ms-swift icon indicating copy to clipboard operation
ms-swift copied to clipboard

grpo 使用vllm server训练 参数共享

Open XQZZK opened this issue 1 year ago • 2 comments

请问,GPRO在使用server模型进行训练的过程中,一开始就部署了一个π0的vllm的服务,当模型在t+1时刻进行在线采样的时候会向vllm发送请求,请问这个采样结果是来自π0的生成,还是π t时刻模型的生成?

XQZZK avatar Jul 22 '25 16:07 XQZZK

Weight synchronization is performed before the start of each train step.

https://github.com/modelscope/ms-swift/blob/v3.6.2/swift/trainers/rlhf_trainer/grpo_trainer.py#L491-L552

hjh0119 avatar Jul 23 '25 02:07 hjh0119

Weight synchronization is performed before the start of each train step.

https://github.com/modelscope/ms-swift/blob/v3.6.2/swift/trainers/rlhf_trainer/grpo_trainer.py#L491-L552

oh, I see, thank you so much!

XQZZK avatar Jul 23 '25 02:07 XQZZK