Chapter 127 / 7
RLHF & Preference Optimization
Implement DAPO on a toy RLVR task: clip-higher, dynamic sampling (drop all-correct/all-wro
Super-hard
Implement DAPO on a toy RLVR task: clip-higher, dynamic sampling (drop all-correct/all-wrong groups), token-level loss, and overlong reward shaping. [NVIDIA]
Target interface
overlong_shaping(reward, length, soft_cap, hard_cap, penalty=1.0)Implement the function/class skeleton in the editor. Any correct approach is accepted.
Hints0 / 2
Reference solution
Your own code stays in the editor.