Agent-R1 icon indicating copy to clipboard operation
Agent-R1 copied to clipboard

...

Open Running123 opened this issue 1 year ago • 0 comments

如标题,请教下agent_r1/src/agent_ray_trainer.py文件下第1083行代码的疑惑,grpo算法参数配置中设置为True,代码逻辑这里是否表示不使用了?

// compute rewards. apply_kl_penalty if available if not self.config.actor_rollout_ref.actor.get('use_kl_loss', False): batch, kl_metrics = apply_kl_penalty(batch, kl_ctrl=self.kl_ctrl, kl_penalty=self.config.algorithm.kl_penalty) metrics.update(kl_metrics) else: batch.batch['token_level_rewards'] = batch.batch['token_level_scores']

Running123 avatar Apr 25 '25 03:04 Running123