Chapter 123 / 7
RLHF: Reward Models, PPO & GRPO
Implement the GRPO group-normalized advantage and the clipped token-level objective
Medium
Implement the GRPO group-normalized advantage and the clipped token-level objective. [DeepSeek]
Target interface
grpo_advantage(rewards)Complete the starter code in the editor. Any correct approach is accepted.
Hints0 / 2
Reference solution
Your own code stays in the editor.