windks

Results comments of windks

文件:ms-swift/swift/trainers/rlhf_trainer/grpo_trainer.py 中的: _input_slice = np.array(all_inputs)[distributed_idx[self.infer_rank] 改为 _input_slice = np.array(all_inputs)[distributed_idx[self.infer_rank % len(distributed_idx)]] 注意有两处。 不确定会不会有潜在其他bug。

export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 export NNODES=2 export NODE_RANK=0 export MASTER_ADDR=127.0.0.1 export MASTER_PORT=29500 export NPROC_PER_NODE=6 swift rlhf \ --rlhf_type grpo \ --model Qwen/Qwen2.5-7B \ --reward_funcs accuracy format \ --use_lmdeploy true \ --train_type full...